Create a VSS application-consistent snapshot
You can take application-consistent snapshots of all Amazon EBS volumes attached to your
Windows on Amazon EC2 instances using AWS Systems Manager Run Command. The snapshot process uses the Windows Volume Shadow
Copy Service (VSS)
There is no additional cost to use VSS-enabled EBS snapshots. You only pay for EBS
snapshots created by the backup process. For more information, see How is my
EBS snapshot bill calculated?
Contents
How it works
The process for taking application-consistent, VSS-enabled EBS snapshots consists of the following steps.
-
Complete Systems Manager prerequisites.
-
Enter parameters for the
AWSEC2-CreateVssSnapshot
SSM document and run this document by using Run Command. You can't create a VSS-enabled EBS snapshot for a specific volume. You can, however, specify a parameter to exclude the boot volume from the backup process. -
The VSS agent on your instance coordinates all ongoing I/O operations for running applications.
-
The system flushes all I/O buffers and temporarily pauses all I/O operations. The pause lasts, at most, ten seconds.
-
During the pause, the system creates snapshots of all volumes attached to the instance.
-
The pause is lifted and I/O resumes operation.
-
The system adds all newly-created snapshots to the list of EBS snapshots. The system tags all VSS-enabled EBS snapshots successfully created by this process with AppConsistent:true. This tag helps you identify snapshots created by this process, as opposed to other processes. If the system encounters an error, the snapshot created by this process does not include the AppConsistent:true tag.
-
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, which is described later in this section.