projects
/
outofuni
/
backup.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
412be1a
)
more verbose output in case of errors
author
hackbard
<hackbard@hackdaworld.org>
Thu, 24 Mar 2016 11:51:53 +0000
(12:51 +0100)
committer
hackbard
<hackbard@hackdaworld.org>
Thu, 24 Mar 2016 11:51:53 +0000
(12:51 +0100)
bin/backup
patch
|
blob
|
history
diff --git
a/bin/backup
b/bin/backup
index
cd96256
..
b29d2b7
100755
(executable)
--- 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=(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 ...
ret=$?
if [ "$ret" != "0" ]; then
log backup terminated before completion ...
+ log reason:
+ log $res
exit -50
fi
exit -50
fi