summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--systemd/backomp.service5
-rw-r--r--systemd/backomp.timer8
2 files changed, 13 insertions, 0 deletions
diff --git a/systemd/backomp.service b/systemd/backomp.service
new file mode 100644
index 0000000..6ab7163
--- /dev/null
+++ b/systemd/backomp.service
@@ -0,0 +1,5 @@
+[Unit]
+Description=Automated rotating snapshots using rsync
+
+[Service]
+ExecStart=backomp /etc/backomp.conf
diff --git a/systemd/backomp.timer b/systemd/backomp.timer
new file mode 100644
index 0000000..6a0b8ab
--- /dev/null
+++ b/systemd/backomp.timer
@@ -0,0 +1,8 @@
+[Unit]
+Description=Hourly automated rotating snapshots using rsync
+
+[Timer]
+OnCalendar=hourly
+
+[Install]
+WantedBy=timers.target