From: hackbard Date: Thu, 24 Mar 2016 11:54:03 +0000 (+0100) Subject: Merge branch 'master' of hackdaworld.org:/chroot/git/outofuni/backup X-Git-Url: https://www.hackdaworld.org/gitweb/?p=outofuni%2Fbackup.git;a=commitdiff_plain;h=a5c86c1c5c85b131e3aa980bc5c43aa75d75150b;hp=75ff16bfeeaeda96ce4daa2aae20d4dab44840a6 Merge branch 'master' of hackdaworld.org:/chroot/git/outofuni/backup --- diff --git a/bin/backup b/bin/backup index cd96256..b29d2b7 100755 --- a/bin/backup +++ b/bin/backup @@ -161,11 +161,13 @@ if [ ! -f $backupdir/.$today ]; then rsync=(rsync -aR -e "ssh -c $ciph" $rcomp --delete) rsync+=($rbw $user@$remote$rsrc $cbd) fi - "${rsync[@]}" + res=`"${rsync[@]}" 2>&1` ret=$? if [ "$ret" != "0" ]; then log backup terminated before completion ... + log reason: + log $res exit -50 fi