-
-
Save jsteiner/2957762 to your computer and use it in GitHub Desktop.
Getting a production dump from Heroku backups
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 --app project-production` | |
pg_restore --verbose --clean --no-acl --no-owner -d project_development latest.dump | |
rm latest.dump |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment