summaryrefslogtreecommitdiff
path: root/systemd-user/home-backup.timer
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-06-28 09:02:22 +0300
committerPaul Buetow <paul@buetow.org>2026-06-28 09:02:22 +0300
commit969dcf722a6cc1034136b1e20d21d56240e18414 (patch)
treeb89e9943bca4636a84aeab527c31eb1f92555040 /systemd-user/home-backup.timer
parentb934cb4431fa0f87b7ee116c976750f16bff031a (diff)
Add home-backup script with daily systemd timer
Backs up ~ to encrypted ZFS dataset on f2 (zdata/enc/earth-backup) via rsync over SSH. Excludes caches, trash, build artifacts, git checkouts, syncthing, and media libraries. Adds systemd user service+timer (daily) and enables it via Rex home_systemd_user task. Amp-Thread-ID: https://ampcode.com/threads/T-019f0cc8-1a8f-71ab-8a1c-914d7cdb055a Co-authored-by: Amp <amp@ampcode.com>
Diffstat (limited to 'systemd-user/home-backup.timer')
-rw-r--r--systemd-user/home-backup.timer10
1 files changed, 10 insertions, 0 deletions
diff --git a/systemd-user/home-backup.timer b/systemd-user/home-backup.timer
new file mode 100644
index 0000000..db26c4e
--- /dev/null
+++ b/systemd-user/home-backup.timer
@@ -0,0 +1,10 @@
+[Unit]
+Description=Run home-backup once per day
+
+[Timer]
+OnCalendar=daily
+Persistent=true
+RandomizedDelaySec=30m
+
+[Install]
+WantedBy=timers.target