- Goto etc/postgres/postgresql-version/pg_hba.config
- Change peer/md5/anything to
trust
pg_dump -Fc -U <username> -d <database> > /<path><filename>
heroku pg:reset DATABASE
heroku pg:backups:capture --app <APP NAME>
$ heroku pg:backups:download
https://devcenter.heroku.com/articles/heroku-postgres-backups