How much data can you lose, how long can you be down, and how to plan for a whole region failing.
Backups are copies of your data you can restore after a disaster. RPO and RTO are the two promises that tell you how good those backups must be. Disaster recovery (DR) is the plan for getting back to work.
Hardware fails, people make mistakes, software has bugs, and whole data centres can lose power or flood. Replicas protect you against a single machine dying. They do not protect you when someone runs DELETE without a WHERE, when a bug writes garbage, or when ransomware encrypts everything, because every replica faithfully copies the damage.
A backup is a separate, older copy that the damage did not reach. Two numbers describe how good your plan is:
| Kind | What it copies | Restore needs | Notes |
|---|---|---|---|
| Full | Everything | That one copy | Biggest and slowest to take, simplest to restore |
| Incremental | Only what changed since the last backup of any kind | The last full plus every incremental after it, in order | Small and fast to take, longer restore chain |
| Differential | Everything changed since the last full backup | The last full plus the latest differential | Grows each day, but restore uses just two pieces |
| Snapshot | A storage-level point-in-time image of a disk or volume | The snapshot | Very fast to take. Check that it is consistent for a database |
| Logical dump | Rows exported as SQL or files | Re-import the data | Portable across versions, but slow to restore at large sizes |
| Log archive | The write-ahead log, shipped continuously | A base backup plus the logs | Lets you rewind to a chosen moment |
| Strategy | What runs in the second region | Recovery | Cost |
|---|---|---|---|
| Backup and restore | Nothing. Only backup copies are stored there | Slowest: build everything, then restore | $ |
| Pilot light | The database copy, kept up to date. Other servers are off | Faster: start and scale up the rest | $$ |
| Warm standby | A small but complete copy of the system, running | Fast: scale it up and switch | $$$ |
| Active-active | A full system in each region, both serving users | Fastest: reroute traffic | $$$$ |
Every figure here is made up for teaching: 45 min to prepare a new region, 30 / 10 / 2 min to take over, a log shipped about every 5 min, log replay at about 10% of the time it covers, and 15 min to notice a bad delete. Without log archiving, the data you lose is the time since the last backup. Real times depend on your tools, and only a practised restore tells you the truth.
| Term | Meaning in easy words |
|---|---|
| Backup | A separate copy of data that can be restored after a loss |
| RPO | Recovery point objective: the most recent data you can afford to lose, in time |
| RTO | Recovery time objective: the longest you can be down |
| Disaster recovery (DR) | The plan and setup for restoring service after a major failure |
| Full / incremental / differential | Three ways to choose what a backup copies |
| Snapshot | A fast point-in-time image of a disk or volume |
| Log archiving | Continuously saving the database log, so you can replay changes after a backup |
| Pilot light | A DR setup with only the data layer running in the second region |
| Warm standby | A scaled-down but running copy of the whole system |
| Immutable backup | A backup that cannot be changed or deleted until a set date |
| 3-2-1 rule | Three copies, two kinds of storage, one off-site |
| Choice | We gain | We lose |
|---|---|---|
| Backup more often | Smaller data loss | More storage, more load during the backup |
| Archive the log | Rewind to almost any moment | Another thing to run, monitor and secure |
| Keep a running standby | Short recovery time | You pay for idle capacity |
| Active-active | Almost no downtime | Complex data conflicts, highest cost |
| Keep backups for years | Meets rules, covers late discovery of damage | Storage cost and larger legal exposure |
| Immutable, locked copies | Safe from deletion and ransomware | You cannot remove them early, even by mistake |