Skip to content

Instantly share code, notes, and snippets.

@nhocki
Forked from croaky/gist:1089598
Created July 20, 2011 18:11
Show Gist options
  • Save nhocki/1095522 to your computer and use it in GitHub Desktop.
Save nhocki/1095522 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