Last active
August 29, 2015 13:56
-
-
Save tonycoco/9011626 to your computer and use it in GitHub Desktop.
Heroku PG Backup
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
curl -o latest.dump `heroku pgbackups:url` | |
rake db:drop db:create db:migrate | |
pg_restore --verbose --clean --no-acl --no-owner -h localhost -U root -d DATABASE_development latest.dump | |
rm latest.dump |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment