# Backups not rotating

**URL:** <https://meta.discourse.org/t/backups-not-rotating/32534>\
**Category:** Feature\
**Created:** [August 26, 2015, 9:05am UTC](https://meta.discourse.org/t/backups-not-rotating/32534 "2015-08-26T09:05:54Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Stephen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stephen/32/95011_2.png) [@Stephen](https://meta.discourse.org/u/Stephen)\
**Post date:** [August 26, 2015, 9:05am UTC](https://meta.discourse.org/t/backups-not-rotating/32534/1 "2015-08-26T09:05:54Z")

</div>

I’ve just looked at our backup history and can see backups from the following date:

8/25 \*  
8/14 \*  
8/13 \*  
8/12  
8/11  
8/19  
8/9

That seems like an odd spread, from what I recalled we previously had the last seven days.

We have recently changed the site name as part of our shift from using discourse in the title. The original change was on August 12, although it was tweaked again on the 13th. Starred backups above all bear the same name.

As the backup name includes the site name, is there any chance the rename is responsible for this odd distribution of dates? It’s a little odd to have six consecutive days dating back more than a week and only one backup from the past seven.

---

<div class="post-metadata">

**Author:** ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)\
**Post date:** [August 26, 2015, 9:20am UTC](https://meta.discourse.org/t/backups-not-rotating/32534/2 "2015-08-26T09:20:49Z")

</div>

We changed the Discourse default from a backup every day to a backup every 7 days.

There is no provision for “rotating” in the code, it’s “keep last X” only.

---

<div class="post-metadata">

**Author:** ![Stephen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stephen/32/95011_2.png) [@Stephen](https://meta.discourse.org/u/Stephen)\
**Post date:** [August 26, 2015, 9:23am UTC](https://meta.discourse.org/t/backups-not-rotating/32534/3 "2015-08-26T09:23:15Z")

</div>

If that’s the case, where’s my backup from either the 18th, or 21st? There’s a 9 day gap between my two most recent backups.

---

<div class="post-metadata">

**Author:** ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)\
**Post date:** [August 26, 2015, 9:23am UTC](https://meta.discourse.org/t/backups-not-rotating/32534/4 "2015-08-26T09:23:42Z")

</div>

The setting was changed recently. Not sure when you pulled the update but you got the new default.

---

<div class="post-metadata">

**Author:** ![Stephen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stephen/32/95011_2.png) [@Stephen](https://meta.discourse.org/u/Stephen)\
**Post date:** [August 26, 2015, 9:24am UTC](https://meta.discourse.org/t/backups-not-rotating/32534/5 "2015-08-26T09:24:35Z")

</div>

Sure, I understand that, but until then I would have had daily backups, which from the sequence above suggests that it was when I updated on August 14th.

---

<div class="post-metadata">

**Author:** ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)\
**Post date:** [August 26, 2015, 9:25am UTC](https://meta.discourse.org/t/backups-not-rotating/32534/6 "2015-08-26T09:25:15Z")

</div>

The rest is probably attributable to the site name change as you noted.

---

<div class="post-metadata">

**Author:** ![Stephen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stephen/32/95011_2.png) [@Stephen](https://meta.discourse.org/u/Stephen)\
**Post date:** [August 26, 2015, 9:26am UTC](https://meta.discourse.org/t/backups-not-rotating/32534/7 "2015-08-26T09:26:35Z")

</div>

Backups for the past 13 days have been under the new name.

---

<div class="post-metadata">

**Author:** ![chapoi](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/chapoi/32/537252_2.png) [@chapoi](https://meta.discourse.org/u/chapoi)\
**Post date:** [December 4, 2025, 11:36am UTC](https://meta.discourse.org/t/backups-not-rotating/32534/8 "2025-12-04T11:36:57Z")

</div>


