Skip to content

Instantly share code, notes, and snippets.

@zulhfreelancer
zulhfreelancer / export_import_heroku_database.md
Last active May 6, 2021 14:28
How to export Heroku Postgres Database to Localhost Database (Rails)?

How to export Heroku Postgres Database to Localhost Database (Rails)?

Step 1

$ cd /path/to/your/rails/app
$ heroku pg:backups capture
$ curl -o latest.dump `heroku pg:backups public-url`

OR