Skip to content

Instantly share code, notes, and snippets.

@jbailey
Created May 18, 2012 15:42
Show Gist options
  • Save jbailey/2725932 to your computer and use it in GitHub Desktop.
Save jbailey/2725932 to your computer and use it in GitHub Desktop.
Heroku PG Backups
List Backups
heroku pgbackups --app {PRODUCTION_APP_NAME}
Get URL for a backup
heroku pgbackups:url {ID} --app {PRODUCTION_APP_NAME}
Restore to test
heroku pgbackups:restore DATABASE {BIG_LONG_URL} --app {TEST_APP_NAME}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment