Manage scheduled backup retention and archive history #37

Merged
parkel merged 3 commits from feature/backup-archive-management into main 2026-11-21 15:17:27 +01:00
Owner

Summary

  • Add a paginated archive history with recorded ZIP sizes and expiration status.
  • Let operators set an optional per-account retention count and protect individual scheduled archives. Keep manual backups and protected archives in addition to that count.
  • Skip archives used by a queued or running restore. Cancel unstarted expirations when retention settings or protection change.
  • Verify the account identity and ZIP entries of retained backups before removing an older archive. Record expiration on disk before unlinking so a late request cannot recreate the archive.
  • Document deployment, permissions, and the opt-in behavior for the panel and backup node.

Verification

  • Ruff lint and format checks, Django migration drift check, and all 327 Django tests passed.
  • Ubuntu with MariaDB and Celery exercised the panel, worker, and backup socket. A missing newer archive blocked expiration. After it was returned, only the eligible old archive was removed. Manual and protected archives remained, symlink targets were rejected, and replay could not recreate the expired archive.
  • Static systemd verification passed for the backup service and retention drop-in.
## Summary - Add a paginated archive history with recorded ZIP sizes and expiration status. - Let operators set an optional per-account retention count and protect individual scheduled archives. Keep manual backups and protected archives in addition to that count. - Skip archives used by a queued or running restore. Cancel unstarted expirations when retention settings or protection change. - Verify the account identity and ZIP entries of retained backups before removing an older archive. Record expiration on disk before unlinking so a late request cannot recreate the archive. - Document deployment, permissions, and the opt-in behavior for the panel and backup node. ## Verification - Ruff lint and format checks, Django migration drift check, and all 327 Django tests passed. - Ubuntu with MariaDB and Celery exercised the panel, worker, and backup socket. A missing newer archive blocked expiration. After it was returned, only the eligible old archive was removed. Manual and protected archives remained, symlink targets were rejected, and replay could not recreate the expired archive. - Static systemd verification passed for the backup service and retention drop-in.
parkel added 3 commits 2026-11-21 15:09:14 +01:00
Document opt-in scheduled backup retention
Coulobre Panel CI / Checks (Python 3.12) (pull_request) Canceled after 0s
Coulobre Panel CI / Checks (Python 3.14) (pull_request) Canceled after 0s
65e12bfd63
parkel merged commit 6c0690643c into main 2026-11-21 15:17:27 +01:00
parkel deleted branch feature/backup-archive-management 2026-11-21 15:17:27 +01:00
Sign in to join this conversation.