Backups and Disaster Recovery

Define RPO and RTO, choose a DR strategy from backup-and-restore to multi-site active-active, and centralize backups with AWS Backup.

Advanced · about 4 hours · difficulty 3/5

Learn first: High Availability and Fault Tolerance, Block and File Storage: EBS and EFS

High availability handles small failures. Disaster recovery (DR) handles big ones: a region outage, a ransomware attack, or someone running a delete script against production.

RPO and RTO

  • RPO (Recovery Point Objective): how much data you can afford to lose, measured in time. RPO of 1 hour means backups at least hourly.
  • RTO (Recovery Time Objective): how long you can be down before recovery.
  • The business sets these; tighter targets cost more.

The four DR strategies (cheapest to most expensive)

  1. Backup and restore: backups copied to another region; rebuild everything with IaC after a disaster. RTO in hours.
  2. Pilot light: core data replicated live (for example, an Aurora Global Database replica in Hyderabad), compute off until needed.
  3. Warm standby: a scaled-down but running copy in the second region.
  4. Multi-site active-active: full capacity in both regions, near-zero RTO and RPO, highest cost.

AWS Backup

  • Central backup plans for EBS, RDS, Aurora, DynamoDB, EFS, S3 and more, selected by tags.
  • Cross-region and cross-account copies protect against regional failure and compromised accounts.
  • Vault Lock makes backups immutable, a strong defense against ransomware.

Test your restores

A backup you have never restored is a hope, not a plan. Schedule restore tests and measure how long they take against your RTO. Azure Site Recovery and Azure Backup, and Google Backup and DR, are the equivalents.

Pitfalls

  • Backups in the same account an attacker has compromised.
  • IaC that cannot actually rebuild the environment in another region (hardcoded AMI IDs, region names).

You are ready to move on when you can pick a DR strategy for a given RPO/RTO and budget, and have restored a real backup in a second region.

Key concepts

  • RPO and RTO
  • Backup and restore
  • Pilot light
  • Warm standby
  • Multi-site active-active
  • AWS Backup plans and vaults
  • Cross-region and cross-account copies
  • Restore testing

Mini project

Create an AWS Backup plan that backs up a tagged DynamoDB table daily and copies it to ap-south-2 (Hyderabad). Trigger an on-demand backup, restore it in Hyderabad and time the restore. Keep the table tiny to stay in free tier, then delete the restored table, recovery points and plan.

Check yourself

A payments startup needs RPO under 1 minute and RTO under 15 minutes for its database. Which DR strategy fits, and what AWS feature would you use?

Free resources