summaryrefslogtreecommitdiff
path: root/systemd_stuff
diff options
context:
space:
mode:
Diffstat (limited to 'systemd_stuff')
-rw-r--r--systemd_stuff/rsync.service9
-rw-r--r--systemd_stuff/rsync.timer9
2 files changed, 18 insertions, 0 deletions
diff --git a/systemd_stuff/rsync.service b/systemd_stuff/rsync.service
new file mode 100644
index 0000000..7a40909
--- /dev/null
+++ b/systemd_stuff/rsync.service
@@ -0,0 +1,9 @@
+[Unit]
+Description=rsync backup service
+
+[Service]
+User=root
+Type=oneshot
+ExecStart=/usr/local/bin/backup.sh
+StandardOutput=journal
+StandardError=journal
diff --git a/systemd_stuff/rsync.timer b/systemd_stuff/rsync.timer
new file mode 100644
index 0000000..2c75f69
--- /dev/null
+++ b/systemd_stuff/rsync.timer
@@ -0,0 +1,9 @@
+[Unit]
+Description=rsync backup timer
+
+[Timer]
+OnCalendar=01:00:00
+Persistent=true
+
+[Install]
+WantedBy=timers.target