How RDS Snapshots and Automated Backups Work

How Amazon RDS automated backups, point-in-time restore and manual snapshots work: retention, deletion, sharing, billing and restore commands.

Aug 8, 2025 - 12:04
Nov 6, 2026 - 03:20
 0  71
TOPICDevOps BasicsPractical guide
How RDS Snapshots and Automated Backups Work

Amazon RDS protects data in two ways. Automated backups take a daily storage snapshot plus transaction logs uploaded every five minutes, so you can restore to any second in a retention window of up to 35 days. Manual snapshots are point-in-time copies you create yourself, kept until you delete them. Every restore creates a new DB instance.

This guide explains how each mechanism works, what happens when you delete an instance, how storage is billed, and how to run and test a restore with the AWS CLI. It belongs to our AWS services for DevOps cluster. Availability topics such as Multi-AZ are covered separately in Single-AZ vs Multi-AZ RDS. Facts below were checked against the Amazon RDS User Guide in November 2026.

Key takeaways

  • Automated backups give point-in-time recovery (PITR) within the retention period, which can be 0 to 35 days for a DB instance. Setting it to 0 turns automated backups off.
  • The default retention is 7 days when you create an instance in the console and 1 day when you create it with the CLI or API without setting it.
  • Manual snapshots do not expire and survive instance deletion. You can keep up to 100 manual snapshots per Region.
  • Unless you choose "Retain automated backups," deleting an instance deletes its automated backups. Take a final snapshot.
  • Restores never overwrite the source. They create a new instance with the default parameter and option groups unless you specify others.
  • A backup you have never restored is untested. Schedule restore drills and measure how long they take.

Automated backups vs manual snapshots

FeatureAutomated backupsManual snapshots
Who starts themRDS, daily during the backup windowYou, from the console, CLI, API or a tool such as AWS Backup
Restore granularityAny point in the retention period (PITR)The moment the snapshot was taken
Retention0 to 35 days for DB instances (1 to 35 for Multi-AZ DB clusters)Until you delete them
On instance deletionDeleted, unless you choose to retain them for the retention periodKept
LimitNot counted against the manual snapshot quotaUp to 100 per Region
Sharing with other accountsCopy to a manual snapshot firstUp to 20 AWS accounts
Typical useRecover from mistakes and corruption in the last daysBefore upgrades, for long-term or compliance copies, for cloning to other accounts

How automated backups work

RDS takes a storage volume snapshot of the whole DB instance, not individual databases, once a day during the backup window. Between snapshots it ships the database transaction logs to Amazon S3 every five minutes. To restore to a time T, RDS starts from the snapshot before T and replays logs up to T. That is why the latest point you can restore to, the LatestRestorableTime, is usually a few minutes behind the present.

A few rules from the RDS documentation shape how reliable these backups are:

  • The instance must be in the available state. No automated backup happens while it is, for example, in storage_full.
  • Automated backups do not run while a DB snapshot copy is in progress in the same Region for the same database.
  • Time spent stopped does not count toward the retention period, and no automated backups are created while an instance is stopped.
  • The first snapshot contains the full data. Later snapshots are incremental and store only changed blocks.
  • Changing retention from 0 to a nonzero value, or from nonzero to 0, causes an outage. Plan that change in a maintenance window.

The backup window and I/O impact

You choose a preferred backup window, or RDS picks one for you. On a Single-AZ instance, taking a snapshot causes a brief I/O suspension that can last from a few seconds to a few minutes depending on instance size and class. For MariaDB, MySQL, Oracle and PostgreSQL in a Multi-AZ deployment, the backup is taken from the standby, so I/O on the primary is not suspended. SQL Server Multi-AZ still suspends I/O briefly. Put the window in your quietest hour regardless.

How manual snapshots work

A manual snapshot is the same kind of storage volume snapshot, taken on request and kept until you delete it. Snapshots are not subject to the backup retention period and do not expire. Typical moments to take one:

  • Right before a major engine version upgrade or a schema migration.
  • Before deleting an instance (the final snapshot).
  • At month or quarter end for audit retention.
  • To clone production into a separate account for testing, after masking sensitive data.
# Take a manual snapshot before an upgrade
aws rds create-db-snapshot \
    --db-instance-identifier orders-db \
    --db-snapshot-identifier orders-db-pre-upgrade-2026-11-07

# Wait until it is ready
aws rds wait db-snapshot-available \
    --db-snapshot-identifier orders-db-pre-upgrade-2026-11-07

For very long-term retention of MariaDB, MySQL and PostgreSQL data, AWS recommends exporting snapshot data to Amazon S3. One reason: if a major engine version is no longer supported, you cannot restore a snapshot to that version.

Copying and sharing

You can copy both automated and manual snapshots, including to another Region for disaster recovery. You can share manual snapshots with up to 20 AWS accounts. Points to remember:

  • To share an automated snapshot, copy it to a manual snapshot first and share the copy.
  • Encrypted snapshots cannot be made public, and snapshots encrypted with the default AWS KMS key cannot be shared. Use a customer managed key and grant the other account access to it.
  • Never set snapshot visibility to Public for anything containing private data. A public snapshot can be restored by any AWS account.
  • If someone shares a snapshot with you, copy it to keep access; the copy's storage is then billed to your account.
# Share a manual snapshot with a DR account
aws rds modify-db-snapshot-attribute \
    --db-snapshot-identifier orders-db-monthly-2026-10 \
    --attribute-name restore \
    --values-to-add 111122223333

Where backups live and how they are billed

RDS stores backups in Amazon S3, managed by the service, so you do not see them as objects in your own buckets. Backup storage per Region is the sum of all automated backups and manual snapshots in that Region. RDS gives a free allowance equal to 100 percent of your total provisioned database storage in that Region. AWS now applies that allowance as a percentage discount across all snapshots, so each snapshot appears as its own line in Cost Explorer and the Cost and Usage Report.

The worked example in the RDS docs: with 100 GB provisioned and 125 GB of snapshots, 80 percent is free and you pay for 25 GB. Practical consequences:

  • Long retention on a busy database grows backup storage because more changed blocks and logs are kept.
  • Old manual snapshots of deleted instances keep costing money. Tag snapshots with the source instance and owner so you can find them.
  • Cross-Region copies add storage in the destination Region.

Check current prices on the Amazon RDS pricing page rather than relying on figures in blog posts. Our RDS billing guide covers the other cost lines.

Restoring: what actually happens

Both restore types create a new DB instance. The source is untouched, which is safe but means you must repoint applications or rename instances afterwards.

Point-in-time restore

# Find the restore window
aws rds describe-db-instances \
    --db-instance-identifier orders-db \
    --query "DBInstances[0].LatestRestorableTime"

# Restore to just before a bad deployment ran its migration
aws rds restore-db-instance-to-point-in-time \
    --source-db-instance-identifier orders-db \
    --target-db-instance-identifier orders-db-restore-0915 \
    --restore-time 2026-11-07T09:14:00Z \
    --db-parameter-group-name orders-pg16-params \
    --vpc-security-group-ids sg-0abc1234def567890

# Or restore to the latest possible time
aws rds restore-db-instance-to-point-in-time \
    --source-db-instance-identifier orders-db \
    --target-db-instance-identifier orders-db-restore-latest \
    --use-latest-restorable-time

Restore from a snapshot

aws rds restore-db-instance-from-db-snapshot \
    --db-instance-identifier orders-db-from-snap \
    --db-snapshot-identifier orders-db-pre-upgrade-2026-11-07

Things that surprise people after a restore

  • Parameter and option groups. A restored instance gets the default groups unless you pass custom ones in the CLI or API call. In the console, change them after the restore.
  • Security group. Choose the right VPC security group, or the application cannot connect. See securing RDS in a private subnet.
  • Warm-up. After the instance is available, its volumes keep loading blocks from S3 in the background. It works, but performance may be lower until initialisation completes. Watch StorageOperationStatus in describe-db-instances.
  • Storage size. You cannot shrink allocated storage on restore, and an increase must be at least 10 percent.
  • Instance size. AWS recommends restoring to the same or a similar size and IOPS as the source.
  • Endpoint. The new instance has a new endpoint. Update connection strings, secrets or a DNS alias.
  • Engine specifics. PostgreSQL unlogged tables might not be restored from snapshots. SQL Server databases in one instance are restored within one second of each other, so cross-database transactions may be inconsistent.

Deleting an instance safely

Deletion is where most avoidable data loss happens. When you delete an instance you can:

  1. Create a final snapshot. Do this unless the data is truly disposable.
  2. Retain automated backups. They are kept for the full retention period and let you do PITR even after deletion.

If you choose neither, every automated backup is deleted with the instance. Manual snapshots and the final snapshot are independent and stay. Turn on deletion protection for production instances so an accidental delete call fails.

aws rds delete-db-instance \
    --db-instance-identifier legacy-reports-db \
    --final-db-snapshot-identifier legacy-reports-db-final-2026-11-07

Using AWS Backup with RDS

AWS Backup can manage RDS backups centrally with backup plans, retention rules and cross-account or cross-Region copies. If an instance is in an AWS Backup plan, that plan is used for point-in-time recovery, and backups it creates have names ending in awsbackup: followed by the job number. AWS Backup is a good fit when you need one policy across RDS, EBS, EFS and DynamoDB, or when auditors want backup policy as a single document. Related reading: EBS encryption and snapshots.

A backup policy that holds up

NeedSetting
Undo mistakes from the last week or twoAutomated backups with 7 to 35 days retention
Safe rollback for upgrades and migrationsManual snapshot right before each change
Regional disaster recoveryCopy snapshots to a second Region, encrypted with a key available there
Protection against account compromiseCopy snapshots to a separate backup account with restricted access
Long-term or compliance retentionMonthly manual snapshots, or snapshot export to S3, with a documented deletion schedule
Accidental deletionDeletion protection on, final snapshot required by policy

Then test it. Once a month, restore the latest snapshot and a PITR target into a test VPC, run a few queries that prove the data is current, record how long the restore took, and delete the test instance. That time is your real recovery time, and it is often longer than people assume for large databases. Monitor the restored instance with the metrics described in our RDS monitoring tools guide.

Backups do not replace high availability. Multi-AZ keeps the database running through an instance or AZ failure; backups bring data back after corruption, deletion or a bad migration. Why Multi-AZ is recommended covers the availability side, and read replicas covers scaling reads.

Practise on real AWS accounts

RDS backup, restore and cross-Region copy labs are part of our AWS Solutions Architect Associate training, offered in the Kharadi, Pune classroom and live online.

FAQ

What is the difference between RDS automated backups and snapshots?

Automated backups are taken daily by RDS and combined with transaction logs so you can restore to any second in a retention window of up to 35 days. Manual snapshots are taken on request, restore to the moment they were taken and are kept until you delete them.

How long does RDS keep automated backups?

For the retention period you set, from 0 to 35 days for a DB instance. The default is 7 days when you create the instance in the console and 1 day through the CLI or API if you do not specify it.

Are RDS backups deleted when I delete the instance?

Automated backups are deleted unless you choose to retain them. Manual snapshots and a final snapshot are kept until you delete them yourself.

Does restoring an RDS backup overwrite my database?

No. Every restore, from a snapshot or to a point in time, creates a new DB instance with a new endpoint. You then switch applications to it.

How recent can a point-in-time restore be?

RDS uploads transaction logs to S3 every five minutes. Check the LatestRestorableTime field from describe-db-instances for the exact latest point.

Can I share an encrypted RDS snapshot with another account?

Yes, if it is encrypted with a customer managed KMS key that the other account can use. Snapshots encrypted with the default AWS managed key cannot be shared, and encrypted snapshots cannot be made public.

Where are RDS backups stored?

In Amazon S3, managed by RDS. They do not appear in your own buckets. You can export snapshot data to your own S3 bucket for MariaDB, MySQL and PostgreSQL if you need it there.

References

Interested in learning more?Get a callback from our training advisors.

What's Your Reaction?

Like Like 0
Dislike Dislike 0
Love Love 0
Funny Funny 0
Angry Angry 0
Sad Sad 0
Wow Wow 0
Mridul I am a passionate technology enthusiast with a strong focus on DevOps, Cloud Computing, and Cybersecurity. Through my blogs at DevOps Training Institute, I aim to simplify complex concepts and share practical insights for learners and professionals. My goal is to empower readers with knowledge, hands-on tips, and industry best practices to stay ahead in the ever-evolving world of DevOps.