mirror of
https://github.com/cloudpanel-io/cloudpanel-ce.git
synced 2026-04-05 20:31:58 +02:00
Database backup retentionPeriod option is not working #167
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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/nullPossible Solution
I am afraid I don't have any.
Additional Context
No response