Created
September 19, 2019 18:24
-
-
Save hazmatzo/61a4979a114ef7638bea6c087194fd92 to your computer and use it in GitHub Desktop.
Commands for uploading a local downloaded database, because I do that all the time and always forget the parameters
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
heroku pg:backups:capture --app some-website-acceptance | |
heroku pg:backups:download --app some-website-acceptance | |
pg_restore --verbose --clean --no-acl --no-owner -h localhost -U postgres -d some_website_development latest.dump |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment