Download EC2 User Guide for Linux - Documentation

Transcript
Amazon Elastic Compute Cloud User Guide for Linux
Instances
EBS Snapshots
3.
4.
Choose Create Snapshot.
In the Create Snapshot dialog box, select the volume to create a snapshot for, and then choose
Create.
To create a snapshot using the command line
You can use one of the following commands. For more information about these command line interfaces,
see Accessing Amazon EC2 (p. 3).
• create-snapshot (AWS CLI)
• ec2-create-snapshot (Amazon EC2 CLI)
• New-EC2Snapshot (AWS Tools for Windows PowerShell)
Deleting an Amazon EBS Snapshot
When you delete a snapshot, only the data exclusive to that snapshot is removed. Deleting previous
snapshots of a volume do not affect your ability to restore volumes from later snapshots of that volume.
If you make periodic snapshots of a volume, the snapshots are incremental so that only the blocks on
the device that have changed since your last snapshot are saved in the new snapshot. Even though
snapshots are saved incrementally, the snapshot deletion process is designed so that you need to retain
only the most recent snapshot in order to restore the volume.
Note that you can't delete a snapshot of the root device of an EBS volume used by a registered AMI. You
must first deregister the AMI before you can delete the snapshot. For more information, see Deregistering
Your AMI (p. 108).
To delete a snapshot using the console
1.
2.
3.
4.
Open the Amazon EC2 console at https://console.aws.amazon.com/ec2/.
Choose Snapshots in the navigation pane.
Select a snapshot and then choose Delete from the Actions list.
Choose Yes, Delete.
To delete a snapshot using the command line
You can use one of the following commands. For more information about these command line interfaces,
see Accessing Amazon EC2 (p. 3).
• delete-snapshot (AWS CLI)
• ec2-delete-snapshot (Amazon EC2 CLI)
• Remove-EC2Snapshot (AWS Tools for Windows PowerShell)
Copying an Amazon EBS Snapshot
With Amazon EBS, you can create point-in-time snapshots of volumes which we store for you in Amazon
Simple Storage Service (Amazon S3). After you've created a snapshot and it has finished copying to
Amazon S3 (when the snapshot status is completed), you can copy it from one AWS region to another,
or within the same region. Snapshots are copied with Amazon S3 server-side encryption (256-bit Advanced
Encryption Standard) to encrypt your data and the snapshot copy receives a snapshot ID that's different
from the original snapshot's ID.
609