snapshot: preserve backup UX, remote target setup, and docs updates

This commit is contained in:
Md Bayazid Bostame
2026-03-26 01:53:44 +01:00
parent 2a372fdb15
commit 438334bd92
26 changed files with 1737 additions and 383 deletions

View File

@@ -78,3 +78,24 @@ Run a real workflow verification (onboarding + offboarding), including PDF check
- `docker compose exec -T web python manage.py run_staging_e2e_check --email-check mailhog --mailhog-api-url http://mailhog:8025/api/v2/messages`
- Skip Nextcloud existence checks:
- `docker compose exec -T web python manage.py run_staging_e2e_check --skip-nextcloud`
## Backup and restore
Use the repo-level scripts so database and media backups stay consistent.
- Create a backup bundle:
- `make backup-create`
- Verify a backup non-destructively:
- `make backup-verify BACKUP_DIR=backend/backups/backup_YYYYmmdd_HHMMSS`
- Real restore:
- `./scripts/backup_restore.sh --yes-restore backend/backups/backup_YYYYmmdd_HHMMSS`
What is included:
- PostgreSQL custom-format dump: `db.dump`
- media archive: `media.tar.gz`
- metadata file and SHA256 checksums
- default storage path: `backend/backups/`
Verification behavior:
- restores the dump into a temporary verification database
- extracts media into a temporary directory
- checks that the restored DB and media structure are readable