# Discourse 上传到 S3 后未清理本地 tmp 备份

**URL:** <https://meta.discourse.org/t/discourse-not-cleaning-up-local-tmp-backups-after-uploading-to-s3/291033>\
**Category:** Self-hosting\
**Tags:** backups, s3\
**Created:** [2024 年1 月 9 日 15:51 UTC](https://meta.discourse.org/t/discourse-not-cleaning-up-local-tmp-backups-after-uploading-to-s3/291033 "2024-01-09T15:51:44Z")\
**Posts on this page:** 1\
**Showing post:** 2

<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)\
发布日期： [2024 年1 月 9 日 16:44 UTC](https://meta.discourse.org/t/discourse-not-cleaning-up-local-tmp-backups-after-uploading-to-s3/291033/2 "2024-01-09T16:44:52Z")

</div>

我最好的解释是，有时服务器会在删除本地备份文件之前重启。

> [@Wingtip](#):
>
> 奇怪的是，从 tmp 文件列表来看，我们看到 1 月 2 日、3 日、7 日、8 日和 9 日占用了空间。从管理员界面中的 Discourse 备份列表来看，我只看到 1 月 4 日。

备份列表显示的是 S3 上的内容，而不是本地驱动器上的内容。

> [@Wingtip](#):
>
> “备份频率”在管理员配置中设置为 3，所以它本不应该每天都尝试备份。

有人手动运行备份吗？

---

_[View the full topic](https://meta.discourse.org/t/discourse-not-cleaning-up-local-tmp-backups-after-uploading-to-s3/291033)._
