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

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?

4 Likes

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

Run “rake -T” in the discourse directory.

4 Likes