HubSpot Dev Blog

Current Articles | RSS Feed RSS Feed

Useful script for backing up MySQL on an Amazon EBS block

Submit to Digg digg it | Submit to Reddit reddit | Add to delicious delicious | Share on Facebook Facebook | Share on Twitter Twitter | Share on LinkedIn LinkedIn 

At HubSpot, we use MySQL a lot (and more every day), and most of our MySQL servers live on Amazon's Elastic Cloud.  We use Amazon's Elastic Block Storage (EBS) storage service to store the database files and data.

I wanted to point out a very useful set of scripts, from Eric Hammond and Assaf Arkin (my fellow Apache committer).  These scripts, one in Perl and one in Ruby, will take care of creating snapshots of MySQL EBS volumes for you, post the snapshots to Amazon S3 if you want, and discard old snapshots if you'd like.

Eric's Creating Consistent EBS Snapshots with MySQL and XFS on EC2, and Assaf's MySQL backups with EBS snapshots.

I hope you find these as useful as we have.  Thanks, Assaf and Eric!

Comments

Currently, there are no comments. Be the first to post one!
Post Comment
Name
 *
Email
 *
Website (optional)
Comment
 *

Allowed tags: <a> link, <b> bold, <i> italics

Receive email when someone replies.
Subscribe to our blog
Your email: