Monday, February 18, 2008

rake backup




A Rake Task for Database Backups. Interesting, but I'm going to write one with ar_fixtures because those YAML files are much easier for humans to understand.

My plan is to write a rake task that I can use in all my Ruby on Rails projects, back up their data to yml to a local directory, then copy that back home with cron, and then put the whole directory in subversion. That way, I can checkpoint all my databases back to any date I like.

I'll let you know how it goes.