Initial version of JR IT backup of internal backend.
This commit is contained in:
19
systemd/app-backup.service
Normal file
19
systemd/app-backup.service
Normal 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
10
systemd/app-backup.timer
Normal file
@@ -0,0 +1,10 @@
|
||||
[Unit]
|
||||
Description=Run app-backup daily
|
||||
|
||||
[Timer]
|
||||
OnCalendar=*-*-* 02:30:00
|
||||
Persistent=true
|
||||
RandomizedDelaySec=10m
|
||||
|
||||
[Install]
|
||||
WantedBy=timers.target
|
||||
Reference in New Issue
Block a user