# 将帖子从 Atlassian Confluence 迁移

**URL:** https://meta.discourse.org/t/migrating-posts-from-atlassian-confluence/208007
**Category:** Migration
**Created:** [2021年十一月2日 16:58 UTC](https://meta.discourse.org/t/migrating-posts-from-atlassian-confluence/208007 "2021-11-02T16:58:08Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Tris20](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tris20/32/264639_2.png) [@Tris20](https://meta.discourse.org/u/Tris20)
#### Post date: [2021年十一月2日 16:58 UTC](https://meta.discourse.org/t/migrating-posts-from-atlassian-confluence/208007/1 "2021-11-02T16:58:08Z")

</div>

我想知道是否有人成功迁移过 Confluence 中的主题，或者至少尝试过？在阅读 Confluence 页面时，我看到有几个导出选项：

- HTML
- XML
- PDF
- Word

这些选项看起来都不太理想。我预计我们需要从 HTML 或 XML 中提取数据—— whichever 提供最容易的提取方式。

有人尝试过吗？或者有什么好的建议？

> **[Export Content to Word, PDF, HTML and XML | Confluence Data Center 10.2 |...](https://confluence.atlassian.com/doc/export-content-to-word-pdf-html-and-xml-139475.html)**

---

<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: [2021年十一月2日 17:51 UTC](https://meta.discourse.org/t/migrating-posts-from-atlassian-confluence/208007/2 "2021-11-02T17:51:25Z")

</div>

XML 是您需要的格式。`discus` 导入脚本似乎使用了 XML。我原以为在 `script/import_scripts` 中通过 `grep` 能找到其他几个脚本，但我没看到。

因此，您需要获取 XML 转储文件，然后修改 `discus` 导入脚本，使其使用从 Confluence 获取的任意架构。如果您不想自己动手，可以在 #Marketplace 中发帖，或者查看 [https://www.literatecomputing.com/discourse-migration/。](https://www.literatecomputing.com/discourse-migration/%E3%80%82)

---

<div class="post-metadata">

### Author: ![Tris20](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tris20/32/264639_2.png) [@Tris20](https://meta.discourse.org/u/Tris20)
#### Post date: [2021年十一月3日 11:45 UTC](https://meta.discourse.org/t/migrating-posts-from-atlassian-confluence/208007/3 "2021-11-03T11:45:35Z")

</div>

@pfaffman 感谢您的回复。我担心情况确实如此。我知道我们可以提取它，但我过去使用 XML 的体验并不愉快。我们可能要再过几个月才会开始这项工作，也许当我们迁移到官方服务器时，支持将成为可能。Atlassian 近期正在提高费用，因此如果有更多公司考虑将 Discourse 作为理想的迁移选择，我也不会感到意外。

---

<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: [2021年十一月3日 11:59 UTC](https://meta.discourse.org/t/migrating-posts-from-atlassian-confluence/208007/4 "2021-11-03T11:59:17Z")

</div>

> [@Tris20](#):
>
> 但我过去使用 XML 的体验并不愉快。

如果你对它有一定经验，那应该没问题。我想我之前修改过那个脚本，过程相当直接。祝你好运！
