From 921c28e07d2ea4d6bb7337dd25f61889bda6e713 Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Thu, 8 Dec 2005 10:57:36 +0100 Subject: [PATCH] Tell the user if configuration of specified source does not exist --- ccollect.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/ccollect.sh b/ccollect.sh index 74a3e97..cc8b321 100755 --- a/ccollect.sh +++ b/ccollect.sh @@ -159,6 +159,10 @@ while [ "$i" -lt "$no_shares" ]; do # # Standard configuration checks # + if [ ! -e "$backup" ]; then + errecho "Source \"$name\" does not exist." + continue + fi if [ ! -d "$backup" ]; then errecho "\"$name\" is not a cconfig-directory. Skipping." continue @@ -266,6 +270,8 @@ while [ "$i" -lt "$no_shares" ]; do errecho "rsync failed, backup most likely broken" continue fi + + echo "\=> Successfully finished backup of \"$name\"." done # @@ -276,4 +282,4 @@ if [ "$PARALLEL" = 1 ]; then fi rm -f "$TMP" -echo "\o> finished." +echo "\o> Finished complety backup process."