Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to make automated S3 Backups

I am working on an app which uses S3 to store important documents. These documents need to be backed up on a daily, weekly rotation basis much like how database backups are maintained.

Does S3 support a feature where a bucket can be backup up into multiple buckets periodically or perhaps in Amazon Glacier. I want to avoid using an external service as much as possible, and was hoping S3 had some mechanism to do this, as its a common usecase.

Any help would be appreciated.

like image 842
Akshay Rawat Avatar asked Jun 03 '13 17:06

Akshay Rawat


1 Answers

Quote from Amazon S3 FAQ about durability:

Amazon S3 is designed to provide 99.999999999% durability of objects over a given year. This durability level corresponds to an average annual expected loss of 0.000000001% of objects. For example, if you store 10,000 objects with Amazon S3, you can on average expect to incur a loss of a single object once every 10,000,000 years

These numbers mean, first of all, that they are almost unbeatable. In other words, your data is safe in Amazon S3.

Thus, the only reason why you would need to backup your data objects is to prevent their accidental loss (by your own mistake). To solve this problem Amazon S3 enables versioning of S3 objects. Enable this feature on your S3 bucket and you're safe.

ps. Actually, there is one more possible reason - cost optimization. Amazon Glacier is cheaper than S3. I would recommend to use AWS Data Pipeline to move S3 data to Glacier routinely.

like image 67
yegor256 Avatar answered Oct 08 '22 08:10

yegor256