Make mysql backup crons quiet.
* modules/mysql_backup/manifests/backup.pp: Ignore the mysql.event table when dumping all databases so that cron jobs are silent and do not output a warning that this table was not dumped. Change-Id: I5f7065d4184ca2ecd997bfc3d1beefee47c12acb
This commit is contained in:
parent
91774b0d10
commit
36b3385e61
@ -28,7 +28,7 @@ define mysql_backup::backup (
|
|||||||
|
|
||||||
cron { "${name}-backup":
|
cron { "${name}-backup":
|
||||||
ensure => present,
|
ensure => present,
|
||||||
command => "/usr/bin/mysqldump --defaults-file=${defaults_file} --opt --all-databases | gzip -9 > ${dest_dir}/${name}.sql.gz",
|
command => "/usr/bin/mysqldump --defaults-file=${defaults_file} --opt --ignore-table mysql.event --all-databases | gzip -9 > ${dest_dir}/${name}.sql.gz",
|
||||||
minute => $minute,
|
minute => $minute,
|
||||||
hour => $hour,
|
hour => $hour,
|
||||||
weekday => $day,
|
weekday => $day,
|
||||||
|
Loading…
Reference in New Issue
Block a user