Univention Bugzilla – Bug 45408
Limit number of backups in /var/univention-backup
Last modified: 2017-11-17 11:05:36 CET
The cronjob that runs the cleanup is too verbose and spammy. It generates a cronmail even on success, which is quite annoying. I guess this line here: > find "$backup_dir" -type f -mtime "+$max_age" -regex "$pattern" -delete should become something like: > find "$backup_dir" -type f -mtime "+$max_age" -regex "$pattern" -delete > /dev/null https://git.knut.univention.de/univention/ucs/blob/4.2-2/base/univention-lib/shell/backup.sh#L52) +++ This bug was initially created as a clone of Bug #38554 +++ It would be nice to be able to limit the max amount of days for the nightly backup scripts - for example with the help of UCR. Otherwise you have tons of unqiue backup variants underneath /var/univention-backup for the last 100xxx days.
univention-lib 9801a82e562793496a2fe7a0f6791fd80e6c1d09 Package: univention-lib Version: 6.0.9-17A~4.2.0.201709281346 Branch: ucs_4.2-0 Scope: errata4.2-2
Code review: OK YAML: OK Tests: OK
<http://errata.software-univention.de/ucs/4.2/192.html>
*** Bug 45727 has been marked as a duplicate of this bug. ***