Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Amazon EC2: Moving an EBS volume snapshot to s3 [closed]

Tags:

I am trying to create a backup and restore mechanism for my EBS volumes

I could easily create a mechanism for this by using

to take a snapshot of volume

ec2-create-snapshot -d $description $volume 

and restore

ec2-create-volume --snapshot $snapid -z $zone 

Now as per my understanding, these snapshots are still on EBS. So a better way will be to move the snapshots to S3.

So how can I move the snapshots to s3 bucket?

like image 961
Kamal Avatar asked Dec 12 '12 16:12

Kamal


People also ask

Can I move EBS snapshot to S3?

With Amazon EBS, you can create point-in-time snapshots of volumes, which we store for you in Amazon S3. After you create 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.

Do you need to shutdown your EC2 instance when you create a snapshot of EBS volumes that serve as root devices?

When you create a snapshot for an EBS volume that serves as a root device, you should stop the instance before taking the snapshot. You cannot create snapshots from instances for which hibernation is enabled, or from hibernated instances.

Are EBS snapshots compressed?

EBS snapshots are incremental (except for the first snapshot). That data is compressed based on AWS's own heuristics. You have no visibility into the actual compressed data's size.

Where are Amazon EBS snapshots stored?

Amazon EBS snapshots are a point-in-time copy of your EBS volumes. By default, snapshots of EBS volumes on an Outpost are stored in Amazon S3 in the Region of the Outpost. You can also use Amazon EBS local snapshots on Outposts to store snapshots of volumes on an Outpost locally in Amazon S3 on the Outpost itself.


2 Answers

EBS snapshots are stored in S3. There should not be any need to move the snapshot anywhere.

like image 67
Mike Brant Avatar answered Sep 19 '22 09:09

Mike Brant


The question seems sensible enough to me. In our case we want to take an EBS volume that we are using in us-west-1 region and provide an image of it (via S3) so that we can attach it to an instance running in us-east-1.

As simple as this concept seems, there is not apparently a simple solution currently, nor even a solution at all. If anybody knows of one please post info or links here, thanks.

like image 38
Octopus Avatar answered Sep 17 '22 09:09

Octopus