Created
July 8, 2012 22:45
-
-
Save harley/3073288 to your computer and use it in GitHub Desktop.
clone database from production 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
# remote repo aliases assumed: | |
# git remote add production production_heroku_app_git_repo | |
# git remote add staging staging_heroku_app_git_repo | |
# add addons if not already | |
# heroku addons:add pgbackups --remote staging | |
# heroku addons:add pgbackups --remote production | |
heroku pgbackups:capture --remote production | |
heroku pgbackups:restore DATABASE `heroku pgbackups:url --remote production` --remote staging |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
woooooooo