$ heroku pg:backups:restore 'https://postgres-restore-<project-name>.s3.amazonaws.com/2021May<hash redacted>aa9376\?X-Amz-Algorithm\=AWS4-HMAC-SHA256\&X-Amz-Credential\=AKIAY<hash redacted>0527%2FOhio%2Fs3%2Faws4_request\&X-Amz-Date\=2021<hash redacted>33Z\&X-Amz-Expires\=3600\&X-Amz-SignedHeaders\=host\&X-Amz-Signature\=19<hash redacted>17' HEROKU_POSTGRESQL_PUCE -a <project-name>
› Warning: heroku update available from 7.50.0 to 7.51.0.
▸ WARNING: Destructive Action
▸ This command will affect the app <project-name>
▸ To proceed, type <project-name> or re-run this command with
▸ --confirm <project-name>
> <project-name>
Starting restore of https://postgres-restore-<project-name>.s3.amazonaws.com/<redacted>-802a-4409-8624-<redacted>\?X-Amz-Algorithm\=<redacted>\&X-Amz-Credential\=<redacted>%2F20210527%2FOhio%2Fs3%2Faw s4_request\&X-Amz-Date\=20210527T101733Z\&X-Amz-Expires\=3600\&X-Amz-SignedHeaders\=host\&X-Amz-Signature\=199<hash redacted>d86a0317 to postgresql-animate-93816... done
Use Ctrl-C at any time to stop monitoring progress; the backup will continue restoring.
Use heroku pg:backups to check progress.
Stop a running restore with heroku pg:backups:cancel.
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
▸
▸ Run heroku pg:backups:info r019 for more details.
$ heroku pg:backups:info r019 -a <project-name>
› Warning: heroku update available from 7.50.0 to 7.51.0.
=== Backup r019
Database: BACKUP
Started at: 2021-05-27 10:29:02 +0000
Finished at: 2021-05-27 10:29:02 +0000
Status: Failed
Type: Manual
Backup Size: 0.00B (0% compression)
=== Backup Logs
2021-05-27 10:29:02 +0000 2021/05/27 10:29:02 aborting: could not write to output stream: Expected HTTP Status 200, received: "400 Bad Request"
2021-05-27 10:29:02 +0000 pg_restore: error: could not read from input file: end of file
2021-05-27 10:29:02 +0000 waiting for restore to complete
2021-05-27 10:29:02 +0000 pg_restore finished with errors
2021-05-27 10:29:02 +0000 waiting for download to complete
2021-05-27 10:29:02 +0000 download finished with errors
2021-05-27 10:29:02 +0000 please check the source URL and ensure it is publicly accessible
$
Bookmarks