Backup and Restore Runbook
HeliosDB Backup and Restore Runbook
Use this runbook for backup verification, point-in-time recovery, full restores, and disaster recovery testing.
Backup Verification
Verify backups before you need them:
- Confirm the latest full backup completed.
- Confirm incremental or WAL backups are continuous.
- Verify checksums and manifests.
- Run a scheduled restore test in an isolated environment.
- Compare row counts or application-level validation queries.
Example checks:
heliosdb-backup list --last 7daysheliosdb-backup verify --backup-id latest --checksumheliosdb-backup verify --backup-id latest --completenessPoint-in-Time Recovery
Use point-in-time recovery when data must be restored to a specific timestamp or LSN.
- Identify the recovery target time.
- Stop writes to the affected database if corruption is spreading.
- Restore the most recent full backup before the target time.
- Replay WAL to the target.
- Start the restored database in isolation.
- Validate data before promoting or exporting.
heliosdb-backup restore \ --backup-id latest-before-target \ --target-time "YYYY-MM-DDTHH:MM:SSZ" \ --target restore-clusterFull Restore Procedure
Use a full restore for complete environment loss or planned migration validation.
- Provision clean storage and compute.
- Restore the selected full backup.
- Apply incremental backups or WAL if required.
- Start HeliosDB in recovery mode.
- Validate schema, row counts, and application smoke tests.
- Switch traffic only after validation succeeds.
Cross-Region Restore
For regional recovery:
- Confirm backup availability in the destination region.
- Restore into an isolated cluster.
- Validate network, secrets, and endpoint configuration.
- Run application smoke tests from the destination region.
- Update routing after approval.
Recovery Time Estimation
Estimate recovery time from:
- Backup size and storage throughput.
- WAL volume since the selected full backup.
- Network transfer time for cross-region restores.
- Validation query duration.
- Application cutover and DNS or load balancer timing.
Backup Troubleshooting
| Symptom | Check | Action |
|---|---|---|
| Missing WAL segment | Backup chain continuity | Restore from earlier full backup or alternate replica |
| Checksum failure | Storage integrity and manifest | Do not use the backup; select a verified backup |
| Restore is slow | Network and disk throughput | Restore in-region or increase temporary capacity |
| Restored DB will not start | Logs and control metadata | Validate backup completeness and configuration |