0

How can we automated the process or is there any shell script available where we can take the back of ec2 ami and move them to s3 bucket on daily basis.

  • 1
    You can't access the data inside an EC2 snapshot without creating an EBS volume from that snapshot. Once you have created the EBS volume and attached it to a server then you would be able to run something like `aws s3 sync` to copy it to S3. – Mark B Aug 03 '16 at 19:58
  • 1
    @MarkB is correct, but I am curious: What is your motivation for wanting to do this? – Michael - sqlbot Aug 03 '16 at 21:58
  • Hi i am looking to take backup of my ec2 instances and use them if i need them in case of emergency. – NIKHIL SHARMA Aug 04 '16 at 12:37

1 Answers1

0

Don't copy the snapshots to s3, store them as snapshots. There are lots of ways of automating this, see Automating Amazon EBS snapshots anyone have a good script or solution for this on linux for some suggestions

We use a commercial product, cloud protection manager (CPM)

The cost of snapshot storage is higher typically 0.10 / GB month for EBS snapshots vs. 0.039 GB / month for S3

Community
  • 1
  • 1
Vorsprung
  • 32,923
  • 5
  • 39
  • 63