diff --git a/manifests/backup.pp b/manifests/backup.pp index b5107ea..5f6f7c8 100644 --- a/manifests/backup.pp +++ b/manifests/backup.pp @@ -37,7 +37,7 @@ define mysql_backup::backup ( cron { "${name}-backup": ensure => present, - command => "/usr/bin/mysqldump --defaults-file=${defaults_file} --opt --ignore-table mysql.event --all-databases | gzip -9 > ${dest_dir}/${name}.sql.gz", + command => "/usr/bin/mysqldump --defaults-file=${defaults_file} --opt --ignore-table mysql.event --all-databases --single-transaction | gzip -9 > ${dest_dir}/${name}.sql.gz", minute => $minute, hour => $hour, weekday => $day, diff --git a/manifests/backup_remote.pp b/manifests/backup_remote.pp index 839b371..d0cf414 100644 --- a/manifests/backup_remote.pp +++ b/manifests/backup_remote.pp @@ -47,7 +47,7 @@ define mysql_backup::backup_remote ( cron { "${name}-backup": ensure => present, - command => "/usr/bin/mysqldump --defaults-file=${defaults_file} --opt --ignore-table mysql.event --all-databases | gzip -9 > ${dest_dir}/${name}.sql.gz", + command => "/usr/bin/mysqldump --defaults-file=${defaults_file} --opt --ignore-table mysql.event --all-databases --single-transaction | gzip -9 > ${dest_dir}/${name}.sql.gz", minute => $minute, hour => $hour, weekday => $day,