# Maximum backups setting ignored

**URL:** https://meta.discourse.org/t/maximum-backups-setting-ignored/102076
**Category:** Support
**Created:** [November 15, 2018, 12:50am UTC](https://meta.discourse.org/t/maximum-backups-setting-ignored/102076 "2018-11-15T00:50:53Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![sebastien](https://avatars.discourse-cdn.com/v4/letter/s/f475e1/32.png) [@sebastien](https://meta.discourse.org/u/sebastien)
#### Post date: [November 15, 2018, 12:50am UTC](https://meta.discourse.org/t/maximum-backups-setting-ignored/102076/1 "2018-11-15T00:50:53Z")

</div>

Hi,

We are currently taking a full backup of our discourse instance once a day. This backup is then pushed to S3.

Our S3 bucket is configured to expire files after 30 days.  
Discourse is configured to keep two backups locally and to skip S3 removal when removing a local backup.

However i have noticed that

- Removing a backup from the console also removes it from s3
- Even with the 2 backup max option, I see we are keeping more than 2 backups locally.

Config:

 ![image](https://global.discourse-cdn.com/meta/original/3X/c/0/c0d8ba91aecd2fbf0d9420bd6ae8e2676002cdc9.png)

Result:

 ![image](https://global.discourse-cdn.com/meta/original/3X/b/5/b5beff24db34e8cc3e6ca547eb8e4e8126b73030.png)

Is this the expected behavior? Did I miss something?

We are using [v2.2.0.beta4 +19]

Thx  
Seb

---

<div class="post-metadata">

### Author: ![gerhard](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gerhard/32/119479_2.png) [@gerhard](https://meta.discourse.org/u/gerhard)
#### Post date: [November 16, 2018, 12:24pm UTC](https://meta.discourse.org/t/maximum-backups-setting-ignored/102076/2 "2018-11-16T12:24:34Z")

</div>

> [@sebastien](#):
>
> We are using [v2.2.0.beta4 +19]

The behavior for backups changed in beta 3. See [Backup location](https://meta.discourse.org/t/backup-location/100397) for more information on that.

Essentially, backups are either store locally or on S3. In your case it’s S3 and since you disabled the cleanup on S3 it will ignore the `maximum_backups` setting. Backups aren’t stored on your local disk anymore. The “Backups” tab in the admin section will show you the files stored on S3 and deleting a backup on that tab will remove it from S3.

---

<div class="post-metadata">

### Author: ![sebastien](https://avatars.discourse-cdn.com/v4/letter/s/f475e1/32.png) [@sebastien](https://meta.discourse.org/u/sebastien)
#### Post date: [November 21, 2018, 1:14am UTC](https://meta.discourse.org/t/maximum-backups-setting-ignored/102076/3 "2018-11-21T01:14:35Z")

</div>

Ok thx for the clarification!

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [December 21, 2018, 1:14am UTC](https://meta.discourse.org/t/maximum-backups-setting-ignored/102076/4 "2018-12-21T01:14:39Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
