別のS3の場所にアップロードを移動

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

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

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

「いいね!」 3

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