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.

有帮助吗?

解决方案

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"

其他提示

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

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top