Poor Man’s Heroku Backups

by Trevor Turk

Here’s a quick and dirty way to back up all of your Heroku-powered databases using their Taps gem with one easy command. It works well enough for my simple needs, but any improvements you’ve got would be most welcome!

Just add the following to your ~/.bash_profile, and you’re good to go:

http://flowcoder.com/59

Update: I’ve posted a technique for enabling automatic nightly PostgreSQL database backups from Heroku to Amazon S3 that may be of interest as well.

Advertisement