aboutsummaryrefslogtreecommitdiff
path: root/SystemD/.config/systemd
diff options
context:
space:
mode:
Diffstat (limited to 'SystemD/.config/systemd')
-rw-r--r--SystemD/.config/systemd/user/backup.service6
-rw-r--r--SystemD/.config/systemd/user/backup.timer9
2 files changed, 15 insertions, 0 deletions
diff --git a/SystemD/.config/systemd/user/backup.service b/SystemD/.config/systemd/user/backup.service
new file mode 100644
index 0000000..d3bb8ed
--- /dev/null
+++ b/SystemD/.config/systemd/user/backup.service
@@ -0,0 +1,6 @@
+[Unit]
+Description=Taking backup
+
+[Service]
+Type=simple
+ExecStart=/usr/bin/rsync -a --delete --quiet /home/oreo /media/hdd/backup
diff --git a/SystemD/.config/systemd/user/backup.timer b/SystemD/.config/systemd/user/backup.timer
new file mode 100644
index 0000000..2ddee9d
--- /dev/null
+++ b/SystemD/.config/systemd/user/backup.timer
@@ -0,0 +1,9 @@
+[Unit]
+Description=Run backup weekly
+
+[Timer]
+OnBootSec=15min
+OnUnitActiveSec=1w
+
+[Install]
+WantedBy=timers.target