How to Create an Amazon EBS Snapshot
After writing data to an Amazon EBS volume, you can periodically create a snapshot of the volume to use as a baseline for new volumes or for data backup.
Note | |
---|---|
Snapshots occur asynchronously and the status settings of volumes indicate "pending" until they complete. By default, only you can launch volumes from your snapshots. However, you can choose to share your snapshots with specific users or make them public. For information on creating an Amazon EBS volume from a snapshot, see Amazon Elastic Block Store. |
Procedure
To create a snapshot
-
If you are using SOAP, construct the following request:
<CreateSnapshot xmlns="http://ec2.amazonaws.com/doc/2009-08-15/"> <volumeId>
volume-id
</volumeId> </CreateSnapshot> -
If you are using Query, construct the following request:
https://ec2.amazonaws.com/ ?Action=CreateSnapshot &VolumeId=
volume-id
&...auth parameters... -
View output similar to the following:
<CreateSnapshotResponse xmlns="http://ec2.amazonaws.com/doc/2009-08-15/"> <snapshotId>snap-78a54011</snapshotId> <volumeId>vol-4d826724</volumeId> <status>pending</status> <startTime>2008-05-07T12:51:50.000Z</startTime> <progress></progress> </CreateSnapshotResponse>