On Heroku, I am trying to copy the production database into my staging app using the pgbackups addon. I followed the instructions on the addon page: https://devcenter.heroku.com
To transfer (copy) the production database (source database) to the staging database (target database) you will need to invoke pg:copy
from the target application, referencing a source database.
heroku pg:copy source-application::OLIVE HEROKU_POSTGRESQL_PINK -a target-application
Another example:
heroku pg:copy my-production-app::HEROKU_POSTGRESQL_OLIVE HEROKU_POSTGRESQL_PINK --app my-staging-app
To obtain the colour names of your databases, use:
heroku pg --app my-production-app
heroku pg --app my-staging-app
See pg:copy