I reached the build limit on my Heroku app, but I still had a lot of changes I wanted to make. My idea was to create another app, connect it to the same database as the first app, then delete the first app and rename the second app to use the original name.
However, when I deleted the first app, the database was also deleted.
Before deleting, I had downloaded a Postgres dump as a backup. I uploaded the dump to GitHub and tried restoring it with this command:
heroku pg:backups:restore 'https://github.com/myusername/repo/path/branch/latest.dump' --app myappname --c
onfirm myappname
But I got this error:
Restoring... !
! An error occurred and the backup did not finish.
!
! waiting for restore to complete
! pg_restore finished with errors
! waiting for download to complete
! download finished with errors
! please check the source URL and ensure it is publicly accessible
!
My question:
Is there any way I can restore my backup, or have I lost the data for good?
If possible, how can I properly restore the Postgres dump into my new Heroku app?
