# 能否将 discourse 备份文件上传到不同的域名地址？

**URL:** <https://meta.discourse.org/t/can-i-upload-discourse-backup-file-to-different-domain-address/292511>\
**Category:** Self-hosting\
**Tags:** backups\
**Created:** [2024年一月22日 14:21 UTC](https://meta.discourse.org/t/can-i-upload-discourse-backup-file-to-different-domain-address/292511 "2024-01-22T14:21:45Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sunder](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sunder/32/277834_2.png) [@Sunder](https://meta.discourse.org/u/Sunder)\
**Post date:** [2024年一月22日 14:21 UTC](https://meta.discourse.org/t/can-i-upload-discourse-backup-file-to-different-domain-address/292511/1 "2024-01-22T14:21:45Z")

</div>

我需要将我的 discourse 迁移到另一个域名。

例如：目前我的 discourse 运行在 [https://xyz.com](https://xyz.com) 下，但现在我想将其完全迁移到像 [https://abc.com](https://abc.com) 这样的不同域名，请指导我如何操作。

---

<div class="post-metadata">

**Author:** ![Moin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/moin/32/554653_2.png) [@Moin](https://meta.discourse.org/u/Moin)\
**Post date:** [2024年一月22日 14:36 UTC](https://meta.discourse.org/t/can-i-upload-discourse-backup-file-to-different-domain-address/292511/2 "2024-01-22T14:36:53Z")

</div>

有一个关于更改域名名称的#how-to。

> [@Change the domain name or rename your Discourse](https://meta.discourse.org/t/change-the-domain-name-or-rename-your-discourse/16098):
>
> bookmark This guide explains how-to change the domain name of your Discourse site, and includes information about setting up DNS changes, editing configuration files, updating site settings, and correcting social logins and post content to reflect your new domain name. warning This guide is for self-hosted Discourse instances that were installed using our [installation guide on GitHub](https://github.com/discourse/discourse/blob/master/docs/INSTALL-cloud.md). If you are [hosted by Discourse](https://www.discourse.org/pricing), please see [Configure your domain name for hosted Discourse](https://meta.discourse.org/t/configure-your-domain-name-for-hosted-discourse/21827) for specific …

---

<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:** [2024年一月22日 16:12 UTC](https://meta.discourse.org/t/can-i-upload-discourse-backup-file-to-different-domain-address/292511/3 "2024-01-22T16:12:40Z")

</div>

> [@Sunder](#):
>
> 所以请指导我该如何做。

标题表明您正在迁移到新服务器，但文本表明您使用的是同一台服务器。

如果您迁移到配置了新域的新服务器，只需在新站点上上传并恢复即可。它将在恢复过程中重新映射主机名。

> [@Moin](#):
>
> 有一个关于更改域名的 #how-to::tag。

这些说明仅在您想在同一服务器上就地更改主机名时才需要。
