# 正在进行滚动和永久性季度备份？

**URL:** <https://meta.discourse.org/t/making-rolling-and-permanent-quarterly-backups/182971>\
**Category:** Feature\
**Created:** [2021年三月12日 05:55 UTC](https://meta.discourse.org/t/making-rolling-and-permanent-quarterly-backups/182971 "2021-03-12T05:55:12Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dannii](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dannii/32/129087_2.png) [@Dannii](https://meta.discourse.org/u/Dannii)\
**Post date:** [2021年三月12日 05:55 UTC](https://meta.discourse.org/t/making-rolling-and-permanent-quarterly-backups/182971/1 "2021-03-12T05:55:12Z")

</div>

我想知道是否有某种方法（或插件）可以支持多种备份模式，例如滚动每周备份（即上传一个，删除最旧的一个）与永久季度备份相结合。我相当确定默认软件不支持此功能，但也许有我没发现的模组？或者仅仅是一个 cron 脚本？有人之前做过类似的事情吗？

---

<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年三月12日 11:29 UTC](https://meta.discourse.org/t/making-rolling-and-permanent-quarterly-backups/182971/2 "2021-03-12T11:29:39Z")

</div>

我会用 cron 来实现。只需设置每日备份并保留较大的最大数量，然后让某个外部进程为你清理它们。如果你使用的是本地备份，可以配置一个 cron 任务来清理这些备份，并将它们推送到远程服务器。

你可以将它们推送到 S3，并在 S3 上配置某个进程进行清理。

在 Stack Overflow 等平台上，有成千上万种方法可以实现这些操作。

---

<div class="post-metadata">

**Author:** ![bartv](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bartv/32/130052_2.png) [@bartv](https://meta.discourse.org/u/bartv)\
**Post date:** [2021年三月12日 18:56 UTC](https://meta.discourse.org/t/making-rolling-and-permanent-quarterly-backups/182971/3 "2021-03-12T18:56:52Z")

</div>

我正在使用 [Borg Backup](https://www.borgbackup.org/) 搭配 [BorgBase](https://www.borgbase.com/) 进行存储。它并非 Discourse 的一部分，但设置起来并不复杂，而且对我来说一直运行得非常可靠。它每晚自动运行，无需人工干预，同时我每周还会执行检查和“修剪”（prune）任务。
