git-svn-id: http://code.autistici.org/svn/backupninja/trunk@629
758a04ac-41e6-0310-8a23-
8373a73cc35d
maildir:
. fix location of deleted_on file
. add missing destid_file options to ssh connections
maildir:
. fix location of deleted_on file
. add missing destid_file options to ssh connections
+ mysql:
+ . Options passed to mysqldump are now customizable with the new
+ sqldumpoptions configuration variable. Thanks to Chris Lamb for his
+ preliminary patch (Closes: #502966)
version 0.9.6 -- July 21, 2008
backupninja changes
version 0.9.6 -- July 21, 2008
backupninja changes
# make a backup using mysqldump. this creates text files with sql commands
# sufficient to recontruct the database.
#
# make a backup using mysqldump. this creates text files with sql commands
# sufficient to recontruct the database.
#
+# sqldumpoptions = <options>
+# (default = --lock-tables --complete-insert --add-drop-table --quick --quote-names)
+# arguments to pass to mysqldump
+#
# compress = < yes | no > (default = yes)
# if yes, compress the sqldump output.
#
# compress = < yes | no > (default = yes)
# if yes, compress the sqldump output.
#
+# sqldumpoptions = <options>
+# (default = --lock-tables --complete-insert --add-drop-table --quick --quote-names)
+# arguments to pass to mysqldump
+# sqldumpoptions = --add-drop-table --quick --quote-names
+
# compress = < yes | no > (default = yes)
# if yes, compress the sqldump output.
$compress
# compress = < yes | no > (default = yes)
# if yes, compress the sqldump output.
$compress
getconf dbhost localhost
getconf hotcopy no
getconf sqldump no
getconf dbhost localhost
getconf hotcopy no
getconf sqldump no
+getconf sqldumpoptions "--lock-tables --complete-insert --add-drop-table --quick --quote-names"
getconf compress yes
getconf vsname
getconf compress yes
getconf vsname
- DUMP_BASE="$MYSQLDUMP $defaultsfile --lock-tables --complete-insert --add-drop-table --quick --quote-names"
+ DUMP_BASE="$MYSQLDUMP $defaultsfile $sqldumpoptions"
# Dumping structure and data
DUMP="$DUMP_BASE $ignore $db"
# Dumping structure and data
DUMP="$DUMP_BASE $ignore $db"