CreateSnapshot
Description
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.
Request Parameters
Name | Description | Required |
---|---|---|
|
Type: CreateSnapshot Ancestor: None Children: |
|
|
The ID of the Amazon EBS volume to take a snapshot of. Type: xsd:string Default: None Ancestor: Children: None |
Yes |
Response Elements
Name | Description |
---|---|
|
Type: CreateSnapshotResponse Ancestor: None Children: |
|
The ID of the request. Type: xsd:string Ancestor: Children: None |
|
The ID of the snapshot. Type: xsd:string Ancestor: Children: None |
|
The ID of the volume. Type: xsd:string Ancestor: Children: None |
|
Snapshot state (e.g., Type: xsd:string Ancestor: Children: None |
|
Time stamp when the snapshot was initiated. Type: xsd:dateTime Ancestor: Children: None |
|
The progress of the snapshot, in percentage. Type: xsd:string Ancestor: Children: None |
Examples
Example Request
This example creates a snapshot of volume vol-4d826724
.
<CreateSnapshot xmlns="http://ec2.amazonaws.com/doc/2009-04-04/"> <volumeId>vol-4d826724</volumeId> </CreateSnapshot>
Example Response
<CreateSnapshotResponse xmlns="http://ec2.amazonaws.com/doc/2009-04-04/"> <snapshotId>snap-78a54011</snapshotId> <volumeId>vol-4d826724</volumeId> <status>pending</status> <startTime>2008-05-07T12:51:50.000Z</startTime> <progress>60%</progress> </CreateSnapshotResponse>