Backup & restore
What to back up, how often, and how to restore a OrcheStack instance from scratch.
What to back up
Three things matter:
- PostgreSQL — a
pg_dumpof the entire instance covers platform state, raw, marts, Airflow, and OpenMetadata metadata. - MinIO bucket — use
mc mirrorto replicate theOrcheStack/bucket to external storage. - Config directory —
./config/contains your.env, generateddocker-compose.yml, and any custom DAGs or dbt models.
The nightly backup job
The default Airflow DAG OrcheStack_backup_nightly runs at 01:30 local time and:
- Runs
pg_dumpand writes the output tos3://OrcheStack/backups/<date>/postgres.sql.gz. - Runs
tar czfon./config/and uploads to the same prefix. - Deletes backups older than 30 days (configurable).
Manual backup
From the OrcheStack admin dashboard, go to Operations → Backup now. Triggers the same Airflow task immediately.
Restoring from backup
On a fresh OrcheStack install:
- Stop the stack:
docker compose down. - Restore
./config/from backup. - Start the stack:
docker compose up -d. - Run
pg_restoreagainst the PostgreSQL container. - Run
mc mirrorin reverse to restore MinIO.
A full restore runbook with exact commands is in the Troubleshooting section.