Solved extra_mysqldump_options not parse correctly when have format extra_mysqldump_options=--OPTION1=value1

Ohm J

Verified User
Joined
Aug 16, 2019
Messages
1,467
Admin Backup is fine with this option. But inside custombuild doesn't work with mysql_backup.

example: I set "extra_mysqldump_options" inside directadmin.conf
extra_mysqldump_options=--ignore-table-data=mydatabase.mytable1

And run mysql_backup
Code:
./build mysql_backup

Result:
Illegal use of option --ignore-table-data=<database>.<table>

so let find more how custombuild grab "extra_mysqldump_options" option

inside build script around line "9273"
Code:
/usr/local/directadmin/directadmin c | grep -m1 '^extra_mysqldump_options=' | cut -d'=' -f2
Result:
--ignore-table-data


then let change some command line options to get correct value.
/usr/local/directadmin/directadmin c | grep -m1 '^extra_mysqldump_options=' | cut -d'=' -f 2-
Result
--ignore-table-data=mydatabase.mytable1
 
Last edited:
@smtalk
could you looking this issued. it problem when update/rebuild mysql that with do backup first before processing update mysql.
 
Back
Top