Lesson 5 of 5 Amazon RDS and Amazon Aurora

Restoring Databases from Backups and Snapshots

This lesson explains the database restore methods, which decide how much data is lost and how long the application is down, one of the most consequential operations a CloudOps engineer performs.

Learning outcomes

After completing this lesson, you will be able to:

  • Distinguish automated backups from manual snapshots.
  • Choose between point-in-time restore, snapshot restore and Aurora Backtrack.
  • Undo a bad change with point-in-time restore.

Automated backups and snapshots

Automated backups take a daily storage snapshot during the backup window and capture transaction logs every five minutes, with a retention period of 1 to 35 days (0 disables them, which also disables point-in-time restore and read replicas). They are deleted when the instance is deleted unless you choose to retain them. Manual snapshots are kept until you delete them, can be copied to other Regions (re-encrypting with a key in the destination) and shared with other accounts (an encrypted snapshot requires sharing a customer managed key). AWS Backup can manage both schedules and retention. Automated backups can also be replicated to another Region for cross-Region point-in-time restore.

1–35days

Automated backup retention period

5min

Interval at which transaction logs are captured

Restore methods

Point-in-time restore (PITR) creates a new DB instance from automated backups to any second within the retention period, up to the latest restorable time, usually about five minutes before now. Snapshot restore creates a new instance at the moment of the snapshot. Both create new endpoints, and parameter groups and security groups should be checked on the new instance; to keep the same endpoint name, rename the old instance and give the new one the original name. For Aurora, PITR and snapshot restore create a new cluster, Backtrack (Aurora MySQL only, enabled at creation with a target window up to 72 hours) rewinds the existing cluster in place within minutes, and cloning creates a fast copy-on-write clone for investigation without affecting production.

The following table compares the methods by RTO, RPO and cost.

MethodRPORTONotes
Point-in-time restoreSeconds to ~5 minutesMinutes to hours (size-dependent)New instance; choose time just before the problem
Snapshot restoreTime since snapshotMinutes to hoursNew instance; manual snapshots kept indefinitely
Aurora BacktrackTo the second within the windowMinutesIn place; Aurora MySQL only
Aurora cloneCurrent dataMinutesCopy for investigation or testing
Promote cross-Region replicaReplication lagMinutesFor Regional disasters
Aurora Global Database failoverTypically about 1 secondAbout a minuteManaged cross-Region failover

The following diagram compares the three restore methods.

RDS and Aurora restore methods. Point-in-time restore and snapshot restore both create a new instance or cluster with a new endpoint, so the old one is renamed and the new one given its name, and its parameter and security groups checked. Backtrack, for Aurora MySQL only, rewinds the existing cluster in place within its window.
Only Backtrack keeps the same cluster and endpoint; the other methods always create a new one.
Scenario questions

Choosing a restore method

Exam skills 2.3.2

Choose the restore method that meets each recovery need.

Log in to try this activity Interactive activities are free with an account.
Worked example

Undoing a bad change

At 15:42 a developer runs an UPDATE without a WHERE clause on the production RDS for MySQL orders table. Retention is 7 days. The operator performs a point-in-time restore to 15:41 into a new instance named orders-restore with the same parameter group, subnet group and security groups.

aws rds restore-db-instance-to-point-in-time --source-db-instance-identifier orders-prod \
  --target-db-instance-identifier orders-restore --restore-time 2026-10-14T15:41:00Z \
  --db-subnet-group-name prod-db --vpc-security-group-ids sg-0db --db-parameter-group-name orders-mysql80

Because only one table was damaged and new orders have arrived since, the team copies the correct rows from orders-restore back into production rather than switching the application to the restored instance, which would lose the newer data. Had the whole database been corrupted, they would rename the instances so that the restored one takes the original endpoint.

Check yourself

What happens to point-in-time restore when the backup retention period is set to 0?

Show answer

It is disabled, because setting retention to 0 turns off automated backups.

Exam Tips

Remember for the exam

  • Automated backups (1-35 days) enable point-in-time restore; retention 0 disables it.
  • PITR and snapshot restore always create a new instance with a new endpoint.
  • Aurora Backtrack rewinds Aurora MySQL in place; cloning creates a quick copy.
  • Manual snapshots persist until deleted; share encrypted snapshots with a customer managed key.
  • Rename instances to keep the original endpoint after a restore.