From 36b3385e616e430a54462d883c4761c9c6d9f3d4 Mon Sep 17 00:00:00 2001 From: Clark Boylan Date: Mon, 19 Aug 2013 17:30:00 -0700 Subject: [PATCH] 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 --- modules/mysql_backup/manifests/backup.pp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/mysql_backup/manifests/backup.pp b/modules/mysql_backup/manifests/backup.pp index 3babce4615..7b3167930d 100644 --- a/modules/mysql_backup/manifests/backup.pp +++ b/modules/mysql_backup/manifests/backup.pp @@ -28,7 +28,7 @@ define mysql_backup::backup ( cron { "${name}-backup": 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, hour => $hour, weekday => $day,