Bug 45408 - Limit number of backups in /var/univention-backup
Limit number of backups in /var/univention-backup
Product: UCS
Classification: Unclassified
Component: General
UCS 4.2
Other Linux
: P5 normal (vote)
: UCS 4.2-2-errata
Assigned To: Felix Botner
Stefan Gohmann
: 45727 (view as bug list)
Depends on: 38554
  Show dependency treegraph
Reported: 2017-09-18 10:58 CEST by Michael Grandjean
Modified: 2017-11-17 11:05 CET (History)
11 users (show)

See Also:
What kind of report is it?: Bug Report
What type of bug is this?: 1: Cosmetic issue or missing function but workaround exists
Who will be affected by this bug?: 5: Will affect all installed domains
How will those affected feel about the bug?: 2: A Pain – users won’t like this once they notice it
User Pain: 0.057
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Ticket number:
Bug group (optional):
Max CVSS v3 score:


Note You need to log in before you can comment on or make changes to this bug.
Description Michael Grandjean univentionstaff 2017-09-18 10:58:30 CEST
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


+++ 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.
Comment 1 Felix Botner univentionstaff 2017-09-28 13:50:11 CEST
univention-lib 9801a82e562793496a2fe7a0f6791fd80e6c1d09

Package: univention-lib
Version: 6.0.9-17A~
Branch: ucs_4.2-0
Scope: errata4.2-2
Comment 2 Stefan Gohmann univentionstaff 2017-10-02 16:15:48 CEST
Code review: OK


Tests: OK
Comment 3 Arvid Requate univentionstaff 2017-10-10 15:38:49 CEST
Comment 4 Michel Smidt univentionstaff 2017-11-17 11:05:36 CET
*** Bug 45727 has been marked as a duplicate of this bug. ***