Created
April 7, 2015 16:45
-
-
Save fabianvelizok/c1a6a613cc53ef6111ba to your computer and use it in GitHub Desktop.
Get the Heroku db
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
Get the Heroku db as detailed here: | |
heroku pgbackups:capture --expire --remote your_remote_repository | |
curl -o latest.dump `heroku pgbackups:url --remote your_remote_repository` | |
pg_restore --verbose --clean --no-acl --no-owner -h localhost -U user -d database latest.dump | |
rm latest.dump |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment