Backup e Restore (operazioni)
Scopo
Shortcut operativo. Fonte canonica: infrastructure/backup-restore.
Prerequisiti
Vedere pagina infrastruttura (limiti: restore.sh pieno solo in development).
Procedura — Development
bash
make backup
BACKUP_ID=<timestamp> make restoreProcedura — Staging / Production
Preferire webhook pre-deploy. Esempio invocazione script:
bash
EZ_ENV=staging COMPOSE_FILE=deploy/compose/staging.yml \
ENV_FILE=deploy/env/.env.staging bash scripts/backup.shVerify su staging (Control)
Vedere sezione Verify backup → staging in infrastructure/backup-restore: endpoint admin + cron settimanale. Target sempre staging; non tocca main.
Verifica
manifest.json presente; ping site OK dopo restore locale.
Rollback
Allineare restore a rollback.
