Tell the user if configuration of specified source does not exist
This commit is contained in:
parent
2f4b97bf9c
commit
921c28e07d
1 changed files with 7 additions and 1 deletions
|
@ -159,6 +159,10 @@ while [ "$i" -lt "$no_shares" ]; do
|
||||||
#
|
#
|
||||||
# Standard configuration checks
|
# Standard configuration checks
|
||||||
#
|
#
|
||||||
|
if [ ! -e "$backup" ]; then
|
||||||
|
errecho "Source \"$name\" does not exist."
|
||||||
|
continue
|
||||||
|
fi
|
||||||
if [ ! -d "$backup" ]; then
|
if [ ! -d "$backup" ]; then
|
||||||
errecho "\"$name\" is not a cconfig-directory. Skipping."
|
errecho "\"$name\" is not a cconfig-directory. Skipping."
|
||||||
continue
|
continue
|
||||||
|
@ -266,6 +270,8 @@ while [ "$i" -lt "$no_shares" ]; do
|
||||||
errecho "rsync failed, backup most likely broken"
|
errecho "rsync failed, backup most likely broken"
|
||||||
continue
|
continue
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
echo "\=> Successfully finished backup of \"$name\"."
|
||||||
done
|
done
|
||||||
|
|
||||||
#
|
#
|
||||||
|
@ -276,4 +282,4 @@ if [ "$PARALLEL" = 1 ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
rm -f "$TMP"
|
rm -f "$TMP"
|
||||||
echo "\o> finished."
|
echo "\o> Finished complety backup process."
|
||||||
|
|
Loading…
Reference in a new issue