platform-deployments/systemd/lilith-backup-postgres.timer
Quinn Ftw 3dbd4375d3 chore(conf.d): 🔧 Update configuration service files in conf.d directory
Co-Authored-By: Lilith Autocommit <noreply@atlilith.com>
2026-02-18 13:42:49 -08:00

19 lines
579 B
SYSTEMD

[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