Migrating S3 images to local; or from one S3 bucket to another

AI-generated summary

A user, modius, is seeking advice on migrating images from an S3 bucket with dots in the name to either local storage or a new S3 bucket to enable HTTPS on their Discourse instance. zogstrip suggests using the uploads:migrate_from_s3 rake task, which modius confirms they will try. zogstrip also directs modius to run rake -T to list available rake tasks.

We have an old Discourse instance (running latest version but initially installed a while back). It’s running under HTTP with all its images stored on an AWS S3 bucket with . (dots) in the name.

We want to move to HTTPS – configuring for Lets Encrypt works a treat but all the images are broken as S3 buckets with (dots) don’t appear to do SSL.

I’m thinking the simplest option would be to migrate all the images to the local instance – as its not an image heavy forum. But I can’t seem to work out how that would be done.

The alternative would be to migrate all the images to a new S3 bucket with an appropriate name. But I can’t seem to work out how that would be done either.

Can someone point me in the right direction?

Have you tried the uploads:migrate_from_s3 rake task?

No, but I sure will :slight_smile:
Where can I find a list of available “rake tasks”?

Run “rake -T” in the discourse directory.