Expand description
Hourly SQLite + backup-file hygiene sweep; idempotent steps, kill-safe at any tick.
ConstantsΒ§
- BACKUP_
FILENAME_ πPREFIX - BACKUP_
RETENTION_ πDAYS - FINISHED_
ROLLOUTS_ πRETENTION_ HOURS - Operatorβs 60-day-back release investigation window.
- TICK_
INTERVAL π - TOKEN_
REPLAY_ πRETENTION_ HOURS
FunctionsΒ§
- prune_
backup_ πfiles - Per-file delete errors are logged + skipped; enumeration errors propagate.
- spawn
db_path = Noneskips the filesystem backup sweep (in-memory deployments).- try_
prune π - On
Errlogs a warn and returns 0 so the sweep continues.