Created
November 13, 2017 20:28
-
-
Save pachun/171314491201e34589980b67ad081caa to your computer and use it in GitHub Desktop.
Copy a Heroku Postgresql DB into a local DB
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
$ heroku pg:backups:capture | |
$ heroku pg:backups:download | |
Then: | |
$ pg_restore -c -d torq_api_development latest.dump |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment