Creates a snapshot of an Amazon EBS volume and stores it in Amazon S3. You can use snapshots for backups, to make identical copies of instance devices, and to save data before shutting down an instance. For more information about Amazon EBS, go to the
When taking a snapshot of a file system, we recommend unmounting it first. This ensures the file system metadata is in a consistent state, that the 'mounted indicator' is cleared, and that all applications using that file system are stopped and in a consistent state. Some file systems, such as xfs, can freeze and unfreeze activity so a snapshot can be made without unmounting.
The ID of the Amazon EBS volume to take a snapshot of.
The command returns a table that contains the following information:
ID of the snapshot
ID of the volume
Snapshot state (e.g., pending, completed)
Time stamp when snapshot initiated
Amazon EC2 displays errors on stderr.
This example creates a snapshot of volume
ec2-create-snapshot vol-4d826724 --instance i-6058a509 --device /dev/sdh
SNAPSHOT snap-78a54011 vol-4d826724 pending 2008-05-07T12:51:50+0000