public
Last active — forked from croaky/gist:1089598

Transfer data from production to staging on Heroku

  • Download Gist
gistfile1.bash
Shell
1 2 3 4
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

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.