aboutsummaryrefslogtreecommitdiff
path: root/handlers/mysql.in
diff options
context:
space:
mode:
authorintrigeri <intrigeri@boum.org>2012-06-15 20:40:27 +0200
committerintrigeri <intrigeri@boum.org>2012-06-15 20:40:27 +0200
commitedfe2adb85faef277283e65454ca533fde8f7e89 (patch)
tree545f1d278d6541fcba09091d196bd189ddc9d042 /handlers/mysql.in
parent13edaf0912f8b36d5035b5ebdbbc28fd0d498427 (diff)
parentaae966981e259b11afc1e01b68d4fa7c59cde646 (diff)
downloadbackupninja-edfe2adb85faef277283e65454ca533fde8f7e89.tar.gz
backupninja-edfe2adb85faef277283e65454ca533fde8f7e89.tar.bz2
Merge tag 'backupninja-1.0' into upstream
Releasing backupninja 1.0 Happy birthdays!
Diffstat (limited to 'handlers/mysql.in')
-rw-r--r--handlers/mysql.in13
1 files changed, 9 insertions, 4 deletions
diff --git a/handlers/mysql.in b/handlers/mysql.in
index 65deebb..6ade49e 100644
--- a/handlers/mysql.in
+++ b/handlers/mysql.in
@@ -256,10 +256,15 @@ then
for db in $databases
do
DUMP_BASE="$MYSQLDUMP $defaultsfile $sqldumpoptions"
- if [ "$db" = "information_schema" ] || [ "$db" = "performance_schema" ]
- then
- DUMP_BASE="${DUMP_BASE} --skip-lock-tables"
- fi
+
+ case "$db" in
+ information_schema)
+ DUMP_BASE="${DUMP_BASE} --skip-lock-tables"
+ ;;
+ performance_schema)
+ DUMP_BASE="${DUMP_BASE} --skip-lock-tables --skip-events"
+ ;;
+ esac
# Dumping structure and data
DUMP="$DUMP_BASE $ignore $db"