Skip to content

Instantly share code, notes, and snippets.

@sci-phi
Forked from croaky/gist:1089598
Created July 18, 2011 19:54
Show Gist options
  • Save sci-phi/1090477 to your computer and use it in GitHub Desktop.
Save sci-phi/1090477 to your computer and use it in GitHub Desktop.
Transfer data from production to staging on Heroku
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