restore pgdump from heroku code example
Example 1: heroku download database
$ heroku pg:backups:capture
$ heroku pg:backups:download
Example 2: heroku download database
$ heroku pg:backups:download
$ heroku pg:backups:capture
$ heroku pg:backups:download
$ heroku pg:backups:download