User frederic reported an issue where a backup file downloaded from Amazon S3 was saved with a .gz extension instead of the required .tar.gz, causing an upload error. After manually renaming the file to .tar.gz, the upload succeeded, but the restored site settings (e.g., logo, S3 bucket) were not immediately visible. zogstrip explained that the browser likely altered the extension during download and noted that site settings are cached, requiring an application restart to appear after a restore. frederic confirmed that renaming the file resolved the upload issue and that restarting the app fixed the missing settings. codinghorror noted the odd behavior of S3 changing the extension and suggested accepting both .gz and .tar.gz formats. lidel proposed using the .tgz shorthand as an alternative. In response, zogstrip updated the code to accept .tgz and .gz extensions for backup files, resolving the compatibility issue.
I think your browser changed the extension of the backup when you downloaded it. To fix it, you only need to change the extension back to “.tar.gz”.
As for the uploaded backup not showing up, you’ll need to make sure sidekiq is working by checking you.discourse.org/sidekiq/scheduler and making sure there’s no warning about sidekiq being paused.
The site settings are indeed saved in the backup. Due to how we cache them, you’ll need to restart the application for them to show up after a restore.
I’m glad you brought this up because I think I ran into the same thing. Not sure why downloading from Amazon S3 somehow replaces .tar.gz file extension with just .gz .. very odd.
@zogstrip should we accept both filetypes here? Is that safe, I have no idea.