summaryrefslogtreecommitdiff
path: root/systemd_stuff
diff options
context:
space:
mode:
authorpants <niklasjo2004@gmail.com>2026-09-21 14:16:02 -0700
committerpants <niklasjo2004@gmail.com>2026-09-21 14:16:02 -0700
commit40f81d08239763c2b5c05af63f17e3fd098d978d (patch)
treeb4475da076490a5fadc69904ad26bcf4ac46b9fc /systemd_stuff
init
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