diff --git a/backup-roots-rsync@.service b/backup-roots-rsync@.service new file mode 100644 index 0000000..ef4c497 --- /dev/null +++ b/backup-roots-rsync@.service @@ -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/"' diff --git a/backup-roots-rsync@.timer b/backup-roots-rsync@.timer new file mode 100644 index 0000000..bd83e15 --- /dev/null +++ b/backup-roots-rsync@.timer @@ -0,0 +1,10 @@ +[Unit] +Description=Backup Files + +[Timer] +OnCalendar=07:00:00 +AccuracySec=150s +Persistent=true + +[Install] +WantedBy=timers.target