mysql handler with nodata parameter and no compression fails
Warning: bash: -c: line 0: syntax error near unexpected token `-r' bash: -c: line 0: `set -o pipefail ; ( /usr/bin/mysqldump --defaults-extra-file=/etc/mysql/debian.cnf --lock-tables --complete-insert --add-drop-table --quick --quote-names --ignore-table=local.cache local; /usr/bin/mysqldump --defaults-extra-file=/etc/mysql/debian.cnf --lock-tables --complete-insert --add-drop-table --quick --quote-names --no-data local cache ) -r '/backup/hourly/sqldump/local.sql'' Warning: Failed to dump mysql databases local
It fails obviously, as in the code we can see:
DUMP="( $DUMP; $DUMP_STRUCT )"
execstr="DUMP -r '
dumpdir/${db}.sql'"
and it absolutely does not have any sense. Unfortunately I do not know how to fix it, as "-r" overwrites the content and cannot be used two times in the row.
ubuntu 14.04, backupninja 1.0.1-2
(from redmine: created on 2015-01-03)
Edited by Guillaume Subiron