Tanda B punto 4: chequeo de frescura de backups #16

Open
cayce wants to merge 0 commits from backup-sizing-alerts into main
Owner

check-freshness.sh: exit 1 si el último backup tiene más de 26h o si no hay backups con recipient configurado. Verificado en los 4 estados. No tiene timer propio (no autorizado).

check-freshness.sh: exit 1 si el último backup tiene más de 26h o si no hay backups con recipient configurado. Verificado en los 4 estados. No tiene timer propio (no autorizado).
cayce added 1 commit 2026-10-28 21:10:00 +00:00
/usr/local/bin/cayce-check-backup-freshness (from
deploy/backup/check-freshness.sh): exits 1 if the newest
/var/backups/cayce/YYYY-MM-DD/ dir has mtime older than 26h, or if no
backups exist while the age recipient IS configured (backups expected).
Info-exit-0 when backups have never been configured. Not attached to a
timer (only cayce-backup.timer was authorized); documented for manual
or cron use.

Verified: fresh dir => OK 0h exit 0; dir with 2-day mtime => ALERT 48h
exit 1; no-dir + recipient => ALERT; no-dir + no-recipient => INFO.
Some required checks failed
ci / lint-test-leaks (pull_request) Canceled after 0s
This branch is already included in the target branch. There is nothing to merge.
This branch is out-of-date with the base branch
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin backup-sizing-alerts:backup-sizing-alerts
git checkout backup-sizing-alerts
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: cayce/cayce-ops#16