[Unit] Description=Lilith Platform - PostgreSQL Backup Timer (every 6 hours) Documentation=file:///var/home/lilith/Code/@projects/@lilith/lilith-platform/deployments/scripts/lilith-backup-postgres.sh [Timer] # Run at 00:00, 06:00, 12:00, 18:00 UTC OnCalendar=*-*-* 00/6:00:00 # If a run was missed (system was down), catch up immediately on next boot Persistent=true # Spread load by up to 5 minutes to avoid thundering-herd with other timers RandomizedDelaySec=300 # Only run on AC power (not on battery/UPS failover) ConditionACPower=true [Install] WantedBy=timers.target