$ curl -o latest.dump `heroku pgbackups:url -a APPLICATION_NAME`
$ rake db:reset
$ pg_restore --verbose --clean --no-acl --no-owner -h localhost -U root -d YOUR_LOCAL_DB_NAME latest.dump
$ rm latest.dump
Created
June 3, 2013 02:57
-
-
Save m-mujica/5695904 to your computer and use it in GitHub Desktop.
Pull heroku database down to local
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment