Skip to content

Instantly share code, notes, and snippets.

@pachun
Created November 13, 2017 20:28
Show Gist options
  • Save pachun/171314491201e34589980b67ad081caa to your computer and use it in GitHub Desktop.
Save pachun/171314491201e34589980b67ad081caa to your computer and use it in GitHub Desktop.
Copy a Heroku Postgresql DB into a local DB
$ heroku pg:backups:capture
$ heroku pg:backups:download
Then:
$ pg_restore -c -d torq_api_development latest.dump
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment