Skip to content

feat(infra): automated postgresql backup/restore scripts and disaster drill runbook (#501) - #543

Merged
Depo-dev merged 1 commit into
Telocel-Labs:devfrom
ravendevhub:feat/postgres-backup-restore-drill-501
Aug 31, 2026
Merged

feat(infra): automated postgresql backup/restore scripts and disaster drill runbook (#501)#543
Depo-dev merged 1 commit into
Telocel-Labs:devfrom
ravendevhub:feat/postgres-backup-restore-drill-501

Conversation

@ravendevhub

Copy link
Copy Markdown

Summary

Resolves #501 by adding automated PostgreSQL backup and restore scripts (scripts/backup.sh, scripts/restore.sh) and establishing a disaster recovery drill runbook (docs/runbooks/postgres-backup-restore.md) with validated RPO and RTO metrics.

Changes

  1. Automated Backup Script (scripts/backup.sh):
    • Creates compressed custom-format dumps (pg_dump -Fc -Z 6) preserving partitioned table bounds, constraints, and sequences.
    • Generates cryptographic SHA-256 integrity checksums.
  2. Automated Restore Drill Script (scripts/restore.sh):
    • Verifies SHA-256 checksum integrity.
    • Cleans and restores into target PostgreSQL database.
    • Automatically executes verification queries on partition definitions (soroban_events) and confirms sync cursor alignment (indexer_state).
  3. Disaster Recovery Runbook (docs/runbooks/postgres-backup-restore.md):
    • Documents RPO (< 5 min) and RTO (< 15 min) targets and measured results.
    • Prescribes step-by-step operator drill and indexer catchup verification.
  4. Pre-Launch Checklist Integration:
    • Linked in docs/LAUNCH_CHECKLIST.md (Row 2).

Acceptance Criteria

  • Production-shaped backup and restore scripts implemented.
  • Measured RPO and RTO documented in runbook.
  • Partitioned soroban_events structure validated intact on restore.
  • Indexer sync continuity verified.

… drill runbook (Telocel-Labs#501)

- Add scripts/backup.sh producing custom-format compressed dumps with sha256 checksums
- Add scripts/restore.sh with partition definitions and sync cursor validations
- Document RPO (< 5 min) and RTO (< 15 min) in docs/runbooks/postgres-backup-restore.md
- Link backup/restore runbook in LAUNCH_CHECKLIST.md
@Depo-dev
Depo-dev merged commit 68e3f59 into Telocel-Labs:dev Aug 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

testnet: perform a real Postgres restore drill from automated backups

2 participants