setup backup

This commit is contained in:
2026-07-24 13:48:44 +02:00
parent b66a7cbee6
commit a60abea30a
3 changed files with 22 additions and 0 deletions
+6
View File
@@ -175,6 +175,12 @@ sleep 1
mountpoint /mnt/kdrive
ls /mnt/kdrive
# backup of things not in kdrive
cp systemd/server-backup.* /etc/systemd/system/
systemctl daemon-reload
systemctll enable --now server-backup.timer
###############################################################################
# hledger-web
##############################################################################
+7
View File
@@ -0,0 +1,7 @@
[Unit]
Description=Nightly rsync backup of /opt/server to /mnt/kdrive
After=local-fs.target
[Service]
Type=oneshot
ExecStart=/usr/bin/rsync -a --delete /opt/server/ /mnt/kdrive/serverBackup/
+9
View File
@@ -0,0 +1,9 @@
[Unit]
Description=Run nightly server rsync backup
[Timer]
OnCalendar=*-*-* 02:00:00
Persistent=true
[Install]
WantedBy=timers.target