# 恢复到新主机

**URL:** <https://meta.discourse.org/t/restore-to-new-host/219515>\
**Category:** Support\
**Created:** [2022年二月27日 19:46 UTC](https://meta.discourse.org/t/restore-to-new-host/219515 "2022-02-27T19:46:43Z")\
**Posts on this page:** 1\
**Showing post:** 5

<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:** [2026年一月13日 14:14 UTC](https://meta.discourse.org/t/restore-to-new-host/219515/5 "2026-01-13T14:14:14Z")

</div>

您的还原出现类似以下的错误？

```plaintext
FileStore::ToS3MigrationError: 1 个帖子未重新映射到新的 S3 上传 URL。数据库 'default' 的 S3 迁移失败。

```

在这种情况下，_最好_是修复上传位置不正确的帖子。但我认为有一种情况该测试可能会出现误报。在这种情况下，您可以使用 rake 任务上的一个开关来暂停它，以便您可以修复问题。我不能马上找到它，它也不在应该在的 [https://meta.discourse.org/t/backup-discourse-from-the-command-line/64364。我现在正在处理一项任务，所以现在找不到它。](https://meta.discourse.org/t/backup-discourse-from-the-command-line/64364%E3%80%82%E6%88%91%E7%8E%B0%E5%9C%A8%E6%AD%A3%E5%9C%A8%E5%A4%84%E7%90%86%E4%B8%80%E9%A1%B9%E4%BB%BB%E5%8A%A1%EF%BC%8C%E6%89%80%E4%BB%A5%E7%8E%B0%E5%9C%A8%E6%89%BE%E4%B8%8D%E5%88%B0%E5%AE%83%E3%80%82)

---

_[View the full topic](https://meta.discourse.org/t/restore-to-new-host/219515)._
