Question

I am currently trying to migrate a database on one app to another in heroku by following this: https://devcenter.heroku.com/articles/migrate-heroku-postgres-with-pgbackups

After running:

 heroku pgbackups:restore HEROKU_POSTGRESQL_TURQUOISE -a target-app \
`heroku pgbackups:url -a source-app`

I end up with a "Resource not found error"

I'm sure I will need to post more information/logs but I'm not quite sure what is needed.

Was it helpful?

Solution

To debug, try just doing heroku pgbackups:url -a source-app and entering that URL in your browser. This command should download and install into your local Postgres database db:

curl `heroku pgbackups:url -a source-app` | pg_restore --verbose --no-acl --no-owner -h localhost -U postgres -d db -n public"

OTHER TIPS

Farther down in this article it references migrating between apps, which seems like what you are trying to do.

The example syntax given is: $ heroku pgbackups:transfer HEROKU_POSTGRESQL_PINK sushi-staging::HEROKU_POSTGRESQL_OLIVE -a sushi

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top