# Discoruse 附件映射表 uploads

**URL:** <https://www.isharkfly.com/t/discoruse-uploads/17048>\
**Category:** Discourse\
**Tags:** discourse\
**Created:** [March 12, 2025, 2:51pm UTC](https://www.isharkfly.com/t/discoruse-uploads/17048 "2025-03-12T14:51:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![hex](https://www.isharkfly.com/user_avatar/www.isharkfly.com/hex/32/21953_2.png) [@hex](https://www.isharkfly.com/u/hex)\
**Post date:** [March 12, 2025, 2:51pm UTC](https://www.isharkfly.com/t/discoruse-uploads/17048/1 "2025-03-12T14:51:17Z")

</div>

Discourse 所有的附件都会在表 uploads 中进行映射。

每个网站上传的附件都会在表中创建一条记录，然后通过主题中的短 URL 进行映射。

备份的时候，这个表经常丢数据或者无法完全恢复。

在恢复数据库成功后，一定要对比这个表的数量，避免丢数据。

 ![2025-03-12_10-50-38](https://com-isharkfly-discourse.s3.dualstack.us-east-2.amazonaws.com/com-isharkfly-www/discourse-uploads/original/3X/c/3/c316704ef659c4b37bf6c8b4a60147aee3f1a55d.jpeg)

---

<div class="post-metadata">

**Author:** ![copy](https://www.isharkfly.com/letter_avatar_proxy/v4/letter/c/848f3c/32.png) [@copy](https://www.isharkfly.com/u/copy)\
**Post date:** [March 15, 2025, 9:27am UTC](https://www.isharkfly.com/t/discoruse-uploads/17048/2 "2025-03-15T09:27:09Z")

</div>

就是两个服务器看下数字一样吗？如果丢了怎么办？还要手动恢复吗

---

<div class="post-metadata">

**Author:** ![hex](https://www.isharkfly.com/user_avatar/www.isharkfly.com/hex/32/21953_2.png) [@hex](https://www.isharkfly.com/u/hex)\
**Post date:** [March 15, 2025, 1:54pm UTC](https://www.isharkfly.com/t/discoruse-uploads/17048/3 "2025-03-15T13:54:10Z")

</div>

> [@copy](#):
>
> 还要手动恢复吗

是的。

要不然会导致老的一些附件显示不出来。
