|« PreviousNext »|
|Did this page help you? Yes | No | Tell us about it...|
Creates a snapshot of an Amazon EBS volume and stores it in Amazon S3. You can use snapshots for backups, to make copies of instance store volumes, and to save data before shutting down an instance. For more information about Amazon EBS, see Using Amazon Elastic Block Store.
When a snapshot is created, any AWS Marketplace product codes from the volume are propagated to the snapshot.
You can take a snapshot of an attached volume that is in use. However, snapshots only capture data that has been written to your Amazon EBS volume at the time the snapshot command is issued. This may exclude any data that has been cached by any applications or the operating system. If you can pause any file writes to the volume long enough to take a snapshot, your snapshot should be complete. However, if you cannot pause all file writes to the volume, you need to unmount the volume from within the instance, issue the snapshot command, and then remount the volume to ensure a consistent and complete snapshot.
To create a snapshot for Amazon EBS volumes that serve as root devices, you should stop the instance before taking the snapshot.
To unmount the volume in Linux/UNIX
Enter the following command from the command line.
#umount -d /dev/sdh
A description of the Amazon EBS snapshot.
Constraints: Up to 255 characters
The following elements are returned in a
The ID of the request.
The ID of the snapshot.
The ID of the volume.
The snapshot state.
The time stamp when the snapshot was initiated.
The progress of the snapshot, as a percentage.
The AWS account ID of the Amazon EBS snapshot owner.
The size of the volume, in GiB.
A description of the snapshot.
This example creates a snapshot of volume
https://ec2.amazonaws.com/?Action=CreateSnapshot &VolumeId=vol-1a2b3c4d &Description=Daily+Backup &AUTHPARAMS
<CreateSnapshotResponse xmlns="http://ec2.amazonaws.com/doc/2013-02-01/"> <requestId>59dbff89-35bd-4eac-99ed-be587EXAMPLE</requestId> <snapshotId>snap-1a2b3c4d</snapshotId> <volumeId>vol-1a2b3c4d</volumeId> <status>pending</status> <startTime>YYYY-MM-DDTHH:MM:SS.000Z</startTime> <progress>60%</progress> <ownerId>111122223333</ownerId> <volumeSize>30</volumeSize> <description>Daily Backup</description> </CreateSnapshotResponse>