Skip to content

Instantly share code, notes, and snippets.

@mattreduce
Created August 9, 2012 19:03
Show Gist options
  • Save mattreduce/3307179 to your computer and use it in GitHub Desktop.
Save mattreduce/3307179 to your computer and use it in GitHub Desktop.
Migrating Heroku Shared DB
heroku maintenance:on
heroku addons:add pgbackups
heroku pgbackups:capture <YOUR_DATABASE_URL>
heroku addons:remove shared-database
heroku addons:add heroku-postgresql:dev
heroku pgbackups:restore <DATABASE> <BACKUP_ID>
heroku pg:promote <DATABSE>
heroku maintenance:off
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment