added timer and service example

This commit is contained in:
Peter Knauer 2025-12-20 10:10:31 -05:00
parent 0101685f3e
commit 93a04a213f
2 changed files with 21 additions and 0 deletions

View file

@ -0,0 +1,11 @@
[Unit]
Description=Linux System SSH/rsync backup to NAS
Wants=network-online.target
After=network-online.target
[Service]
Type=oneshot
ExecStart=/usr/local/sbin/zuzu-system-backup/zuzu-system-backup.py
Nice=10
IOSchedulingClass=best-effort
IOSchedulingPriority=7

View file

@ -0,0 +1,10 @@
[Unit]
Description=Nightly backup to NAS
[Timer]
OnCalendar=*-*-* 05:00:00
RandomizedDelaySec=20min
Persistent=true
[Install]
WantedBy=timers.target