Last active
June 22, 2018 22:42
-
-
Save vincefav/d3a470f64d2a3a67df764d136f3c61b6 to your computer and use it in GitHub Desktop.
Postgres: How to restore latest.dump from Heroku to local server in Windows
This file contains 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
Type the following from your command line: | |
pg_restore --no-privileges --no-owner -U postgres -d [YOUR_DB_NAME] -1 latest.dump |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I spent two hours searching for how to do this, so I'm sharing the command publicly. Hopefully it pops up for future users who find themselves in my predicament. :)
Things you should know: