I have a couple Web server/DB server setups using Amazon's EC2. I am currently taking daily snapshots of all my system and EBS drives that contains all of my application files, DB files, source code and DB backups. I have a console application that runs the backup creations on a schedule. My images are EBS images.

I am working on a task that will drop my snapshots after so many days. I guess my question is, Should/can I also schedule a complete image/EBS task as well? This way, if the server fails or is corrupted I can just launch the latest image then apply the latest snapshot.

As I am working on my backup strategy, I am using Jungle Disc to back up my data discs.

3 Answers 3


My recommendations:

  1. Always document and/or script the setup of each new instance so that you can reproduce the software installation and system configuration in the event you lose the instance. Test this by starting a new instance and following the procedure. You can use a custom, private AMI if the installation takes a long time and you need to start instances quickly, but that AMI itself should be built using a documented and/or scripted procedure.

  2. Keep your important data on separate EBS volume(s) and not on the root EBS volume. This has many benefits including making it easier to port your data to new instances (e.g., based on different AMIs) and making it easier to get copies of your data on other instances (e.g., with snapshots and new volumes).

  3. Create regular snapshots of the EBS data volumes. If possible/applicable, use a tool like my ec2-consistent-snapshot to improve the chances that you are taking a snapshot of a consistent filesystem / database. Back up the data outside of AWS/EC2, as your AWS account itself is a single point of failure.

  4. Create snapshots of the root EBS volume from time to time on important instances. Though this may help you in the event of instance or EBS volume failure, that part is not so critical because of #1 and #2 above. The main reason I do this is that creating snapshots reduces the risk of failure of the root EBS volume itself.

The rate of failure of an EBS volume is directly related to the number of blocks that have been modified on that volume since the last EBS snapshot.

  • What is your recommendation for backing up the data outside of EC2? Strategy or tool that you recommend?
    – csi
    Jul 10, 2013 at 15:53
  • @ChristopherIckes: I'm a fan of whatever works for you. Rsync is simple and works for me. Jul 10, 2013 at 17:36

Should/can I also schedule a complete image/EBS task as well?

yes, it's advisable. One time it saved me, because I had to reset many times because of kernel problems, until the boot disk was not readable anymore and I simply booted from the latest snapshot.

If you're interested I wrote a Java class to snapshot all connected EBS volumes and also delete them after a certain amount of time. Currently I do a backup every week and discard the third backup after two weeks.


It perform only one action per run, such as taking or deleting a snapshot, because is meant to be put in a cron hourly to avoid to overload with tens of snapshots at the same times in case you've many EBS as I do.


We use simple but powerful backup strategy: create new AMI on base on running EC2 EBS instances two times in day and delete “old” AMIs. Through API (CreateImage) you may set flag don’t reboot instance while creating new AMI or, if you use software raid – ssh to instance before CreateIImage API call and freeze filesystem with “fsfreeze” on most popular filesystems on new kernels or xfs_freeze if you use older kernel and xfs.

Created “backup” AMI remember all connected to original running instance EBS disks (via links to created snapshots) and, in the case of using software raids with multiple disks, allows to restore new instance in any AZ simply with one API call or through web-interface.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .