Lesson 2 of 4 Amazon EBS and Instance Store

Backing Up Volumes with EBS Snapshots

This lesson explains how EBS snapshots back up volumes at a point in time, move volumes between Availability Zones and Regions, and underpin AMIs.

Learning outcomes

After completing this lesson, you will be able to:

  • Explain how incremental snapshots work.
  • Explain how to take consistent snapshots of databases.
  • Describe snapshot features such as Fast Snapshot Restore and archiving.
  • Explain how Data Lifecycle Manager automates snapshots.

How snapshots work

EBS snapshots are incremental, point-in-time backups of volumes, stored durably in Amazon S3 by AWS. The first snapshot copies all used blocks, and later snapshots save only the blocks that changed, which keeps storage and time low.

A snapshot can be restored to a new volume in any Availability Zone of the Region, which is also how a volume is moved between zones. Snapshots can be copied to other Regions and shared with other accounts; encrypted snapshots can be shared only when they use a customer managed key. Schedules and retention are automated with Amazon Data Lifecycle Manager or AWS Backup.

The following diagram shows the blocks stored by three successive snapshots.

EBS snapshots are incremental. The first snapshot copies every used block of the volume. Each later snapshot stores only the blocks that changed since the previous one, and S3 keeps them durably. A snapshot can be restored to a new volume in any Availability Zone of the Region, or copied to another Region.
The block counts are illustrative. Deleting an older snapshot never breaks a later one; blocks still needed are kept.

Consistency

Snapshots are crash-consistent. For databases, flush or freeze I/O first, or take application-consistent backups (AWS Backup with VSS on Windows). Multi-volume crash-consistent snapshots capture several volumes of one instance at the same moment.

Scenario questions

Consistent snapshots

Exam skills 2.2.5 · 4.3.1

Choose how to take consistent snapshots.

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

Snapshot features

An EBS snapshot is an incremental, point-in-time backup of a volume stored in S3, so it can be copied to other Regions and used to create volumes in any Availability Zone. Several features manage snapshots. Snapshots Archive moves rarely needed snapshots, such as those kept for compliance, to a storage tier up to 75% cheaper, but restoring one takes up to 72 hours. Recycle Bin keeps deleted snapshots and AMIs for a retention period, so an accidental or malicious deletion can be undone.

A volume created from a snapshot normally loads its data from S3 as each block is first read, so early reads are slow. Fast Snapshot Restore removes this delay, giving full performance from the start, which matters when a database must be restored and serving quickly. The following table summarises the features.

FeatureBenefit
Snapshots ArchiveUp to 75% cheaper storage for rarely needed snapshots; restore takes up to 72 hours
Recycle BinRecover accidentally deleted snapshots and AMIs within a retention period
Fast Snapshot RestoreVolumes restored at full performance with no first-read latency

An EBS-backed AMI references snapshots, so copying it to another Region copies them.

75%

Saving on storage with Snapshots Archive

72hours

Longest restore from Snapshots Archive

Match the pairs

Snapshot features

Exam skills 4.1.6 · 2.2.5

Match each requirement with the snapshot feature that meets it.

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

Automating backups for a fleet

A team takes snapshots by hand and sometimes forgets. It needs daily snapshots kept for 30 days, a weekly copy in another Region, and protection against accidental deletion.

RequirementFeature
Daily snapshots of tagged volumesData Lifecycle Manager policy targeting backup=daily
Keep 30 daysRetention rule in the policy
Weekly copy to another RegionCross-Region copy rule
Recover snapshots deleted by mistakeRecycle Bin retention rule
Archive monthly snapshots cheaplySnapshots Archive

AWS Backup can provide the same schedule across many services if databases and file systems also need protecting.

Check yourself

Are EBS snapshots full copies each time?

Show answer

No. Snapshots are incremental: each stores only the blocks changed since the previous one, but any snapshot can restore the whole volume.

Exam Tips

Remember for the exam

  • To move an EBS volume to another Availability Zone or Region, take a snapshot, copy it if needed and restore it.
  • To automate snapshot schedules and retention, use Data Lifecycle Manager or AWS Backup.
  • To snapshot several volumes of one application at the same point in time, use multi-volume snapshots.
  • To recover snapshots deleted by mistake, use Recycle Bin.
  • For restored volumes with full performance immediately, enable Fast Snapshot Restore.