Skip to content

Scheduled database backup verification#115

Open
gloskull wants to merge 2 commits into
Utility-Protocol:mainfrom
gloskull:Scheduled-Database-Backup-Verification
Open

Scheduled database backup verification#115
gloskull wants to merge 2 commits into
Utility-Protocol:mainfrom
gloskull:Scheduled-Database-Backup-Verification

Conversation

@gloskull

Copy link
Copy Markdown
Contributor

Motivation
Provide a system-wide, database-agnostic pattern to verify backups by actually restoring artifacts into isolated targets and running integrity probes.
Surface operational guidance for metrics, alerts, canary rollout, and failure runbook so backup verification is auditable and safe.
Description
Add an executable verification wrapper at scripts/verify_backup_restore.sh that supports --backup, --restore-command, multiple --probe-command entries, optional --manifest SHA-256 validation, --max-age-seconds, --canary-percent, and --dry-run.
Emit Prometheus textfile metrics (utility_backup_restore_verification_success, _duration_seconds, _last_timestamp_seconds) to a configurable --metric-file and ensure ephemeral restore cleanup on exit.
Document the design, example scheduled jobs, monitoring/alerting, blue-green/canary rollout, and runbook in docs/SCHEDULED_BACKUP_VERIFICATION.md.
Surface the feature in the main project README.md feature list.
Testing
bash -n scripts/verify_backup_restore.sh — syntax check passed.
./scripts/verify_backup_restore.sh --help | head -40 — help text verified.
End-to-end disposable test: created a temp backup, generated SHA-256 manifest, ran scripts/verify_backup_restore.sh with --restore-command 'cp {backup} {restore_dir}/restore.txt' and a probe test "$(cat {restore_dir}/restore.txt)" = ok, and verified the generated Prometheus metric file; the test completed successfully.
Closes #69

gloskull added 2 commits July 17, 2026 18:44
…cation-process

Add scheduled backup restore verification runbook and verification script
@JerryIdoko

Copy link
Copy Markdown
Contributor

resolve conflicts @gloskull

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.

Scheduled Database Backup Verification with Restore Testing

2 participants