1
0
mirror of https://github.com/deajan/obackup.git synced 2026-02-06 07:05:14 +01:00

Added more mysqldump flexibility

This commit is contained in:
deajan
2016-08-31 11:15:12 +02:00
parent fbdd12dc72
commit 0127da6ac3
2 changed files with 7 additions and 3 deletions

View File

@@ -800,9 +800,9 @@ function BackupDatabase {
# Hack to prevent warning on table mysql.events, some mysql versions don't support --skip-events, prefer using --ignore-table
if [ "$database" == "mysql" ]; then
mysql_options='--skip-lock-tables --single-transaction --ignore-table=mysql.event'
mysql_options="$MYSQLDUMP_OPTIONS --ignore-table=mysql.event"
else
mysql_options='--skip-lock-tables --single-transaction'
mysql_options="$MYSQLDUMP_OPTIONS"
fi
if [ "$BACKUP_TYPE" == "local" ]; then