Moving uploads to a different S3 location

I am trying to move discourse uploads to a new S3 location. I copied files say; from bucket1 to bucket2.
Newly added uploads get saved at the new bucket2 location, but previously uploaded images the system still shows from the bucket1, the old location. What should I do to show it from the bucket 2?

1 Like

Solved it this way.

 cd /var/discourse

 ./launcher enter app

discourse remap  //BUCKET1.s3.dualstack.us-west-2.amazonaws.com //BUCKET2.s3.dualstack.eu-central-1.amazonaws.com
5 Likes

:tada: Brilliant! Iā€™d been considering how to do replacements in the various tables, but this solves is perfectly. Thanks for sharing.

3 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.