Project

General

Profile

Bug #8520

mysql handler with nodata parameter and no compression fails

Added by ser over 2 years ago. Updated over 1 year ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
mysql handler
Target version:
-
Start date:
01/03/2015
Due date:
% Done:

0%

QA Check:

Description

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

History

#1 Updated by intrigeri over 1 year ago

  • Category set to mysql handler
  • Priority changed from High to Normal

Also available in: Atom PDF