feat(backups): pass the files[] block of status.json through GET /backups #62

Merged
maximus merged 2 commits from issue-61-backups-files into main 2026-10-13 00:18:54 +00:00

2 commits

Author SHA1 Message Date
le king fu
9fa1f39e13 docs: the two backup code lists share encrypt_failed and invalid_name
All checks were successful
CI / verification (pull_request) Successful in 37s
CI / verification (push) Successful in 36s
Review of #62, suggestion 1.

Refs #61

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-12 20:18:45 -04:00
le king fu
329d83e4e5 feat(backups): pass the files[] block of status.json through GET /backups
All checks were successful
CI / verification (pull_request) Successful in 35s
backup-postgres.sh now writes files[], one entry per archived host
directory (la-compagnie-maximus#295). sanitizeBackupsStatus() dropped
it as an unknown field, so a failed archive turned the status red with
no cause. It is now rebuilt from a whitelist like databases[], with a
closed code list of its own (source_missing, archive_failed,
encrypt_failed, invalid_name), the script's name pattern with a 63 cap,
a nullable archivedAt and a bound of 16. A status without files keeps
working.

Refs #61

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-12 20:04:12 -04:00