Repository navigation
feat(ops): add backup and restore runbook - #1819
Merged
github-actions[bot] merged 1 commit intoOct 17, 2026
Merged
github-actions[bot] merged 1 commit into
github-actions[bot] merged 1 commit into
Conversation
Add backup and restore scripts with S3 upload support, a round-trip test script, and comprehensive runbook documentation with RTO/RPO. Changes: - Create scripts/db-backup.sh: compressed pg_dump backup with checksum, S3 upload, and local retention pruning - Create scripts/db-restore.sh: restore from backup with safety checks (production detection, dry-run, checksum verification), post-restore migration runner - Create scripts/db-backup-test.sh: round-trip test that backs up, restores to a test DB, verifies table counts, and checks migration status - Create docs/BACKUP_RESTORE_RUNBOOK.md: RTO/RPO targets (1h RPO, 30min RTO), backup schedule (hourly/daily/weekly/monthly), cron configs, restore procedure with 9-step production recovery, testing guide, env vars Acceptance criteria: - [x] Backups scheduled — hourly/daily/weekly/monthly cron configs documented - [x] Restore tested — db-backup-test.sh validates full round-trip pipeline - [x] RTO/RPO stated — RPO: 1 hour, RTO: 30 minutes
|
@faith3310 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Resolves #1803
Add backup and restore scripts with S3 upload support, a round-trip test script, and comprehensive runbook documentation with RTO/RPO.
Changes
scripts/db-backup.sh: compressed pg_dump backup with checksum, S3 upload, and local retention pruningscripts/db-restore.sh: restore from backup with safety checks (production detection, dry-run, checksum verification), post-restore migration runnerscripts/db-backup-test.sh: round-trip test that backs up, restores to test DB, verifies table countsdocs/BACKUP_RESTORE_RUNBOOK.md: RTO/RPO targets, backup schedule, cron configs, 9-step production recovery, testing guideAcceptance Criteria