From 31341319758ad2e8ff5a6b5a8523421e03cc589c Mon Sep 17 00:00:00 2001 From: deajan Date: Fri, 2 Sep 2016 20:32:17 +0200 Subject: [PATCH] Made tee work with push command --- dev/n_obackup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dev/n_obackup.sh b/dev/n_obackup.sh index 2d6dc60..546f816 100755 --- a/dev/n_obackup.sh +++ b/dev/n_obackup.sh @@ -854,7 +854,7 @@ function _BackupDatabaseLocalToRemote { fi local drySqlCmd="mysqldump -u $SQL_USER $exportOptions --databases $database $COMPRESSION_PROGRAM $COMPRESSION_OPTIONS $encryptOptions > /dev/null 2> $RUN_DIR/$PROGRAM.${FUNCNAME[0]}.error.$SCRIPT_PID" - local sqlCmd="mysqldump -u $SQL_USER $exportOptions --databases $database $COMPRESSION_PROGRAM $COMPRESSION_OPTIONS $encryptOptions | $SSH_CMD '$COMMAND_SUDO tee \"$SQL_STORAGE/$database.sql$COMPRESSION_EXTENSION$encryptExtension\" > /dev/null' 2> $RUN_DIR/$PROGRAM.${FUNCNAME[0]}.error.$SCRIPT_PID" + local sqlCmd="mysqldump -u $SQL_USER $exportOptions --databases $database $COMPRESSION_PROGRAM $COMPRESSION_OPTIONS $encryptOptions | $SSH_CMD '$COMMAND_SUDO tee > \"$SQL_STORAGE/$database.sql$COMPRESSION_EXTENSION$encryptExtension\" > /dev/null' 2> $RUN_DIR/$PROGRAM.${FUNCNAME[0]}.error.$SCRIPT_PID" if [ $_DRYRUN == false ]; then Logger "cmd: $sqlCmd" "DEBUG"