I migrated servers last night and just could not get the remote backup to restore.
Instead, I was presented with this error in the backup log.
Remote Backups
EXCEPTION: Failed to download archive to tmp directory.
I tried over and over, and nothing worked. I can make backups successfully, I just cannot restore from those remote backups. I’m using BackBlaze, and this is what my app.yml file looks like.
DISCOURSE_S3_ENDPOINT: <url>
DISCOURSE_S3_ACCESS_KEY_ID: <key_id>
DISCOURSE_S3_SECRET_ACCESS_KEY: <key>
DISCOURSE_S3_BACKUP_BUCKET: <bucket>
I hope someone has some insight here…
Local Backups
Here’s a tip for someone else…
I then tried local backups. A long story short, they didn’t work, and that’s when I noticed the backup file ended in .tar
instead of .tar.gz
. As it turns out, as soon as the backup is downloaded, Safari was opening the archive file which changes the file extension from .tar.gz
to .tar
. So that’s why local backups were not restoring.
So I unchecked this box:
Re-downloaded my backup file from BackBlaze and the .tar.gz
file extension was intact. From there, the restore worked as expected.