Skip to content

Instantly share code, notes, and snippets.

@croaky
Created July 18, 2011 14:01
Show Gist options
  • Save croaky/1089598 to your computer and use it in GitHub Desktop.
Save croaky/1089598 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