From 75f256b8e7ebb53433ca364e36fed29919fe2569 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beno=C3=AEt=20S=C3=89RIE?= Date: Fri, 10 Jan 2014 11:07:05 +0100 Subject: [PATCH] Added --events for mysqldump. --- zzz_evobackup | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/zzz_evobackup b/zzz_evobackup index 18ef68b..d6e20c6 100644 --- a/zzz_evobackup +++ b/zzz_evobackup @@ -39,24 +39,24 @@ mkdir -p -m 700 /home/backup # Dump MySQL # mysqldump --defaults-extra-file=/etc/mysql/debian.cnf \ -# --opt --all-databases --force | gzip --best > /home/backup/mysql.bak.gz +# --opt --all-databases --force --events | gzip --best > /home/backup/mysql.bak.gz # Dump des BDD en .sql.gz # mkdir -p /home/mysqldump/ # for i in $(mysql -e 'show databases' -s --skip-column-names | egrep -v "^(Database|information_schema)"); do -# mysqldump --force $i | gzip --best > /home/mysqldump/${i}.sql.gz +# mysqldump --force --events $i | gzip --best > /home/mysqldump/${i}.sql.gz # done # for i in $(echo SHOW DATABASES | mysql | egrep -v "^(Database|information_schema)" ); \ # do mkdir -p /home/mysqldump/$i ; chown -R mysql /home/mysqldump ; \ -# mysqldump --defaults-extra-file=/etc/mysql/debian.cnf --force -Q --opt -T \ +# mysqldump --defaults-extra-file=/etc/mysql/debian.cnf --force -Q --opt --events --skip-comments -T \ # /home/mysqldump/$i $i; done # Dump par base # mkdir -p -m 700 /home/mysqldump/BASE # chown -R mysql /home/mysqldump/ # mysqldump --defaults-extra-file=/etc/mysql/debian.cnf --force -Q \ -# --opt -T /home/mysqldump/BASE BASE +# --opt --events --skip-comments -T /home/mysqldump/BASE BASE # mkdir -p /home/mysqlhotcopy/ # mysqlhotcopy BASE /home/mysqlhotcopy/