Make a backup: heroku pgbackups:capture
or heroku pgbackups:capture --expire
Get the URL: heroku pgbackups:url
Download: curl -o latest.dump "URL"
Import: $ pg_restore --verbose --clean --no-acl --no-owner -h localhost -U myuser -d mydb latest.dump