Last active
April 1, 2024 21:29
-
-
Save pachun/e2b0ffa1fe827fedb242830f2e98e7bb to your computer and use it in GitHub Desktop.
Copy a Postgres Heroku database locally
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ 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