Disaster Recovery: RPO and RTO
Set recovery targets for data loss and downtime, then choose backups and standby sites to match.
Key takeaways
- RPO is the maximum tolerable data loss, and RTO is the maximum tolerable time to restore service.
- Tighter targets cost more, so set them per system based on what an outage really harms.
- Replication protects against hardware loss but copies deletions and corruption, so keep independent backups too.
- Recovery depends on more than data, including access, configuration, DNS, keys and people.
- A plan counts only after you've restored from it and timed the result.
Two numbers drive most disaster recovery decisions. The recovery point objective, or RPO, says how much recent data you can afford to lose, measured as time. The recovery time objective, or RTO, says how long you can afford to be down. Set those for each system, and the choice of backups, replicas and standby sites largely follows.
A disaster here means anything that normal redundancy can't absorb: a destroyed building, a regional cloud outage, ransomware, a mistaken mass deletion or a lost account.
RPO and RTO in plain terms
Picture a timeline with the disaster in the middle. Looking backward, the RPO is the gap between the last good copy of your data and the failure. If you back up every night and fail at 5 p.m., you could lose most of a day's work.
Looking forward, the RTO is the time from the disruption until the service is usable again. That includes noticing the problem, deciding to act, rebuilding, restoring and checking.
These are objectives, meaning targets you design toward. What you actually achieve may differ, and only testing tells you by how much.
Setting the targets
Start from the harm, with the people who feel it. For each system, ask what happens after an hour down, a day, a week. Ask what happens if the last hour of entries vanishes, or the last day. Could they be re-entered from paper or email? Are there contracts or regulations involved?
This exercise is often called a business impact analysis. It usually reveals that systems differ widely. An order database may need minutes of RPO. An internal wiki may be fine with a day. A rarely used archive might tolerate a week of RTO.
Also map dependencies. If the order system must be back in one hour but relies on a login service with a one-day target, the order target is fiction.
Cost rises as the targets shrink
Every step toward zero costs more. Moving from daily to hourly copies takes more storage and scheduling. Moving from hourly to seconds takes continuous replication and monitoring of replication delay. Cutting recovery from days to minutes means paying for equipment that mostly waits.
Show decision makers the choice in those terms: this design loses up to a day and takes about a day to restore, that one loses minutes and returns within an hour, and here is the difference in running cost. Someone who owns the business risk should pick, and the choice should be written down.
Backups: the foundation
A backup is a separate copy that you can restore from, kept so that the event that damaged the original won't damage it too. The widely used 3-2-1 rule suggests three copies, on two kinds of media, with one off site.
Several properties matter today:
- Versioning, so you can return to a state before corruption began.
- Immutability or offline copies, so an attacker with your admin password can't erase them.
- Separate credentials, ideally a separate account, for the backup store.
- Retention long enough to cover problems discovered weeks later.
A synced folder doesn't qualify on its own, for reasons covered in sync is not backup.
Databases usually combine periodic full backups with a continuous log of changes. That allows point-in-time recovery: restore the full copy, then replay changes up to just before the mistake.
Replication and standby sites
Replication keeps a live copy elsewhere, which can bring RPO down to seconds or zero. But it copies bad writes as faithfully as good ones. Treat it as protection against losing a machine or a site, and treat backups as protection against losing the truth.
For the environment around the data, there's a familiar range of strategies.
The older terms cold site, warm site and hot site describe the same spectrum for physical facilities. High availability and failover covers the faster, everyday end of it.
Cloud services need a plan too
Hosting with a large provider protects you against many hardware failures, and it doesn't remove your responsibility for recovery. A deleted resource, a billing lockout, a compromised administrator or a regional problem can all take data or service away.
Check what each managed service backs up automatically, how long it keeps copies, and whether those copies disappear when the resource or account is deleted. Consider copying critical backups to another region and a separate account.
Software as a service deserves the same questions. Providers keep their platforms running, but restoring the records your own users deleted may be limited or time bound. Export what matters on a schedule, and confirm you could read the export without the service. Retention terms change, so read the current ones.
Matching strategy to targets
Work backward from the numbers. An RPO of 24 hours is met by nightly backups. An RPO of five minutes needs frequent log shipping or replication. An RTO of two days leaves time to build from scratch. An RTO of ten minutes means the replacement must already exist and switching must be mostly automatic.
Check restore speed against data size. As a made-up example, restoring 4 terabytes at a sustained 200 megabytes per second takes about 20,000 seconds, or five and a half hours, before any checking. The transfer time planner makes this arithmetic quick.
If the math doesn't fit the target, either change the design, split the data so the essential part restores first, or revise the target openly with whoever owns it.
What else you need to recover
Data alone doesn't run a service. A recovery plan should account for:
- Server and network configuration, ideally rebuilt from infrastructure as code
- Application code and the exact versions in use
- Encryption keys, certificates and secrets, stored where the disaster can't reach them
- Domain registrar and DNS access
- Administrator accounts, including multi-factor recovery methods
- Software licenses and vendor support contacts
- Contact lists and a way to communicate if email is down
Keep a copy of the plan somewhere that works when your systems don't. A document stored only on the server you've lost helps nobody.
When the disaster is an attacker
Ransomware and account compromise change the sequence. Restoring quickly into an environment the intruder still controls just repeats the damage. You may need to rebuild on clean systems, reset credentials and pick a restore point from before the intrusion, which can be well before the visible damage.
That often stretches both recovery time and data loss beyond the figures you planned for hardware failure. Write a separate path for it and connect it to your incident response plan. Reporting duties after a breach vary by place and have been changing, so confirm them with a qualified adviser.
Writing and testing the plan
A useful plan is short and specific:
- Who can declare a disaster, and a backup person.
- The order in which systems come back.
- Step-by-step restore instructions, with where to find access.
- How to verify data is correct and complete.
- How and when to tell staff and customers.
- How to return to normal afterward.
Begin with a tabletop exercise, talking through a scenario. Then restore a single file, then a database into an isolated environment, and eventually a whole service. Record how long each step took and what was missing.
Failing back
Recovery isn't finished when the standby takes over. While you run from the recovery site, new data accumulates there. Returning home means copying those changes back, verifying them and switching again without losing anything.
Plan that return as a scheduled operation. Decide what evidence shows the original site is trustworthy, who approves the move and what you'll do if it goes badly halfway. Also make sure the recovery environment is itself being backed up from the first hour you depend on it, a step that's easy to forget in the middle of a crisis.
Common questions
Can RPO be zero?
For some failures, yes, if every write is stored in two places before it's confirmed. That doesn't help when the write itself is the mistake, such as a bad deletion, so you still need a way back to an earlier point.
Is disaster recovery the same as business continuity?
Disaster recovery restores technology. Business continuity is broader and covers how the organization keeps working in the meantime, including people, premises, suppliers and manual procedures.
How often should we test?
Often enough that the people and the steps are still current. Many teams test restores monthly or quarterly and run a larger exercise at least yearly, plus after major changes. Regulated organizations may have required schedules.
A note for households and small offices
The same idea scales down. Ask how many days of photos or invoices you could redo, and how long you could work without your main computer. Then keep an automatic backup that matches the first answer, a second copy away from home, and recovery codes for your key accounts on paper in a safe place. Once or twice a year, restore something and open it.