# 什么是rebaking，在迁移服务器时是否必要？

**URL:** <https://meta.discourse.org/t/what-is-rebaking-and-is-it-necessary-when-moving-a-server/318517>\
**Category:** Self-hosting\
**Created:** [2024年七月26日 07:56 UTC](https://meta.discourse.org/t/what-is-rebaking-and-is-it-necessary-when-moving-a-server/318517 "2024-07-26T07:56:39Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Heliosurge](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/heliosurge/32/571810_2.png) [@Heliosurge](https://meta.discourse.org/u/Heliosurge)\
**Post date:** [2024年七月26日 10:02 UTC](https://meta.discourse.org/t/what-is-rebaking-and-is-it-necessary-when-moving-a-server/318517/2 "2024-07-26T10:02:14Z")

</div>

通常使用重新烘焙帖子来重新处理大量帖子。例如，您更改了域名。现在您有大量帖子链接到您网站上的其他主题。它们现在已损坏。

因此，您可以使用适当的重新烘焙过程命令将旧域名替换为新域名。

根据我的理解，由于您只是从一个服务器迁移到另一个服务器，因此不需要重新烘焙。根据我的理解，您需要更新域名提供商中指向您网站的 IP 地址信息。

下面的链接应该有助于阐明重新烘焙帖子：

> [@Rebake all posts matching a pattern](https://meta.discourse.org/t/rebake-all-posts-matching-a-pattern/48713):
>
> bookmark This guide provides instructions on how to rebake all posts in Discourse that match a specific string or regular expression, utilizing the Rails console for additional advanced options. person_raising_hand Required user level: Administrator warning Console access required Want to rebake all the posts matching a string or regular expression? Let’s get started! Accessing your site To begin, connect to your Discourse Droplet via SSH and enter the Docker container for your Disc…

---

_[View the full topic](https://meta.discourse.org/t/what-is-rebaking-and-is-it-necessary-when-moving-a-server/318517)._
