A backup job reports success every night. Then an import overwrites customer records, and the team discovers that nobody knows which backup to choose, where to restore it, or how the application will reconnect. The files exist, but the business still cannot resume work with confidence.
A recovery plan connects backup creation to a usable application. It needs an owner, a recovery target, protected access, and evidence from a rehearsal. This guide outlines a practical way to make those decisions for a growing product without assuming that every database or hosting service behaves the same way.
The key ideas
- Agree how much data loss and downtime the business can tolerate.
- Match backup and log retention to the incidents you need to recover from.
- Prove recovery by restoring and validating the application in isolation.
Define acceptable data loss and time to resume work
Recovery point objective, or RPO, describes the acceptable data-loss window. Recovery time objective, or RTO, describes the target time to restore service. Ask the business to make them concrete: could it reconstruct the last hour of bookings, and how long could staff work without the system? Different workflows may justify different targets and costs.
A nightly backup alone cannot establish a 15-minute data-loss target. An hourly backup also does not establish a one-hour recovery time: locating it, provisioning capacity, loading data, validating the application, and reconnecting users all take time. Write down assumptions and measure the entire rehearsal before describing a target as achievable.
Choose a backup method that supports the recovery target
PostgreSQL documents SQL dumps, filesystem-level backups, and continuous archiving as distinct approaches. A logical dump can be useful for selected recovery workflows, but a single database dump does not include all cluster-wide objects such as roles and tablespaces. Capture the required global objects separately and document configuration and dependencies. Copying a live data directory without a supported consistency procedure is not a substitute for a valid backup.
For PostgreSQL point-in-time recovery, plan a suitable base backup and a continuous sequence of required write-ahead log files. Monitor the archive as well as the base backup. MySQL has its own backup methods and binary-log recovery procedures; select a consistent method for the storage engines and workload you operate. A PostgreSQL command sequence should not be reused as a MySQL recovery recipe.
Reference: PostgreSQL: backup and restore approaches; PostgreSQL: SQL dumps and cluster-wide objects; PostgreSQL: continuous archiving and point-in-time recovery; MySQL 8.4: backup and recovery
Protect backups from the failure they must survive
List the incidents you are planning for: accidental deletion, a bad release, lost infrastructure, or compromised access. A copy on the database server shares the server's failure boundary. A replica can help availability, but it may also reproduce the unwanted change. Keep recovery copies and their access controls appropriate to the incidents you need to survive.
Restrict who can read, overwrite, and delete backups. Retain access to required encryption keys and restoration credentials through an agreed recovery process. Where supported and justified, evaluate deletion protection, immutable retention, or copies across accounts or regions. Choose retention around how long it may take to discover corruption as well as how frequently backups run; a quick backup cycle with short retention can still leave no usable recovery point.
Verify what a managed restore actually creates
Managed backups reduce some operating work, but the recovery workflow still needs rehearsal. For Amazon RDS DB instances, a point-in-time restore creates a new DB instance without modifying the source. Plan how the application will use the restored instance, and verify networking, access, configuration, and the available restore window for your engine and deployment.
Do not assume a restore includes every surrounding dependency. The application may also need object storage, secrets, background queues, scheduled jobs, and compatible code. Keep a record of the release and infrastructure configuration associated with the recovery point. For other managed products, check their specific restore documentation rather than assuming that RDS instance behavior applies everywhere.
Reference: Amazon RDS: restoring a DB instance to a specified time
Run a restore exercise with application checks
Restore to an isolated environment with outbound payment, email, and webhook processing disabled or safely redirected. Select the backup or target time, record when work starts, and follow the written steps using the intended recovery role. A rehearsal should reveal missing permissions and dependencies before an actual outage does.
Validate more than the database startup message. Compare important totals, check a sample of known records, and exercise tenant isolation and business relationships. Confirm that restored users can complete a representative workflow using safe test data. Record how recent the restored data is and the time until the application is usable, including the validation work.
| Check | Evidence | Responsibility to assign |
|---|---|---|
| Recovery point | Selected timestamp and confirmed data freshness | Business and database owners |
| Restore access | Recovery role can retrieve copies and required keys | Infrastructure owner |
| Application validation | Important records, totals, and workflows checked | Application and business owners |
| Service recovery | Measured restore, validation, and reconnection duration | Incident coordinator |
Plan the return to service and repeat the exercise
An actual incident also needs a decision about writes accepted after the selected recovery point. Pause affected processing when appropriate, preserve evidence, and agree how to reconcile missing orders, payments, or external events. Prevent duplicate side effects when restarting workers. A technically successful restore can still leave the business inconsistent with a payment provider or another system.
Keep a runbook naming who chooses the recovery point, who validates data, who redirects traffic, and who authorizes resumed processing. Monitor backup failures and log-archive gaps, then repeat restores on an agreed schedule and after significant changes. Use the observed recovery time and data freshness to improve the plan and revisit its cost with the business.
- Inventory databases, files, configuration, keys, and external dependencies.
- Record retention, recovery targets, owners, and escalation contacts.
- Keep restore instructions and access available during an infrastructure outage.
- Track rehearsal findings until missing steps and permissions are resolved.
Sources & further reading
The guidance above combines our engineering recommendations with the official references below. Service features and platform requirements can change; check the current documentation when implementing.