Amazon EBS snapshots are the preferred backup tool on Amazon EC2 because of their speed, convenience, and cost. When creating a volume from a snapshot, you recreate its state at a specific point in time with the data saved up to that specific point intact. By attaching a volume created from a snapshot to an instance, you can duplicate data across Regions, create test environments, replace a damaged or corrupted production volume in its entirety, or retrieve specific files and directories and transfer them to another attached volume. For more information, see Amazon EBS snapshots.
You can use one of the following procedures to replace an Amazon EBS volume with another volume created from a previous snapshot of that volume.
To replace a volume using the console
-
Create a volume from the snapshot and write down the ID of the new volume. For more information, see Create an Amazon EBS volume.
Note
Ensure that you create the volume in the same Availability Zone as the instance. Volumes can only be attached to instances in the same Availability Zone.
-
On the Instances page, select the instance on which to replace the volume and write down the instance ID.
With the instance still selected, choose the Storage tab. In the Block devices section, find the volume to replace and write down the device name for the volume, for example
/dev/sda1
. -
On the Storage tab, choose the volume ID, and then unmount and detach the volume from the instance.
-
Select the new volume that you created in step 1 and choose Actions, Attach volume.
For Instance and Device name, enter the instance ID and device name that you wrote down in Step 2, and then choose Attach volume.
-
Connect to your instance and mount the volume. For more information, see Make an Amazon EBS volume available for use.