4 ms·
Cron + S3 + s3cmd + small custom script for DB dumps Cron + snapshots + small custom script for EBS on EC2. Basically, I store all non code files on EBS and r
by Mc_Big_G 17y ago
Cron + S3 + s3cmd + small custom script for DB dumps
Cron + snapshots + small custom script for EBS on EC2.
Basically, I store all non code files on EBS and redundantly backup to S3, which amounts to living or dying by Amazon's hand.
Recovery consists of firing up a new EC2 instance, attaching a snaphot and running a deploy script, which is handled automatically by a different EC2 instance, assuming I haven't lost all instances. Manual recovery in that case would be time consuming, but doable.
Snapshots are nearly instantaneous and uploads to S3 from an EC2 instance are about as fast as you can get.
Most annoying thing? Testing recovery.
- hga 17y ago"Most annoying thing? Testing recovery." Indeed ... but at least you do that! One of the great things about clouds like AWS is that you can now do an almost complete bare metal restore test (modulo stuff like your official DNS vs. test) for a small amount of money instead of trying to justify buying a separate system for that sort of thing (which in the real world I was never able to do, although I fortunately never suffered a total data loss despite a few close calls).