Initial version of JR IT backup of internal backend.

This commit is contained in:
2026-02-02 08:37:51 +01:00
commit 144de4f393
10 changed files with 969 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
[Unit]
Description=Resilient daily app backup (WP/Nextcloud/Mail) to OneDrive via rclone + mail report
Wants=network-online.target
After=network-online.target
[Service]
Type=oneshot
ExecStart=/usr/local/sbin/app-backup.sh
TimeoutStartSec=6h
Nice=10
IOSchedulingClass=best-effort
IOSchedulingPriority=6
Environment=LANG=C
Environment=LC_ALL=C
[Install]
WantedBy=multi-user.target

10
systemd/app-backup.timer Normal file
View File

@@ -0,0 +1,10 @@
[Unit]
Description=Run app-backup daily
[Timer]
OnCalendar=*-*-* 02:30:00
Persistent=true
RandomizedDelaySec=10m
[Install]
WantedBy=timers.target