Added backup-roots-rsync@ unit files.

This commit is contained in:
BrainwreckedTech 2019-09-14 13:20:48 -04:00
parent 6ca42fa806
commit e158da3765
2 changed files with 19 additions and 0 deletions

View File

@ -0,0 +1,9 @@
[Unit]
Description=Backup root to %I
[Service]
Type=simple
Nice=19
IOSchedulingClass=2
IOSchedulingPriority=7
ExecStart=/bin/sh -c '/usr/bin/rsync -HAax // "%I/"'

10
backup-roots-rsync@.timer Normal file
View File

@ -0,0 +1,10 @@
[Unit]
Description=Backup Files
[Timer]
OnCalendar=07:00:00
AccuracySec=150s
Persistent=true
[Install]
WantedBy=timers.target