# Plesk 服务器迁移

**URL:** https://meta.discourse.org/t/plesk-server-migration/285074
**Category:** Self-hosting
**Created:** [2023年十一月10日 13:35 UTC](https://meta.discourse.org/t/plesk-server-migration/285074 "2023-11-10T13:35:39Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![ozkn](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ozkn/32/196013_2.png) [@ozkn](https://meta.discourse.org/u/ozkn)
#### Post date: [2023年十一月10日 13:35 UTC](https://meta.discourse.org/t/plesk-server-migration/285074/1 "2023-11-10T13:35:39Z")

</div>

如果我使用 Plesk 迁移插件迁移服务器，我的“discourse”网站在新服务器上还能正常运行吗？我目前在同一台服务器上运行着一个 WordPress 子域名网站和一个 discourse 网站。我想安装 Plesk 并迁移到新服务器，但不确定 discourse 是否能正常工作。

---

<div class="post-metadata">

### Author: ![Arkshine](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/arkshine/32/298682_2.png) [@Arkshine](https://meta.discourse.org/u/Arkshine)
#### Post date: [2023年十一月10日 18:10 UTC](https://meta.discourse.org/t/plesk-server-migration/285074/2 "2023-11-10T18:10:20Z")

</div>

为了弄清楚，您当前服务器上安装了 Plesk，并且您想知道在安装 Plesk 到新服务器并迁移所有内容时，是否也包含 Discourse。我说的对吗？

---

<div class="post-metadata">

### Author: ![ozkn](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ozkn/32/196013_2.png) [@ozkn](https://meta.discourse.org/u/ozkn)
#### Post date: [2023年十一月10日 18:33 UTC](https://meta.discourse.org/t/plesk-server-migration/285074/3 "2023-11-10T18:33:51Z")

</div>

是的。我将在新服务器上安装 Plesk。我将把所有内容从旧服务器迁移到新服务器。@Arkshine

---

<div class="post-metadata">

### Author: ![Arkshine](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/arkshine/32/298682_2.png) [@Arkshine](https://meta.discourse.org/u/Arkshine)
#### Post date: [2023年十一月10日 19:19 UTC](https://meta.discourse.org/t/plesk-server-migration/285074/4 "2023-11-10T19:19:19Z")

</div>

我不认为它会起作用。Plesk 只会复制您的域名和代理配置。Discourse 本身与 Plesk 无关；它是一个单独的安装。

您可以遵循本指南来迁移您的 Discourse 实例：

> [@Move your Discourse Instance to a Different Server](https://meta.discourse.org/t/move-your-discourse-instance-to-a-different-server/15721):
>
> bookmark This is a guide for moving your Discourse instance from one server to another, including all settings and data. This guide applies to self-hosted Discourse instances using Docker. person_raising_hand Required user level: System Administrator warning This procedure involves domain and DNS changes. Ensure you have access to both the source and destination servers. This guide walks you through the process of migrating your Discourse instance from one server to another, ensuring …

或者，您也可以直接使用命令行，而无需启动 Web UI：

> [@Restore a backup from the command line](https://meta.discourse.org/t/restore-a-backup-from-the-command-line/108034):
>
> bookmark This guide explains how to restore a Discourse backup from the command line without using the Discourse web UI. person_raising_hand Required user level: Administrator wrench Console access required Here’s how to restore a Discourse backup from the command line, without ever booting the Discourse web UI. This is handy when you’re moving servers. Prerequisites Before you start, make sure you complete the following steps: Download the latest backup file from the source Disco…

我强烈建议您在进行备份之前升级您的 Discourse！

注意：无论您选择哪种方法，当您在新服务器上安装 Discourse 时，请使用旧的 `app.yml` 文件替换 `/containers` 目录下的文件，然后重新构建，而不是使用 `./discourse-setup`。由于您使用的是 Plesk，这样做会更简单。

---

<div class="post-metadata">

### Author: ![ozkn](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ozkn/32/196013_2.png) [@ozkn](https://meta.discourse.org/u/ozkn)
#### Post date: [2023年十一月10日 20:06 UTC](https://meta.discourse.org/t/plesk-server-migration/285074/5 "2023-11-10T20:06:10Z")

</div>

感谢您的回答。当我将备份上传到新服务器时，如何将图像上传到旧服务器？据我所知，备份文件中包含数据库和帖子。@Arkshine

---

<div class="post-metadata">

### Author: ![Arkshine](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/arkshine/32/298682_2.png) [@Arkshine](https://meta.discourse.org/u/Arkshine)
#### Post date: [2023年十一月10日 20:09 UTC](https://meta.discourse.org/t/plesk-server-migration/285074/6 "2023-11-10T20:09:46Z")

</div>

如果您是指如何包含附件，我相信它默认包含在备份中：

 ![image](https://global.discourse-cdn.com/meta/original/4X/4/8/a/48aad53975c347338c1125f23382dff8a2bd8e66.png)
