# How to batch modify file link addresses

**URL:** https://meta.discourse.org/t/topic/365251
**Category:** Support
**Created:** [May 8, 2025, 3:58am UTC](https://meta.discourse.org/t/topic/365251 "2025-05-08T03:58:28Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![xyz](https://avatars.discourse-cdn.com/v4/letter/x/b5a626/32.png) [@xyz](https://meta.discourse.org/u/xyz)
#### Post date: [May 8, 2025, 3:58am UTC](https://meta.discourse.org/t/topic/365251/1 "2025-05-08T03:58:28Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [May 8, 2025, 8:53pm UTC](https://meta.discourse.org/t/topic/365251/3 "2025-05-08T20:53:20Z")

</div>

> [@xyz](#):
>
> (Tencent Cloud, compatible with S3)

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](https://meta.discourse.org/t/configure-an-s3-compatible-object-storage-provider-for-uploads/148916)

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.

---

<div class="post-metadata">

### Author: ![xyz](https://avatars.discourse-cdn.com/v4/letter/x/b5a626/32.png) [@xyz](https://meta.discourse.org/u/xyz)
#### Post date: [May 9, 2025, 3:40am UTC](https://meta.discourse.org/t/topic/365251/4 "2025-05-09T03:40:35Z")

</div>

> [@pfaffman](#):
>
> 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](https://meta.discourse.org/t/configure-an-s3-compatible-object-storage-provider-for-uploads/148916)

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.

> [@pfaffman](#):
>
> `SiteSettings.include_s3_uploads_in_backups` to true and see if it’ll restore.

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

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [May 9, 2025, 4:06pm UTC](https://meta.discourse.org/t/topic/365251/5 "2025-05-09T16:06:03Z")

</div>

> [@xyz](#):
>
> How to switch storage buckets in discourse?

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.

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [June 8, 2025, 4:06pm UTC](https://meta.discourse.org/t/topic/365251/6 "2025-06-08T16:06:31Z")

</div>

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