Add Borg local sync system service and configuration
This commit is contained in:
17
config/ansible/templates/borg-local-sync.timer.j2
Normal file
17
config/ansible/templates/borg-local-sync.timer.j2
Normal file
@@ -0,0 +1,17 @@
|
||||
[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
|
Reference in New Issue
Block a user