# Local Backups Not Deleted According to Retention Settings (Possibly a Bug)

**URL:** <https://forum.hestiacp.com/t/local-backups-not-deleted-according-to-retention-settings-possibly-a-bug/19269>\
**Category:** Backups\
**Created:** [June 15, 2025, 11:00am UTC](https://forum.hestiacp.com/t/local-backups-not-deleted-according-to-retention-settings-possibly-a-bug/19269 "2025-06-15T11:00:35Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Miroslav](https://forum.hestiacp.com/letter_avatar_proxy/v4/letter/m/a587f6/32.png) [@Miroslav](https://forum.hestiacp.com/u/Miroslav)\
**Post date:** [June 15, 2025, 11:00am UTC](https://forum.hestiacp.com/t/local-backups-not-deleted-according-to-retention-settings-possibly-a-bug/19269/1 "2025-06-15T11:00:36Z")

</div>

Hello, I have noticed a possible issue with HestiaCP related to backup retention. In the `default` package settings, I have configured the system to keep 10 backups (see attached screenshots), with local backups enabled and stored in the `/backup` directory using `zstd` compression at level 11. While the Hestia web interface correctly shows only the last 10 backups, the actual `/backup` folder on the filesystem continues to accumulate all old backups — for example, after 30 days, there are still 30 backup files present. It appears that old backups are not automatically removed according to the retention settings. I would like to ask whether this is the intended behavior or if it is a bug. Should I implement a manual script to clean up older backups, or is HestiaCP supposed to handle this automatically? Thank you for clarification.

 ![Screenshot from 2025-06-15 09-28-37](https://forum.hestiacp.com/uploads/default/original/2X/5/51de73de6fd817b0f59a9289cf8b89305be88742.png)  
 ![Screenshot from 2025-06-15 09-29-31](https://forum.hestiacp.com/uploads/default/original/2X/e/eaeb8618f02b7eb8e72f792122e6fad876d3158b.png)

PRETTY\_NAME=“Debian GNU/Linux 12 (bookworm)”  
NAME=“Debian GNU/Linux”  
VERSION\_ID=“12”  
VERSION=“12 (bookworm)”  
VERSION\_CODENAME=bookworm  
ID=debian

Thanks
