From 0109e1fa3c0a41fea5f900a9513fad579a267cbd Mon Sep 17 00:00:00 2001 From: Louwrentius Date: Sun, 7 Mar 2010 19:48:00 +0000 Subject: [PATCH] Backup.. --- ppss | 6 +++--- ppss-test.sh | 1 + test-special.input | 1 + 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/ppss b/ppss index 161c6e1..309b140 100755 --- a/ppss +++ b/ppss @@ -1270,11 +1270,11 @@ upload_item () { DIR_ESCAPED="$ITEM_ESCAPED" exec_cmd "mkdir -p $DIR_ESCAPED" - scp -q $SSH_OPTS $SSH_KEY "$OUTPUT_ITEM"/* $USER@$SSH_SERVER:"$DIR_ESCAPED" 2>/dev/null + scp -q $SSH_OPTS $SSH_KEY "$OUTPUT_ITEM"/* $USER@$SSH_SERVER:"$DIR_ESCAPED" ERROR="$?" if [ ! "$ERROR" == "0" ] then - log ERROR "Uploading of $OUTPUT_ITEM_ESCAPED via SCP failed." + log ERROR "Uploading of $OUTPUT_ITEM via SCP failed." else log DEBUG "Upload of item $OUTPUT_ITEM success" rm -rf ./"$OUTPUT_ITEM" @@ -1684,7 +1684,7 @@ commando () { # If part of a cluster, remove the downloaded item after # it has been processed and uploaded as not to fill up disk space. # - if [ "$TRANSFER_TO_SLAVE" == "1" ] && [ "1" == "2" ] + if [ "$TRANSFER_TO_SLAVE" == "1" ] then if [ -e "$ITEM" ] then diff --git a/ppss-test.sh b/ppss-test.sh index c3c6b4d..9682f50 100755 --- a/ppss-test.sh +++ b/ppss-test.sh @@ -5,6 +5,7 @@ VERSION="2.57b1" TMP_DIR="ppss" PPSS=./ppss PPSS_DIR=ppss_dir +export PPSSDEBUG=1 cleanup () { diff --git a/test-special.input b/test-special.input index 92946db..62caccb 100644 --- a/test-special.input +++ b/test-special.input @@ -1,6 +1,7 @@ \'file-!@#$%^&*()_ +=-0987654321~\' \'file-/\<>?:;'{}[]\' file-/\/\:\/!@#$%^&*()_+=-0987654321~ +file-42>424>424<2424>424?24<24>24 file-/\<>?:;'{}[] http://www.google.nl ftp://storage.nl