18 lines
433 B
Django/Jinja
18 lines
433 B
Django/Jinja
[Unit]
|
|
Description=Run Borg Local Sync daily
|
|
Documentation=man:borg(1)
|
|
Requires=borg-local-sync.service
|
|
|
|
[Timer]
|
|
# Run daily at 3:00 AM (1 hour after main backup at 2:00 AM)
|
|
OnCalendar=*-*-* 03:00:00
|
|
# Add randomization to prevent conflicts if multiple systems exist
|
|
RandomizedDelaySec=300
|
|
# Ensure timer persists across reboots
|
|
Persistent=true
|
|
# Wake system from suspend if needed
|
|
WakeSystem=false
|
|
|
|
[Install]
|
|
WantedBy=timers.target
|