Univention Bugzilla – Bug 35085
univention-samba4-backup has unused parameters
Last modified: 2014-09-11 15:01:33 CEST
The script univention-samba4-backup is called as followed, from a cron job: 0 3 * * * root /usr/sbin/univention-samba4-backup In the script itself are some parameter declared: Options: --help|-h display this message --where|-w <DIR> backup directory --from-where|-f <DIR> samba provision directory --days|-d <INT> retention period in days But the template for writing the Cron Job is ignoring those parameters: /etc/univention/templates/files/etc/cron.d/univention-samba4-backup print "%s root /usr/sbin/univention-samba4-backup" % samba4_backup_cron It would be usefull to map those parameters with UCR variables. For example, we should be able to configure the retention period but don't want to modify the template, so not risking any incompatibility with later upgrades.
Thanks, i added the UCR variable samba4/backup/cron/options to configure options for univention-samba4-backup. -> ucr set samba4/backup/cron/options="--days 88" Setting samba4/backup/cron/options File: /etc/cron.d/univention-samba4-backup Multifile: /etc/samba/smb.conf -> more /etc/cron.d/univention-samba4-backup ... SHELL=/bin/sh PATH=/sbin:/bin:/usr/sbin:/usr/bin ... 0 3 * * * root /usr/sbin/univention-samba4-backup --days 88 YAML: 2014-06-17-univention-samba4.yaml
Verified.
http://errata.univention.de/ucs/3.2/142.html