Backed EC2 Instance to EBS Volume & Snapshots

Create a EBS Volumes and attached to the instances, either it is from S3 AMI or not.

Ensure all the OS is the latest with all updates.

# apt-get update
# apt-get -y upgrade
 

After that format the EBS Volumes and mount it.

# mkfs -t ext3 /dev/sdh
# mkdir /ebs_ami
# mount -t ext3 /dev/sdh /ebs_ami
 
Use Rsync to synchronize but exclude the ebs_ami folder
 
rsync -avx --exclude /ebs_ami / /ebs_ami
 
Unmount the drive and create snapshot of it on AWS Console.
 
umount /ebs_ami
Advertisements