glensc/bacula-backup-mysql — pull request #1 by norbini (2012-08-19 13:45:21+00:00)
Title: Support combinations of include_database and exclude_database when include_database uses mysqlhotcopy table regex.

...clude_database parameter into database name and optional table regex parts.

- This means keys for %dbs are always database names and fixes an issue where a combination of exclude_database and include_database lines would backup the same database twice, i.e.:
exclude_database someotherdatabase_causing_all_discoverable_databases_to_be_included
include_database specific_database./~table_regex/

With the config above, "specific_database" would have been copied entirely, and with again with restricted tables.
- %dbs hash values are undef when dump_type is "mysqldump", or when there is no table regex. Otherwise, they are the regex part of the mysqlhotcopy database parameter.
- Updated documentation and examples.