Tell the user if configuration of specified source does not exist

This commit is contained in:
Nico Schottelius 2005-12-08 10:57:36 +01:00
parent 2f4b97bf9c
commit 921c28e07d

View file

@ -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."