Amazon EC2 EBS backup: AMI vs Snapshot

Kamal picture Kamal · Dec 12, 2012 · Viewed 25.1k times · Source

I am trying to create a backup mechanism for our server, so that if my system crashes, I should be able to create the whole system by running a single script

After going through Amazon documentation, this is my understanding of creating a backup and restoring

Backup

  1. Create a AMI Image (this can be updated monthly)
  2. Create a snapshot (This can be done using a daily script creating a snapshot)

Restore (A script to)

  1. Create an EBS instance using AMI
  2. Attach the EBS volume to Instance created

Now my Questions is

  1. Is it the best way to take a backup and restore?
  2. Do we actually need to backup 2 things, AMI and EBS volume (using snapshot), Can we just keep snapshots?
  3. I understand this cannot work for a local instance store instance, as there is no snapshot functionality. So how can I create a backup and restore process for local instance store instances?

Answer

Kamal picture Kamal · Jan 4, 2013

As I could not find any better alternative, I am sticking with the initial approach.

For EBS

Backup:

  • Create a AMI Image (this can be updated monthly).
  • Create a snapshot (This can be done using a daily script creating a snapshot).

Restore (A script to)

  • Create an EBS instance using AMI.
  • Attach the EBS volume to Instance created.

For instance store, I am only keeping the application (no database), so no need to keep a backup of that.