Skip to content

Instantly share code, notes, and snippets.

@codesoda
Last active February 10, 2016 05:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save codesoda/3935932 to your computer and use it in GitHub Desktop.
Save codesoda/3935932 to your computer and use it in GitHub Desktop.
Restore Heroku Backups
$ heroku pg:backups capture -r REMOTE
$ heroku pg:backups public-url b001 -r REMOTE
$ pg_restore --verbose --clean --no-acl --no-owner -d DATABASE DUMP
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment