aboutsummaryrefslogtreecommitdiff
path: root/handlers/mysql.in
diff options
context:
space:
mode:
authorMicah Anderson <micah@riseup.net>2012-06-11 10:02:34 -0400
committerMicah Anderson <micah@riseup.net>2012-06-11 10:02:34 -0400
commitf8e69f738e6887fcc3f2eaf203c123a10534a0c0 (patch)
tree7c2fd7637c2a36c3d312df78a760c89318066881 /handlers/mysql.in
parent79916c4c20af65063f280641f48d1f3c64a63171 (diff)
parent7af82be3ecf950fd19190d06fb9ad0f3f0aca97a (diff)
downloadbackupninja-f8e69f738e6887fcc3f2eaf203c123a10534a0c0.tar.gz
backupninja-f8e69f738e6887fcc3f2eaf203c123a10534a0c0.tar.bz2
Merge branch 'master' of labs.riseup.net:backupninja
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"