Adds rclone-parents, fixes some other files
This commit is contained in:
@@ -1,9 +1,10 @@
|
||||
[Unit]
|
||||
Description=Defragments the NAS
|
||||
ConditionPathIsMountPoint=/var/mnt/nas
|
||||
RequiresMountsFor=/var/mnt/nas
|
||||
|
||||
[Service]
|
||||
Nice=19
|
||||
IOSchedulingClass=idle
|
||||
Type=oneshot
|
||||
ExecStart=btrfs filesystem defragment -r /var/mnt/nas
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
||||
@@ -2,7 +2,8 @@
|
||||
Description=Timer for the defragment-nas service
|
||||
|
||||
[Timer]
|
||||
OnCalendar=*-*-03 00:00:00
|
||||
OnCalendar=*-06-03 00:00:00
|
||||
OnCalendar=*-12-03 00:00:00
|
||||
Persistent=true
|
||||
Unit=defragment-nas.service
|
||||
|
||||
|
||||
6
files/rclone-parents.service
Normal file
6
files/rclone-parents.service
Normal file
@@ -0,0 +1,6 @@
|
||||
[Unit]
|
||||
Description=Runs rclone to copy the NAS content to the parents NAS
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStart=/usr/bin/flock -n /run/rclone-parents.lock /root/scripts/rclone-parents.sh
|
||||
13
files/rclone-parents.timer
Normal file
13
files/rclone-parents.timer
Normal file
@@ -0,0 +1,13 @@
|
||||
[Unit]
|
||||
Description=Timer for the rclone-parents service
|
||||
|
||||
[Timer]
|
||||
OnCalendar=08:00:00
|
||||
OnCalendar=12:00:00
|
||||
OnCalendar=16:00:00
|
||||
OnCalendar=20:00:00
|
||||
Persistent=true
|
||||
Unit=rclone-parents.service
|
||||
|
||||
[Install]
|
||||
WantedBy=timers.target
|
||||
@@ -1,6 +1,11 @@
|
||||
[Unit]
|
||||
Description=Scrubs the NAS
|
||||
ConditionPathIsMountPoint=/var/mnt/nas
|
||||
RequiresMountsFor=/var/mnt/nas
|
||||
|
||||
[Service]
|
||||
Nice=19
|
||||
IOSchedulingClass=idle
|
||||
KillSignal=SIGINT
|
||||
Type=oneshot
|
||||
ExecStart=btrfs scrub start /var/mnt/nas
|
||||
ExecStart=btrfs scrub start -B /var/mnt/nas
|
||||
|
||||
@@ -2,7 +2,8 @@
|
||||
Description=Timer for the scrub-nas service
|
||||
|
||||
[Timer]
|
||||
OnCalendar=*-*-05 00:00:00
|
||||
OnCalendar=*-06-05 00:00:00
|
||||
OnCalendar=*-12-05 00:00:00
|
||||
Persistent=true
|
||||
Unit=scrub-nas.service
|
||||
|
||||
|
||||
Reference in New Issue
Block a user