Added support for the --events option

This commit is contained in:
Jack-Benny Persson 2013-06-09 17:40:08 +02:00
parent a1d1f9a26c
commit 3cce79a0a8
2 changed files with 12 additions and 1 deletions

View File

@ -94,6 +94,8 @@ fi
# Change Log
#=====================================================================
#
# VER 2.5.1-02 - (2013-06-09)
# - Added support for events option (by Jack-Benny Persson)
# VER 2.5.1-01 - (2010-07-06)
# - Fixed pathname bug item #3025849 (by Johannes Kolter)
# VER 2.5.1 - (2010-07-04)
@ -310,8 +312,14 @@ if [ "${COMMCOMP}" = "yes" ];
OPT="${OPT} --compress"
fi
# Add --events mysqldump option to ${OPT}
if [ "${EVENTS}" = "yes" ];
then
OPT="${OPT} --events"
fi
# Add --max_allowed_packet=... mysqldump option to ${OPT}
if [ "${MAX_ALLOWED_PACKET}" ];
if [ "${MAX_ALLOWED_PACKET}" ]
then
OPT="${OPT} --max_allowed_packet=${MAX_ALLOWED_PACKET}"
fi

View File

@ -163,6 +163,9 @@ COMP=gzip
# Compress communications between backup server and MySQL server?
COMMCOMP=no
# Include events table in backup, new default in MySQL is to skip it
EVENTS=no
# Additionally keep a copy of the most recent backup in a seperate directory.
LATEST=no