From e158da37653cad1c6868eac560db15b80f658ed8 Mon Sep 17 00:00:00 2001 From: BrainwreckedTech <3752022+BrainwreckedTech@users.noreply.github.com> Date: Sat, 14 Sep 2019 13:20:48 -0400 Subject: [PATCH] Added backup-roots-rsync@ unit files. --- backup-roots-rsync@.service | 9 +++++++++ backup-roots-rsync@.timer | 10 ++++++++++ 2 files changed, 19 insertions(+) create mode 100644 backup-roots-rsync@.service create mode 100644 backup-roots-rsync@.timer 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