Backup and Restore Runbook (Prototype)¶
1. What to Backup¶
- Repository source (
*.model.yaml, policies, docs, schemas, tests). - Generated artifacts if needed (
gate-report.json, SQL/dbt outputs). - UI local workspace export files (if users export snapshots).
2. Backup Procedure¶
- Push all branches/tags to remote Git provider.
- Export release bundle:
git archive --format=tar.gz -o release-backup.tar.gz HEAD- Store artifact in managed object storage.
3. Restore Procedure¶
- Clone repository at target commit/tag.
- Install dependencies:
python3 -m pip install -r requirements.txtcd packages/web-app && npm install- Validate integrity:
python3 -m unittest -q tests/test_mvp.py tests/test_real_scenarios.py tests/test_integrations.py tests/test_performance.py./datalex validate-all
4. Disaster Recovery Drill (Prototype)¶
Run monthly: 1. Restore from latest archive into clean directory. 2. Execute validation, policy, and generation commands. 3. Record restore duration and any missing assets.