Frequently customers notice strange behaviour which is caused by no more disk space available. Besides of logfiles customers are usually NOT aware of our build-in backup procedure and therefore loads of unneeded backup data is located at /var/univention-backup. I never experienced a customer wanting to roll back a full year or more! Customers not monitoring the free space will likely fail at some stage as replication will suddenly fail and other errors. They call support then. In order to prevent the outdated backups to fill up disk space we should *by default* limit the backup files to 365 days. So the variable should be set even on all already installed hosts (when not set otherwise). backup/clean/max_age=365
We hit this problem now on our SUSE/openSUSE deployment after 5-6 months of operation filling 40GB. Here is a simple patch: --- /usr/share/univention-lib/backup.sh.orig 2020-07-07 17:00:15.000000000 +0200 +++ /usr/share/univention-lib/backup.sh 2020-10-19 11:33:32.967810718 +0200 @@ -44,5 +44,5 @@ local backup_dir="/var/univention-backup" local pattern="$backup_dir/$arg_pattern" - local max_age="${arg_max_age:-$backup_clean_max_age}" + local max_age="${arg_max_age:-${backup_clean_max_age:-365}}" if [ -n "$max_age" ]; then
univention-lib univention-ldap (Bug #51765: setting max_age ucr variable)
FAIL - yaml univention-lib.yaml - maybe something like "Evaluation of ucr vaiables in the function clean_old_backups has been fixed univention-ldap.yaml - please specify the name of the ucr varibale (backup/clean/max/age) FAIL - Merge Request increase the version in debian/changelog for univention-lib and why are lines removed from both debian/changelog files? OK - backup/clean/max/age is 365 for new installations OK - no default for updates
OK - MR OK - yaml
The name of the variable is backup/clean/max_age not backup/clean/max/age
git:0513967b425030b89b16b43ff581931eed988f60 changed two packages without changing debian/changelog.
changed ucr variable name max_age and updated debian/changelog
please also update the MR (https://git.knut.univention.de/univention/ucs/-/merge_requests/25/)
Bug Fixed in MR https://git.knut.univention.de/univention/ucs/-/merge_requests/31
OK
<https://errata.software-univention.de/#/?erratum=4.4x812> <https://errata.software-univention.de/#/?erratum=4.4x814>
FYI: Typo in advisory: "ucr vaiables"