This issue was originally posted for a different issue
and while exploring I downloaded the backups, both from s3 and from local to find out that both “1x” and “optimized” folders don’t have all the images uploaded to the forum. Scares me. Here’s the screenshot of the folder and I know for sure there are a ton more images that were uploaded.
Which is close to the 15 day backup + 90 day expiry. I think that you have probably deleted those images.
In the video, you can see that some files are marked as Glacier class storage. You can select all and initiate a restore so the few images that have not expired yet can be moved back to S3.
The images that have crossed the 90-day expiry cannot be restored
I’m not sure about this, I will check but maybe another team member can help.
For now you could set it to anything but remember that this restoration is only temporary.
After this time period, the restored data will be moved back to Glacier again.
One of these solutions can help:
Maybe you could restore the data, download all of the data that’s left and then re-upload to S3 after removing the expiration policies. I’m not 100% sure if this will work but the file names and folder structure must not change. @zogstrip Will this work?
That will work as long as the associated Upload and PostUpload records are present in the database.
Also, since uploads are stored externally (ie. on S3), they aren’t backed up via the Discourse backup feature since that would mean downloading all the files from S3 before taking the backup. That would often result in a full disk…