Dump Heroku Postgres DB and Restore Locally
Nice job Heroku, you made this super simple:
heroku pg:backups:capture
heroku pg:backups:download
pg_restore --verbose --clean --no-acl --no-owner -h localhost -U myuser -d mydb latest.dump
Tweet