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


(Geoff Bowers) #1

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?


(Régis Hanol) #2

Have you tried the uploads:migrate_from_s3 rake task?


(Geoff Bowers) #3

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


(Régis Hanol) #4

Run “rake -T” in the discourse directory.


(Robin Ward) #5