improve logging

This commit is contained in:
2017-01-18 01:00:30 +01:00
parent 7629347ac6
commit fa8e554bbc

View File

@@ -30,7 +30,7 @@ while read line; do
RUSER=$(echo "$RHOST" | cut -d"@" -f1) RUSER=$(echo "$RHOST" | cut -d"@" -f1)
ALLRDIR=$(echo "$line" | cut -d";" -f2 | trim) ALLRDIR=$(echo "$line" | cut -d";" -f2 | trim)
logecho "Starting backup of ${RHOST}" logecho "${RHOST}: Starting backups"
NORDIR=$(echo $ALLRDIR | grep -o "|" | wc -l) NORDIR=$(echo $ALLRDIR | grep -o "|" | wc -l)
NORDIR=$[$NORDIR + 1] NORDIR=$[$NORDIR + 1]
@@ -80,3 +80,5 @@ while read line; do
done done
done < "$HOSTS" done < "$HOSTS"
logecho "Finished all operations."