Backup retention

I setup backup for every day. Is there a way inside CP to configure backup retention?
If backup are not deleted the backup disk will be fullfilled.

1 Like

i have the same question. do you found any solution?

No, still same problem in 2023.
I set 7 backup retention but old backups are not deleted.

1 Like

I set up a cronjob to a script containing this:

echo Emptying backups older then 14 days...

find /home/backups -type f -mtime +14
find /home/backups -type f -mtime +14 -delete

echo Deleting empty folders...
find /home/backups/ -maxdepth 1 -type d -empty
find /home/backups/ -maxdepth 1 -type d -empty -delete

echo Old backups deleted.

This can probably be improved, but it works and tells me exactly what it does.

1 Like

Thanks for that cron script. I don’t hold much hope Backup Retention will be properly added and working anytime soon.

1 Like