Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Do I need to backup AWS EBS data? [closed]

I am running a web-app on an AWS EC2 instance that uses EBS storage as its local drive. The web app runs on an Apache/Tomcat server, handles uploaded files in local storage and uses a MySQL database, all on this local drive. Does AWS guarantee the integrity and availability of EBS data or should I back it up to S3? If so, how do I do that? I need to have daily incremental backups (i.e. I can only afford to loose recent transactions/files performed today). Note: I am not worried about human caused errors (accidental deletes, etc.) rather system crashes, underlying service failure, etc. Thanks..

like image 524
adaj21 Avatar asked Apr 15 '13 03:04

adaj21


People also ask

Are EBS volumes automatically backed up?

Data availability When you create an EBS volume, it is automatically replicated within its Availability Zone to prevent data loss due to failure of any single hardware component. You can attach an EBS volume to any EC2 instance in the same Availability Zone.

Does AWS do automatically backup data?

You assign resources to backup plans and AWS Backup will then automatically make and retain backups for those resources according to the backup plan.

What happens to the data on instance store when an EBS backed EC2 instance is stopped?

EC2 EBS-backed (EBS root) instance is stopped, what happens to the data on any ephemeral store volumes? Data is automatically saved in an EBS volume. Data is unavailable until the instance is restarted. Data will be deleted and will no longer be accessible.

How do I keep my EBS datas safe?

Multiple AWS Accounts and Cloud Backup Nowadays, It is simple to give external accounts permission to access, copy, and create volumes out of specified EBS snapshots. An additional important method that is used to protect your most critical EBS volumes is copying snapshots to separate AWS accounts.


1 Answers

Amazon does not guarantee the integrity of your EBS volumes, but they are very easy to back up. Simply take a daily snapshot (You could set up a cron using ec2-api-tools to do the daily snapshot).

EBS snapshots are stored in S3. They are not in your own bucket and the details are handled by Amazon, but the infrastructure that the snapshots are stored on is S3.

The snapshots are incremental, and back up the entire volume. Each snapshot stores the changes on the device since the last snapshot, so taking them often will reduce how long they take to make, but you can only have a limited number of snapshots at once per AWS account. I think it is 250. You need to delete your old snapshots eventually to deal with that. You could also do that with a cron job. Deleting old snapshots does not invalidate the newer ones even though they are stored as incremental, because it will actually update the next newest snapshot to contain the information from the previous one upon deletion.

like image 198
Paul Avatar answered Oct 23 '22 15:10

Paul