Skip to Content

EBS snapshots

Point-in-time backups of EBS volumes, moving volumes between AZs and Regions, and the archive tier, Recycle Bin and Fast Snapshot Restore.

What it is

An EBS snapshot is a point-in-time backup of an EBS volume. It can be restored later as a new volume, in any AZ of the Region, or copied to another Region.

  • Snapshots are incremental: the first one copies every used block, later ones only the blocks that changed since. That makes them quick and cheap.
  • They're stored in Amazon S3 behind the scenes (they don't appear in the S3 console), replicated across all AZs of the Region.
  • The volume doesn't have to be detached to take a snapshot, but it's recommended (or at least pause writes), so the data is consistent.
  • AWS doesn't back up volumes automatically. Schedule snapshots with Amazon Data Lifecycle Manager or AWS Backup.

Moving a volume to another AZ

A volume in us-east-1a is snapshotted; the snapshot is stored Regionally; it's restored as a new volume in us-east-1b A volume in us-east-1a is snapshotted; the snapshot is stored Regionally; it's restored as a new volume in us-east-1b

Snapshots are Regional, so they cross AZs.
  1. Take a snapshot of the volume in us-east-1a.
  2. The snapshot lives at Region level, in S3 across all AZs.
  3. Restore it: create a new volume from the snapshot in us-east-1b. It starts as an exact copy.

To move data to another Region, first copy the snapshot there (it can be encrypted during the copy), then restore it. AMIs are built from snapshots, which is why copying an AMI works the same way.

Restoring and first-read latency

A volume restored from a snapshot is usable at once, but its blocks are downloaded from S3 the first time each is read. The first read of every block is slow. For a database that must be fast immediately, either read every block once first (initialising the volume, for example with fio or dd), or use Fast Snapshot Restore.

Snapshot features

Archiving moves a snapshot to a 75% cheaper tier with 24–72 h restore; deleting sends it to the Recycle Bin for 1 day to 1 year; Fast Snapshot Restore gives full speed from the first read Archiving moves a snapshot to a 75% cheaper tier with 24–72 h restore; deleting sends it to the Recycle Bin for 1 day to 1 year; Fast Snapshot Restore gives full speed from the first read

Archive, Recycle Bin and Fast Snapshot Restore.

EBS Snapshots Archive

  • Moves a snapshot to an archive tier that's up to 75% cheaper to store.
  • Restoring it back to the standard tier takes 24 to 72 hours.
  • The snapshot is converted to a full (not incremental) copy, and is billed for at least 90 days.
  • For snapshots that must be kept but are rarely used: end-of-project backups, yearly compliance copies.

Recycle Bin

  • Retention rules keep deleted snapshots (and EBS-backed AMIs) for a chosen period, from 1 day to 1 year, so an accidental deletion can be undone.
  • Rules match by tag or apply to the whole Region, and can be locked so nobody can shorten them.
  • Deleted snapshots in the bin are billed at normal snapshot rates.

Fast Snapshot Restore (FSR)

  • Volumes created from an FSR-enabled snapshot are fully initialised at creation: no first-read latency.
  • It's turned on per snapshot and per AZ, and billed for every hour it's on (about $0.75 an hour per snapshot per AZ). Expensive, so use it for the volumes that must be fast instantly, such as a database restored during an outage.

Updated since the slides

The Recycle Bin now also covers EBS-backed AMIs and EBS volumes (volumes for 1 to 7 days). EBS also offers snapshot lock, which makes snapshots unchangeable and undeletable for a set time (write once, read many), for compliance.

Pricing

  • Standard tier: about $0.05 per GB-month of data stored. Because snapshots are incremental, deleting an old one only frees the blocks no other snapshot needs.
  • Archive tier: about $0.0125 per GB-month, plus a charge per GB restored.
  • FSR: per hour per snapshot per AZ while enabled.

Exam tips

  • "Back up EBS volumes", "automate snapshots on a schedule" → EBS snapshots with Data Lifecycle Manager or AWS Backup.
  • "Move an EBS volume to another AZ / Region" → snapshot (copy it for another Region), then restore.
  • "Cheapest way to keep snapshots for years, rarely needed" → EBS Snapshots Archive.
  • "Protect against accidental deletion of snapshots" → Recycle Bin retention rule.
  • "Restored volume must deliver full performance immediately" → Fast Snapshot Restore.

Common traps

  • "Archive a snapshot you might need in an hour." Restoring takes 24 to 72 hours.
  • "Deleting the first snapshot breaks the later ones." No: EBS keeps any blocks later snapshots still need.
  • "Snapshots are stored in my S3 bucket." They're in S3, but in AWS-managed storage that can't be browsed.

Hands-on lab: snapshot, restore in another AZ, and recover from the bin

Goal: move a volume's data to another AZ with a snapshot, and undo a snapshot deletion with the Recycle Bin.

Costs money

A 10 GB gp3 volume and its snapshots cost well under a cent for an hour. Don't try the archive tier in a lab: archived snapshots are billed for at least 90 days.

Create a source volume

In Elastic Block Store → Volumes, create a gp3, 10 GiB volume in us-east-1a, tag Project=saa-lab, name saa-src. (You don't need to attach it for this lab.)

Take a snapshot

Select it, Actions → Create snapshot, description saa-snap, tag Project=saa-lab. In Snapshots, wait for Completed.

Restore in another AZ

Select the snapshot, Actions → Create volume from snapshot, AZ us-east-1b. A new volume appears in us-east-1b with the same size: the data has crossed AZs.

Set up a Recycle Bin rule

Open the Recycle Bin console, Create retention rule: resource type EBS snapshots, Apply to all resources, retention 1 day. Create.

Delete and recover

Delete saa-snap in Snapshots. In Recycle Bin → Resources, it's listed. Select it and Recover. It's back in Snapshots.

Expected result: the same data in a volume in another AZ, and a deleted snapshot brought back.

Clean up: delete both volumes. Delete the Recycle Bin rule first, then delete the snapshot (otherwise it goes back into the bin for a day).

AWS documentation

On this page

Open notes

Spotted a mistake?

These notes are open source. Suggest a fix, or star the repo if they helped you.

Suggest an edit

For AI agents: llms.txt · llms-full.txt