EC2 Backup

A quick conclusion of the backup method for my EC2.

Instance backup goes into AMI (monthly backup)

  • OS and Applications installed

EC2 command:

  • ec2-bundle-vol
  • ec2-upload-bundle

Since /mnt is exclude default from the ec2-bundle-vol. So it is safer to store any sensitive information such as AWS secret keys.

ln –s /mnt/.my.cnf  ~/.my.cnf
ln –s /mnt/.awssecret ~/.awssecret 

Procedure: Create AMI for Ubuntu on Amazon EC2

Data Backup using EBS (daily backup using cron job)

  • MySQL and Nginx Hosting content

EC2 command:

  • ec2-consistent-snapshot

Procedure: Automated the snapshot process