Skip to content

Instantly share code, notes, and snippets.

@pachun
Last active April 1, 2024 21:29
Show Gist options
  • Save pachun/e2b0ffa1fe827fedb242830f2e98e7bb to your computer and use it in GitHub Desktop.
Save pachun/e2b0ffa1fe827fedb242830f2e98e7bb to your computer and use it in GitHub Desktop.
Copy a Postgres Heroku database locally
$ heroku pg:backups:capture -a too-many-men-api
$ heroku pg:backups:download -a too-many-men-api
$ pg_restore -c -d too_many_men_api_development latest.dump
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment