# 使用rsync迁移discourse时遇到的Postgresql问题

**URL:** <https://meta.discourse.org/t/postgresql-problem-on-moving-discourse-with-rsync/318771>\
**Category:** Self-hosting\
**Created:** [2024年七月27日 14:27 UTC](https://meta.discourse.org/t/postgresql-problem-on-moving-discourse-with-rsync/318771 "2024-07-27T14:27:22Z")\
**Posts on this page:** 1\
**Showing post:** 9

<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:** [2025年十二月19日 01:12 UTC](https://meta.discourse.org/t/postgresql-problem-on-moving-discourse-with-rsync/318771/9 "2025-12-19T01:12:47Z")

</div>

恢复备份比复制原始数据库文件更容易。此外，如果您进行恢复，它会自动更改主机名。

---

_[View the full topic](https://meta.discourse.org/t/postgresql-problem-on-moving-discourse-with-rsync/318771)._
