-
-
Save nhocki/1095522 to your computer and use it in GitHub Desktop.
Transfer data from production to staging on Heroku
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
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