oodavid... what a blog you have!

  • Archive
  • RSS
  • Ask me anything

Automatically backup MySQL to Amazon S3 (and a dog)

I’ve been revisiting my backup scripts today and I decided to publish my notes on how to backup your MySQL databases to Amazon S3 - I forgot just how simple it was:

  • Install s3cmd
  • Write a bash script that…
    • lists your databases
    • dumps them to a temporary file
    • uploads them to s3
    • deletes the temporary file
  • Run it with cron every night
The full instructions are here:
  • https://gist.github.com/2206527

(and a dog)

I’m gonna meet this pup at the NESSR Easter Event next weekend

  • 1 year ago
  • Comments
  • Permalink
  • Share
    Tweet

Recent comments

Blog comments powered by Disqus
← Previous • Next →

About

I'm a nerd and I like food, expect recipes written in pseudocode. I also like to doodle. And waflle on about lovely things like life - that's pretty good!

Pages

  • About me

Twitter

loading tweets…

  • RSS
  • Random
  • Archive
  • Ask me anything
  • Mobile

Effector Theme by Carlo Franco.

Powered by Tumblr