Created
April 15, 2016 14:19
-
-
Save panchicore/e01d271b5afe3cc69db9d4d8c6de8101 to your computer and use it in GitHub Desktop.
Export from heroku and import to localhost
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# install postgres. install heroku and run "heroku login". | |
heroku pg:backups capture --app appname | |
curl -o latest.dump `heroku pg:backups public-url --app appname` | |
createdb dbname | |
pg_restore --verbose --clean --no-acl --no-owner -d dbname latest.dump |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment