Here’s a little script I wrote to dump a production database on Heroku and load it locally, which can come in handy if you encounter a bug.

I have this on my Dropbox in a “dump_load.sh” file.

Since I’m extremely lazy, I also have two aliases in my .bash_profile:

alias start_cache="memcached -m 500 -l 127.0.0.1 -p 11211 -vv"
alias hdl="sh ~/Dropbox/heroku/dump_load.sh"