How to batch modify file link addresses

I changed the domain name for file storage (Tencent Cloud, compatible with S3). How can I update the old file link addresses in the posts to the new domain links? Thank you.

It’s almost certainly not 100% compatible. Is it compatible with Discourse? You’ve checked? Have a look at Configure an S3 compatible object storage provider for uploads

There’s a topic about using remap to switch buckets.

What I would do is set up a new server with teh new S3 config, set the SiteSettings.include_s3_uploads_in_backups to true and see if it’ll restore.

2 Likes

I believe it is 100% compatible because after configuration, I used it without any problems, including uploads and backups, which are completely consistent with Amazon AWS.

How to switch storage buckets in discourse? Please guide me, thank you.

1 Like

There used to be a topic about how to use remap to switch to a different bucket. I don’t see it.

The way that I would recommend would be to switch servers as described above. Doing it once you have multiple buckets in Uploads is much more difficult.

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