Disaster recovery that has never been tested
At a glance
Section titled “At a glance”| Aspect | Aspect |
|---|---|
| Typical organization | Any company whose systems grew faster than its recovery planning |
| Symptoms | Backups run, but restores are never tested; no agreed recovery targets; one region or data center holds everything |
| Root cause | Recovery treated as a backup job rather than a capability that must be designed and practiced |
| Usual fix | Set recovery targets per system, match each to a recovery pattern, and test restores and failovers on a schedule |
| Patterns | Backup and restore, pilot light, warm standby, active-active, multiple availability zones |
Sound familiar?
Section titled “Sound familiar?”- “We have backups” is the whole disaster recovery plan.
- Nobody has restored the main database from backup in the last year.
- Everything runs in one data center or one cloud region.
- Backups are stored with the same credentials as production, so an attacker or a mistake could delete both.
- The recovery runbook refers to servers that no longer exist.
Why it happens
Section titled “Why it happens”Backups are easy to set up and easy to forget. Recovery is harder: it depends on infrastructure, data, configuration, people and the order things come back in, and all of these change constantly. A backup that has never been restored is a hope, not a plan.
Your options
Section titled “Your options”Choose per system, based on two targets: the recovery time objective (RTO), how long it may be down, and the recovery point objective (RPO), how much data you can afford to lose.
| Pattern | Typical RTO and RPO | Relative cost | Fits |
|---|---|---|---|
| Backup and restore | Hours to a day; data since the last backup | Lowest | Internal tools, non-urgent systems |
| Pilot light: data replicated, minimal infrastructure ready | Tens of minutes to hours; minutes of data | Low to medium | Important systems that can tolerate some downtime |
| Warm standby: a scaled-down copy running | Minutes; seconds to minutes of data | Medium to high | Customer-facing systems |
| Active-active across regions | Near zero; near zero | Highest | Systems where any outage is unacceptable |
A proven approach
Section titled “A proven approach”- Tier your systems. With the business, agree an RTO and RPO for each, and group systems into three or four tiers.
- Match each tier to a pattern, and design for losing a whole zone, region or account, not just a server.
- Protect the backups: store copies in a separate account or location, make them immutable, and restrict who can delete them.
- Automate recovery with infrastructure as code, so a new environment can be built from scratch.
- Test on a schedule: restore a database every month, fail over a critical system every quarter, and record how long each step really took.
- Tier 1 systems replicate continuously to a warm standby that is already running.
- Tier 2 systems replicate their data; compute is started only when needed.
- Every tier is backed up to immutable storage in a separate account.
- Restores are rebuilt from code and tested on a schedule, with real timings recorded.
Trade-offs and what to watch
Section titled “Trade-offs and what to watch”- Cost rises steeply with tighter targets. Active-active for everything is rarely justified.
- Replication copies mistakes too. A bad delete or corruption reaches the standby in seconds; you still need point-in-time backups.
- Untested runbooks rot. Every infrastructure change can break recovery.
How you’ll know it worked
Section titled “How you’ll know it worked”Each tier has a documented, recently tested recovery with measured times inside its targets, and a restore test is a routine event rather than an emergency.
Seen in the real world
Section titled “Seen in the real world”- The failure library includes GitLab’s 2017 database incident, where several backup methods turned out not to be working when they were needed.
- Netflix tested failure deliberately in production with Chaos Monkey and simulated the loss of an availability zone.
Related on ArchitectureCompass
Section titled “Related on ArchitectureCompass”Written and edited by Abhinav Taduka, enterprise software architect.
New pages are added regularly. Follow Abhinav on LinkedIn to see them first.