foss_breakglass_mirror_v2/systemd/breakglass-sync.timer
mineracks a1d28e0d8c feat: autopilot systemd timers + ntfy push notifications
- Sync timer: daily at 02:00 AEST + on boot
- Healthcheck timer: daily at 08:00 AEST
- Service timeout raised to 4h for large repos
- Restart on failure with 5 min backoff
- ntfy.sh push notifications with priority levels:
  - urgent: wipe detection (red alert)
  - high: sync errors
  - low: successful sync summary
  - healthcheck results with stethoscope tag
- All notifications work via free ntfy.sh (no SMTP needed)
2026-03-31 12:58:57 +10:00

17 lines
495 B
SYSTEMD

[Unit]
Description=Breakglass FOSS Git Mirror — daily sync
Documentation=https://git.mineracks.com/mineracks/foss_breakglass_mirror_v2
[Timer]
# Run daily at 02:00 AEST (16:00 UTC previous day) — low-traffic window
OnCalendar=*-*-* 02:00:00
# Randomise start by up to 15 min
RandomizedDelaySec=900
# If the machine was off at trigger time, run on next boot
Persistent=true
# Also run 30 seconds after boot (catch up after reboots/maintenance)
OnBootSec=30
[Install]
WantedBy=timers.target