Restore website files from local account backups #35

Merged
parkel merged 3 commits from feature/backup-recovery into main 2026-11-21 14:44:54 +01:00
Owner

Summary

  • Let authorized operators restore one file or the entire website from a completed backup of the current account and domain.
  • Require explicit replacement for an existing file and an empty document root for an entire website restore.
  • Record the source backup, target, operator, and outcome in the panel. Persist request receipts on the node to prevent duplicate deliveries from applying the same restore twice.
  • Use the existing backup worker and an opt-in local restore socket. Preserve website storage quotas during staging and document the deployment.

The account bundle commands remain available for database and mailbox recovery.

Verification

  • Ruff lint and format checks, Django migration drift check, and all 305 Django tests.
  • Ubuntu 26.04 with MariaDB and a Celery worker exercised file replacement, request replay, and full website recovery through the panel and Unix socket.
  • An Ubuntu VM with an ext4 quota volume verified that over-limit restores leave the destination untouched and succeed after raising the quota.
  • Static systemd verification passed for the socket, service, and worker drop-in.
## Summary - Let authorized operators restore one file or the entire website from a completed backup of the current account and domain. - Require explicit replacement for an existing file and an empty document root for an entire website restore. - Record the source backup, target, operator, and outcome in the panel. Persist request receipts on the node to prevent duplicate deliveries from applying the same restore twice. - Use the existing backup worker and an opt-in local restore socket. Preserve website storage quotas during staging and document the deployment. The account bundle commands remain available for database and mailbox recovery. ## Verification - Ruff lint and format checks, Django migration drift check, and all 305 Django tests. - Ubuntu 26.04 with MariaDB and a Celery worker exercised file replacement, request replay, and full website recovery through the panel and Unix socket. - An Ubuntu VM with an ext4 quota volume verified that over-limit restores leave the destination untouched and succeed after raising the quota. - Static systemd verification passed for the socket, service, and worker drop-in.
parkel added 3 commits 2026-11-21 14:43:07 +01:00
Deploy the quota-aware local website restore socket
Coulobre Panel CI / Checks (Python 3.12) (pull_request) Canceled after 0s
Coulobre Panel CI / Checks (Python 3.14) (pull_request) Canceled after 0s
14aabb8da7
parkel merged commit 893e9b34a7 into main 2026-11-21 14:44:54 +01:00
parkel deleted branch feature/backup-recovery 2026-11-21 14:44:54 +01:00
Sign in to join this conversation.