Database backup retentionPeriod option is not working #167

Closed
opened 2026-04-05 20:25:38 +02:00 by MrUnknownDE · 0 comments
Owner

Originally created by @arnabJ on 11/12/2024

CloudPanel version(s) affected

2.4.2

Description

Issue: Database backups not getting deleted after retentionPeriod.

I have modified the CloudPanel cron to retain the DB backups for 3 days instead of 7 days. But this doesn't seems to work as it still retains the backup of 5 days old.

How to reproduce

I haven't setup any other backup option. It's just the local backup of the DB in /home//backups/databases/

The modified cron command is as follows:
15 3 * * * clp /usr/bin/bash -c "/usr/bin/clpctl db:backup --ignoreDatabases='db1,db2' --retentionPeriod=3" &> /dev/null

Possible Solution

I am afraid I don't have any.

Additional Context

No response

*Originally created by @arnabJ on 11/12/2024* ### CloudPanel version(s) affected 2.4.2 ### Description # Issue: Database backups not getting deleted after retentionPeriod. I have modified the CloudPanel cron to retain the DB backups for 3 days instead of 7 days. But this doesn't seems to work as it still retains the backup of 5 days old. ### How to reproduce I haven't setup any other backup option. It's just the local backup of the DB in /home/<user>/backups/databases/<app-name> The modified cron command is as follows: `15 3 * * * clp /usr/bin/bash -c "/usr/bin/clpctl db:backup --ignoreDatabases='db1,db2' --retentionPeriod=3" &> /dev/null` ### Possible Solution I am afraid I don't have any. ### Additional Context _No response_
Sign in to join this conversation.