Created
March 18, 2012 16:28
-
-
Save cball/2076871 to your computer and use it in GitHub Desktop.
Copy production heroku db to staging
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
# backup current production db | |
$ heroku pgbackups:capture --app myapp-production | |
# restore to staging | |
$ heroku pgbackups:restore DATABASE `heroku pgbackups:url --app myapp` --app myapp-staging |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Should be heroku pg:backups:capture --app myapp-production (missing first colon)
Thanks for posting this.