pgbackups on Heroku not found

我只是一个虾纸丫 提交于 2020-01-02 03:30:17

问题


I have been using pgbackups to capture databases and load them locally but since yesterday, I am getting this message when provisioning the add on for new apps.

!    Add-on plan not found.

Has pgbackups been disabled for new instances? It still works on apps it was previously integrated with. If it has been deprecated, what is the recommended replacement?


回答1:


Heroku have recently made changes. "PG Backups as an add-on has been deprecated." For new commands, see here: https://devcenter.heroku.com/articles/mapping-pgbackups-commands

Old command:

heroku pgbackups:capture --app sushi

New Command

heroku pg:backups capture --app sushi



回答2:


So I missed this little disclaimer here: https://devcenter.heroku.com/articles/pgbackups

PG Backups as an add-on has been deprecated. The commands exist as part of the Heroku Postgres namespace in the CLI. The new functionality is live and available for use. We also have a mapping guide to show you how the old commands transfer to the new ones. 



回答3:


To add to response from jcuenod above the same would apply for heroku pg:backups:restore. The new command will be heroku pg:backups restore. Heroku documentation is inconsistent and should be updated.



来源:https://stackoverflow.com/questions/29053867/pgbackups-on-heroku-not-found

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!