TL;DR
|
When something goes badly wrong, such as a deleted database, a failed region, or a ransomware attack, two questions decide how bad it gets: how long will we be down, and how much data will we lose? RTO and RPO are the names for your answers, set in advance.
This guide explains both, shows how they relate to backups and recovery, and covers how to set targets that match what your business can tolerate.
Key takeaway: RTO is about time to recover. RPO is about data lost.
| RTO | RPO | |
|---|---|---|
| Stands for | Recovery time objective | Recovery point objective |
| The question it answers | How long can we be down? | How much data can we lose? |
| Measured as | Time from the incident until service is back | Time between the last good copy of the data and the incident |
| Example | Back online within 4 hours | Lose no more than 1 hour of data |
| Mainly set by | Restore speed, preparation, and how fast people can act | How often you back up or copy data |
Picture a timeline. The incident happens at noon. If your last backup was at 11:00, you lose an hour of data: that's your actual recovery point. If you're back online at 15:00, you were down for three hours: that's your actual recovery time.
Key takeaway: your RPO can't be shorter than the gap between your backups.
If you back up once a day, you could lose up to a day of data, so your RPO is effectively 24 hours. To lower it:
| Approach | Typical RPO | Trade-off |
|---|---|---|
| Daily backups | Up to 24 hours | Simple and cheap, but a full day of data at risk |
| Backups every few hours | A few hours | More storage, more backups to manage |
| Continuous replication to another location | Seconds to minutes | More cost and complexity |
Replicas, live copies of a database, help with hardware failure, but they also copy mistakes almost instantly. Deleting a table on the main database deletes it on the replica too. So replication complements backups but doesn't replace them. Our guide What is a database read replica? explains replicas in more detail.
Key takeaway: RTO covers everything between the incident and being back online, not just the restore itself.
Recovery time is more than restoring a backup. It includes:
Large databases take longer to restore, and untested runbooks take longer to follow. The fastest way to shorten RTO is often preparation: clear steps, rehearsed restores, and alerts that reach the right people.
Key takeaway: set targets per system, based on what an hour of downtime and an hour of lost data actually cost.
Not every system needs the same targets. A shop's checkout matters more than its internal wiki.
| System | Example RTO | Example RPO | Why |
|---|---|---|---|
| Online checkout | 1 hour | 15 minutes | Every hour down loses sales, and lost orders are hard to rebuild |
| Customer database | 4 hours | 1 hour | Important, but brief unavailability is tolerable |
| Marketing website | 24 hours | 24 hours | Content rarely changes and can be republished |
| Internal reporting | 72 hours | 24 hours | Inconvenient, but nothing urgent depends on it |
To set yours, ask the business two questions for each system: what does an hour of downtime cost, and what would losing an hour of data cost? Lower targets mean more frequent backups, more redundancy, and more rehearsal, so match the spend to the risk.
Key takeaway: two of the costliest mistakes are untested restores and backups kept in the same place as the data they protect.
| Mistake | What happens | How to avoid it |
|---|---|---|
| Never testing a restore | The backup turns out to be incomplete, or the restore takes far longer than planned | Restore regularly and time it |
| Backups in the same place as the data | One incident takes out both | Keep at least one copy somewhere separate |
| Counting a replica as a backup | A mistake is copied to the replica instantly | Keep backups that hold earlier versions |
| One target for everything | Money is spent protecting systems that don't need it | Set targets per system |
| Forgetting files and configuration | The database is restored, but uploads or settings are missing | Back up everything the app needs, not only the database |
Key takeaway: on Upsun Cloud, backups cover an environment's code, data, and files together, and you can schedule them often enough to meet your RPO.
According to the Upsun docs on backups:
| What to know | Details from the Upsun docs |
|---|---|
| What a backup includes | The environment's code, the data in every service, and files stored on mounts |
| Default schedule | One automated backup a day for production environments, with 2 days of backups retained |
| Custom schedules | You can set your own backup policy per environment type, with intervals measured in hours, days, weeks, months, or years |
| Manual backups | Take one before risky changes. They're kept until you delete or replace them |
| Downtime during backups | Automated backups are live, with no downtime. Manual backups pause the site briefly, usually 15 to 30 seconds, holding requests rather than dropping them, unless you choose a live backup |
| Restoring | upsun backup:restore returns the environment's code and data to the moment of the backup |
| Where backups are stored | On Upsun Cloud. They can't be downloaded, so export your data if you need a copy somewhere else |
In RPO terms, the default daily backup means up to a day of data could be lost from a production environment. A custom policy with more frequent backups shortens that. For a copy outside the platform, the docs describe exporting your data.
The docs don't publish restore times, which depend on the size of your data. Find your real RTO by restoring and timing it. Our guide What is a deployment rollback? covers the difference between rolling back code and restoring data. For a real-world scenario, see the "delete everything" post.
You can deploy on Upsun Cloud free for 15 days, with no card needed, or see how backups and data recovery work on Upsun Cloud.
What is the difference between RTO and RPO?
RTO is how long you can be down after an incident. RPO is how much data, measured in time, you can afford to lose.
What is a good RTO and RPO?
It depends on the system. A checkout might need an RTO of an hour and an RPO of minutes, while an internal wiki can tolerate a day of each.
How does backup frequency affect RPO?
Your RPO can't be shorter than the time between backups. With daily backups, you could lose up to a day of data.
Is a replica a backup?
No. A replica copies changes, including mistakes and deletions, almost instantly. Backups keep earlier versions you can go back to.
How do I measure my actual RTO?
Run a realistic restore test and time it from the moment you decide to recover until the service is working again.
What is the difference between disaster recovery and business continuity?
Disaster recovery is about restoring systems and data after an incident. Business continuity is the wider plan for keeping the business running, including people, processes, and communication.