Skip to content
Snippets Groups Projects
Commit 2cfcdd63 authored by intrigeri's avatar intrigeri
Browse files

mysql: new sqldumpoptions config variable (Closes: #502966)

parent 4506202e
No related branches found
No related tags found
No related merge requests found
...@@ -6,6 +6,10 @@ version 0.9.7 -- UNRELEASED ...@@ -6,6 +6,10 @@ version 0.9.7 -- UNRELEASED
maildir: maildir:
. fix location of deleted_on file . fix location of deleted_on file
. add missing destid_file options to ssh connections . 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 version 0.9.6 -- July 21, 2008
backupninja changes backupninja changes
......
...@@ -73,6 +73,10 @@ compress = yes ...@@ -73,6 +73,10 @@ compress = yes
# make a backup using mysqldump. this creates text files with sql commands # make a backup using mysqldump. this creates text files with sql commands
# sufficient to recontruct the database. # 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) # compress = < yes | no > (default = yes)
# if yes, compress the sqldump output. # if yes, compress the sqldump output.
# #
......
...@@ -94,6 +94,11 @@ $hotcopy ...@@ -94,6 +94,11 @@ $hotcopy
# #
$sqldump $sqldump
# 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) # compress = < yes | no > (default = yes)
# if yes, compress the sqldump output. # if yes, compress the sqldump output.
$compress $compress
......
...@@ -10,6 +10,7 @@ getconf nodata ...@@ -10,6 +10,7 @@ getconf nodata
getconf dbhost localhost getconf dbhost localhost
getconf hotcopy no getconf hotcopy no
getconf sqldump no getconf sqldump no
getconf sqldumpoptions "--lock-tables --complete-insert --add-drop-table --quick --quote-names"
getconf compress yes getconf compress yes
getconf vsname getconf vsname
...@@ -245,7 +246,7 @@ then ...@@ -245,7 +246,7 @@ then
for db in $databases for db in $databases
do do
DUMP_BASE="$MYSQLDUMP $defaultsfile --lock-tables --complete-insert --add-drop-table --quick --quote-names" DUMP_BASE="$MYSQLDUMP $defaultsfile $sqldumpoptions"
# Dumping structure and data # Dumping structure and data
DUMP="$DUMP_BASE $ignore $db" DUMP="$DUMP_BASE $ignore $db"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment