Skip to content

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 restore

Procedura — 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.sh

Verify 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.

Ez FactoryOS — MES per Ortobellina / OP Raggio di Sole · App Frappe v16 ez_factoryos