← Simulation Lab

💾 Plan backups: RPO and RTO

Software & Cloud

When the database dies, two questions matter: how much data is lost (RPO, set by how often you back up) and how long until it is back (RTO, set by restore speed). Meet the business target without overspending.

⭐ Level 1: Trainee0 XP · next level at 300
🎯 Payments database, 200 GB: lose at most 1 hour of data (RPO) and be back within 30 minutes (RTO).
Controls
Results
Data you can lose (RPO)1,440 min
Time to restore (RTO)83 min
Backup storage380 GB
Storage cost (₹1.5/GB, illustrative)₹570 / month

Test a restore every quarter: a backup nobody has restored is only a hope.

📘 How it works

RPO is how far back in time you go when restoring; RTO is how long the service is down. Frequent backups or log shipping shrink RPO; snapshots and fast disks shrink RTO. Longer retention protects against late-discovered problems but costs storage.

RPO = backup interval · RTO = 15 min + size × 1024 ÷ speed ÷ 60 · storage = size × (1 + 3% × days)A simplified textbook model for learning. Real designs follow the full codes and standards.