Application consistent Windows VSS based Amazon EBS snapshots - Amazon Elastic Compute Cloud
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

Application consistent Windows VSS based Amazon EBS snapshots

You can take application-consistent snapshots of all Amazon EBS volumes attached to your Amazon EC2 Windows instances using Amazon Systems Manager Run Command. The snapshot process uses the Windows Volume Shadow Copy Service (VSS) to take EBS volume level backups of VSS-aware applications. The snapshots include data from pending transactions between these applications and the disk. You don't have to shut down your instances or disconnect them when you need to back up all attached volumes.

There is no additional cost to use VSS based EBS snapshots. You only pay for EBS snapshots created by the backup process. For more information, see How am I billed for my Amazon EBS snapshots?

Note

Application consistent Windows VSS based snapshots are supported with Windows instances only.

What is VSS?

Volume Snapshot Copy Service (VSS) is a backup and recovery technology included in Microsoft Windows. It can create backup copies, or snapshots, of computer files or volumes while they are in use. For more information, see Volume Shadow Copy Service.

To create an application-consistent snapshot, the following software components are involved.

  • VSS service — Part of the Windows operating system

  • VSS requester — The software that requests the creation of shadow copies

  • VSS writer — Typically provided as part of an application, such as SQL Server, to ensure a consistent data set to back up

  • VSS provider — The component that creates the shadow copies of the underlying volumes

The Windows VSS based Amazon EBS snapshot solution consists of multiple Systems Manager (SSM) Run Command documents that facilitate backup creation, and a Systems Manager Distributor package, called AwsVssComponents, that includes an EC2 VSS requester and an EC2 VSS provider. The AwsVssComponents package must be installed on EC2 Windows instances to take application-consistent snapshots of EBS volumes. The following diagram illustrates the relationship between these software components.

VSS software components

How the VSS based Amazon EBS snapshot solution works

The process for taking application-consistent, VSS based EBS snapshot scripts consists of the following steps.

  1. Complete the Prerequisites to create Windows VSS based EBS snapshots.

  2. Enter parameters for the AWSEC2-VssInstallAndSnapshot SSM document and run this document by using Run Command. For more information, see Run the AWSEC2-VssInstallAndSnapshot command document (recommended).

  3. The Windows VSS service on your instance coordinates all ongoing I/O operations for running applications.

  4. The system flushes all I/O buffers and temporarily pauses all I/O operations. The pause lasts, at most, ten seconds.

  5. During the pause, the system creates snapshots of all volumes attached to the instance.

  6. The pause is lifted and I/O resumes operation.

  7. The system adds all newly-created snapshots to the list of EBS snapshots. The system tags all VSS based EBS snapshots successfully created by this process with AppConsistent:true.

  8. If you need to restore from a snapshot, you can use the standard EBS process of creating a volume from a snapshot, or you can restore all volumes to an instance by using a sample script, as described in Restore EBS volumes for your Windows instance from VSS based snapshots.