# 暂时使用网络存储进行还原、PSQL 更新，

**URL:** <https://meta.discourse.org/t/make-temporary-use-of-network-storage-for-restores-psql-update/351878>\
**Category:** Self-hosting\
**Created:** [2025 年2 月 12 日 12:30 UTC](https://meta.discourse.org/t/make-temporary-use-of-network-storage-for-restores-psql-update/351878 "2025-02-12T12:30:37Z")\
**Posts on this page:** 1\
**Showing post:** 11

<div class="post-metadata">

作者： ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)\
发布日期： [2025 年2 月 13 日 10:20 UTC](https://meta.discourse.org/t/make-temporary-use-of-network-storage-for-restores-psql-update/351878/11 "2025-02-13T10:20:06Z")

</div>

将上传内容（例如 `/var/discourse/shared/web_only`）保存在网络存储上会很方便。您需要编辑 yml 文件以指向它，而不是使用符号链接（符号链接不起作用，因为容器无法访问符号链接指向的位置）。

然后，如果您迁移到新的虚拟机，只需重新挂载该网络存储即可，无需复制。

我不建议将数据库放在网络存储上，因为它速度较慢。

---

_[View the full topic](https://meta.discourse.org/t/make-temporary-use-of-network-storage-for-restores-psql-update/351878)._
