david/sshbackup
david
/
sshbackup
Archived
1
0
Fork 0

fixed output for rsync error

This commit is contained in:
david 2013-07-02 10:51:21 +02:00
parent 762f48102f
commit 4bda7f4fa3
1 changed files with 1 additions and 0 deletions

View File

@ -171,6 +171,7 @@ sshbackup()
#run rsync
$localcmd $cmdopt -e "ssh -q -i $sshkeyfile" --rsync-path="$remotecmd" $sourcepath $destpath/0
if [ $? -ne "0" ]; then
echo "an error occured while running backup for $sourcepath"
return 1
fi