Dev tools
RPO vs RTO: Setting Backup and Recovery Targets
RPO vs RTO explained: how much data you can lose vs how long you can be down, with examples, AWS recovery strategies and how to set targets per system.
In RPO vs RTO, the difference is data versus time. RPO (recovery point objective) is how much data you can afford to lose, measured as time before the failure: an RPO of one hour means you must be able to restore to a point no more than an hour before things broke. RTO (recovery time objective) is how long you can afford to be down: an RTO of four hours means service must be back within four hours of the failure.
RPO mostly decides how often you back up or replicate data. RTO mostly decides your recovery architecture: whether you restore from backups, keep a standby running or run in several places at once. Lower targets of either kind cost more. This guide explains both with timelines and an RPO vs RTO example, the mechanisms that deliver each target, the four standard disaster recovery strategies (as described by AWS), how RPO and RTO relate to MTD, and how to set realistic targets for each system.
RPO vs RTO at a Glance
| RPO (recovery point objective) | RTO (recovery time objective) | |
|---|---|---|
| Question | How much data can we lose? | How long can we be down? |
| Measured | Backwards from the failure, to the last recovery point | Forwards from the failure, until service is restored |
| Unit | Time (seconds, minutes, hours) | Time (minutes, hours, days) |
| Driven by | Backup frequency, replication | Recovery design, automation, standby capacity |
| Main cost lever | Storage and replication | Standby infrastructure and engineering |
| Example target | 15 minutes | 2 hours |
| Zero means | No data loss: synchronous replication | No downtime: active/active across locations |
AWS's disaster recovery guidance defines RTO as the maximum acceptable delay between the interruption of service and its restoration. It defines RPO as the maximum acceptable amount of time since the last data recovery point, which sets how much data loss is acceptable.
What Is RPO and RTO in Disaster Recovery?
What is RPO and RTO in disaster recovery, in practice? Picture a timeline with a failure in the middle:
- Looking back from the failure: your last good backup or replica was taken at some point. Everything written between that point and the failure is lost. The maximum gap you'll accept is your RPO.
- Looking forward from the failure: you detect the problem, decide to recover, restore or fail over, check that it works, and reopen to users. The maximum total time you'll accept is your RTO.
They're set independently. A reporting system might accept 24 hours of data loss but need to be back within an hour, because people use it all day and can re-import yesterday's data. A payments ledger might need near-zero data loss but tolerate an hour of downtime, because losing transactions is worse than being briefly unavailable.
"Disaster" covers more than fires and floods. The most common recovery events are deleted data, bad deployments, corrupted databases, ransomware and cloud region or zone outages.
How RPO Translates Into Backups and Replication
Your RPO is only as good as how often you capture a recoverable copy:
| Mechanism | Typical worst-case data loss | Notes |
|---|---|---|
| Nightly full backup | Up to 24 hours | Cheap; restore can be slow |
| Hourly snapshots | Up to about 1 hour | Common for VMs and volumes |
| Continuous log archiving with point-in-time recovery | Minutes | Databases ship transaction logs; restore to any moment in the retention window |
| Asynchronous replication | Seconds (equal to replication lag) | Lag can grow under heavy load |
| Synchronous replication | Near zero | Every write confirmed in two places; adds latency; usually within one region |
Managed services make some of these easy. Amazon RDS point-in-time recovery lets you restore to any second in the retention period, typically up to the last five minutes. Aurora Global Database replicates across regions with typical lag under a second. For self-managed PostgreSQL, continuous WAL archiving gives the same point-in-time capability; see our guide to Postgres vs MySQL for each database's backup tools.
Watch out: replication is not a backup. If someone deletes a table or ransomware encrypts data, replication copies the damage instantly. You need point-in-time copies as well.
How RTO Translates Into Architecture
Your RTO depends on everything that has to happen before users are back:
- Detection. How long until someone or something notices? Good monitoring and alerts cut minutes to hours.
- Decision. Who can declare a disaster and start recovery? Unclear ownership adds surprising delays.
- Recovery. Restoring backups, starting standby systems, changing DNS or traffic routing.
- Validation. Checking that data and services are correct before reopening.
Restore speed is often the hidden limit. Restoring a 2 TB database at 200 MB/s takes about 2.8 hours for the data transfer alone, before replaying logs, rebuilding indexes, warming caches and testing. If your RTO is one hour, plain restore-from-backup can't meet it, whatever your backup schedule.
RPO and RTO in AWS: Four Recovery Strategies
AWS's disaster recovery whitepaper groups strategies into four approaches, from cheapest and slowest to most expensive and fastest. They're a useful vocabulary for RPO and RTO in AWS and any other cloud:
| Strategy | What runs in the recovery location | Typical RPO and RTO | Relative cost |
|---|---|---|---|
| Backup and restore | Only backups | Hours | Lowest |
| Pilot light | Data replicated; core services configured but switched off or minimal | Tens of minutes | Low |
| Warm standby | A scaled-down but working copy of the full system | Minutes | Medium |
| Multi-site active/active | Full production in two or more locations, all serving traffic | Near zero | Highest |
Ranges follow AWS's DR guidance and depend heavily on implementation.
Useful AWS building blocks include AWS Backup for scheduled, cross-account and cross-region backups; RDS and Aurora features for point-in-time recovery and cross-region replicas; S3 replication, with a Replication Time Control option that is backed by an SLA to replicate 99.99% of objects within 15 minutes; and AWS Elastic Disaster Recovery, which AWS positions for RPOs of seconds and RTOs of minutes for servers. Other clouds offer equivalents.
RPO vs RTO Example
Here's an RPO vs RTO example for a small online shop that takes about 500 orders an hour at peak, with a 2 TB production database.
Current setup: nightly database backup to object storage, restore by hand.
- Worst-case data loss: a failure just before the nightly backup loses almost 24 hours, up to about 12,000 orders at peak rates.
- Worst-case downtime: detection and decision 30 minutes, restore about 3 hours, log replay and checks 1 hour, so about 4.5 hours.
Business targets after discussion: lose no more than 15 minutes of orders; be back within 1 hour.
New setup:
- Point-in-time recovery with continuous log archiving: RPO of minutes.
- A warm standby replica in a second availability zone, with automated failover: RTO of minutes for a database failure.
- Daily backups copied to a separate account and region, locked against deletion: protects against ransomware and account compromise, with a longer RTO for that rarer scenario.
Cost: the standby roughly doubles database cost. The business compares that with the revenue and reputation lost in a 4.5-hour outage with a day of missing orders, and decides it's worth it for this system only.
RPO vs RTO vs MTD
RPO vs RTO vs MTD adds the business limit that both targets must fit inside:
- MTD (maximum tolerable downtime), also called MTPD (maximum tolerable period of disruption), is how long the business can survive without a process before the damage becomes unacceptable: lost customers, regulatory breaches, contract penalties.
- RTO must be shorter than MTD, leaving time to catch up afterwards.
- WRT (work recovery time) is the time after systems return to verify data, re-enter lost work and clear backlogs. A common relationship is MTD ≥ RTO + WRT.
- RPO is about data, so it doesn't sit on the same timeline. But a looser RPO means more lost work to redo, which lengthens WRT.
These come from a business impact analysis, where each team says how long they could cope and what a lost hour of data costs.
How to Set RPO and RTO Targets
- List your systems and the business processes they support.
- Estimate the cost of downtime and data loss for each, in money, customers, legal exposure and safety.
- Group systems into tiers with standard targets instead of negotiating each one. An illustrative scheme:
| Tier | Example systems | RPO | RTO |
|---|---|---|---|
| 0 | Payments, core transactions | Seconds | Minutes |
| 1 | Customer-facing app, order database | 15 minutes | 1 hour |
| 2 | Internal tools, CRM | 4 hours | 1 business day |
| 3 | Analytics, archives | 24 hours | Several days |
- Map each tier to a recovery strategy (backup and restore, pilot light, warm standby or active/active) and price it.
- Agree the targets with the business. If the cost is too high, either relax the target or accept the risk explicitly.
- Test. Run restore drills and failover exercises on a schedule, and time them. A target you've never tested is a guess.
RPO and RTO are recovery targets for disasters. Day-to-day reliability targets such as availability belong in service level objectives; our guide to SLO vs SLA covers those, and site reliability engineering covers the practice behind them.
Common Mistakes
- Treating replication as backup. It copies deletions and corruption too.
- Never testing restores. Backups that can't be restored, or take far longer than expected, are common discoveries during real incidents.
- Ignoring restore throughput. Backup frequency sets RPO, but restore speed often breaks RTO.
- Keeping backups in the same account and region. One compromised account or regional outage takes out both production and backups. Use separate accounts and locations, and immutable or locked copies.
- One target for everything. Gold-plating every system wastes money; under-protecting key ones risks the business.
- Forgetting dependencies. An app with a one-hour RTO depends on DNS, identity, secrets and queues that need the same or better targets.
- No ransomware plan. Your real RPO in a ransomware attack is the last clean, uninfected backup. Make sure you can find it.
FAQ
What is a good RPO and RTO?
It depends on the system. Many businesses use RPOs of minutes and RTOs of an hour or less for customer-facing systems, and hours to a day for internal tools. Set them from the cost of downtime and data loss, not from a standard number.
Can RPO and RTO be zero?
Near zero is possible with synchronous replication (RPO) and active/active multi-site setups (RTO), but it's expensive and adds complexity. Truly zero is rarely worth the cost except for the most critical systems.
Which is more important, RPO or RTO?
Neither in general. Systems that record transactions care most about RPO; systems that people or customers need continuously care most about RTO. Many need both.
How often should I test disaster recovery?
At least once or twice a year for full exercises, and more often for automated restore tests of critical data. Test after major architecture changes too.
Is RTO the same as MTTR?
No. RTO is a target set in advance for disaster recovery. MTTR (mean time to recovery or repair) is a measured average of how long incidents actually take to resolve.