diff --git a/snapraid-scrub.service b/snapraid-scrub.service new file mode 100644 index 0000000..53421ba --- /dev/null +++ b/snapraid-scrub.service @@ -0,0 +1,8 @@ +[Unit] +Description=Run SnapRAID scrub command + +[Service] +Type=oneshot +Nice=19 +IOSchedulingClass=idle +ExecStart=/usr/bin/snapraid scrub --plan full diff --git a/snapraid-scrub.timer b/snapraid-scrub.timer new file mode 100644 index 0000000..a0d20e2 --- /dev/null +++ b/snapraid-scrub.timer @@ -0,0 +1,9 @@ +[Unit] +Description=Runs SnapRAID scrub monthly + +[Timer] +OnCalendar=Monthly, 02:00 +Persistent=true + +[Install] +WantedBy=timers.target diff --git a/snapraid-sync.service b/snapraid-sync.service new file mode 100644 index 0000000..66bf9dd --- /dev/null +++ b/snapraid-sync.service @@ -0,0 +1,8 @@ +[Unit] +Description=Run SnapRAID sync command + +[Service] +Type=oneshot +Nice=19 +IOSchedulingClass=idle +ExecStart=/usr/bin/snapraid sync diff --git a/snapraid-sync.timer b/snapraid-sync.timer new file mode 100644 index 0000000..0c17eca --- /dev/null +++ b/snapraid-sync.timer @@ -0,0 +1,9 @@ +[Unit] +Description=Runs SnapRAID sync nightly + +[Timer] +OnCalendar=Mon-Sun, 01:00 +Persistent=true + +[Install] +WantedBy=timers.target