From 3cce79a0a8a15cdf593b626edf1161543c23b6d2 Mon Sep 17 00:00:00 2001 From: Jack-Benny Persson Date: Sun, 9 Jun 2013 17:40:08 +0200 Subject: [PATCH] Added support for the --events option --- automysqlbackup.sh | 10 +++++++++- example.conf | 3 +++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/automysqlbackup.sh b/automysqlbackup.sh index bf3f9fb..4347332 100755 --- a/automysqlbackup.sh +++ b/automysqlbackup.sh @@ -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 diff --git a/example.conf b/example.conf index 05a0f18..0edadfb 100644 --- a/example.conf +++ b/example.conf @@ -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