I would like to be able to add extra arguments to mysqldump when using drush sql dump. This feature used to exist but has recently been removed. The change is a one-liner: Add a call to drush_get_option('extra') in the $extra string on line 180 of commands/sql/sql.drush.inc.

Comments

Brian@brianpuccio.net’s picture

Just seeing this now, a patch has been proposed to #519110: provide an option for drush sql load to copy a single table instead of the entire database and to #518184: Allow Users To Set myqldump Arguments In drushrc.php (for drush sql dump), maybe this more generic approach is preferred by the developers where the exact parameters of the mysqldump have certain defaults, but can be override via extra arguments. I'd be glad to put together a proper patch for this (along with updated documentation) if that's what the maintainers would prefer.

moshe weitzman’s picture