Skip to content

Instantly share code, notes, and snippets.

@pwiesner
Last active December 17, 2015 20:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pwiesner/5670800 to your computer and use it in GitHub Desktop.
Save pwiesner/5670800 to your computer and use it in GitHub Desktop.
download the most recent database backup from heroku
#replace APP-NAME with your applications name
curl -o tmp/APP-NAME-$(date "+%Y%m%d").dump `heroku pgbackups:url --app APP-NAME`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment