Skip to content

Instantly share code, notes, and snippets.

@mkuklis
Created August 6, 2013 14:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mkuklis/6164689 to your computer and use it in GitHub Desktop.
Save mkuklis/6164689 to your computer and use it in GitHub Desktop.
# dump heroku db
heroku pgbackups:capture
# restore
pg_restore --verbose --clean --no-acl --no-owner -h localhost -U postgres -d database_name DUMP_PATH
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment