From cc275b5c5c11906b96a1f1be4c99323761254dfe Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Wed, 7 Dec 2005 17:44:44 +0100 Subject: [PATCH] Added excludes --- ccollect.sh | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/ccollect.sh b/ccollect.sh index 49a00f4..1bbc570 100755 --- a/ccollect.sh +++ b/ccollect.sh @@ -204,9 +204,6 @@ while [ "$i" -lt "$no_shares" ]; do fi if [ -f "$c_exclude" ]; then - errecho "Destination $c_dest does not link to a directory. Skipping." - continue - while read tmp; do EXCLUDE="$EXCLUDE --exclude \"$tmp\"" done < "$c_exclude" @@ -227,7 +224,7 @@ while [ "$i" -lt "$no_shares" ]; do # # the rsync part # - echo rsync --delete $VERBOSE $EXCLUDE $source $c_dest + echo rsync -a --delete $EXCLUDE $VERBOSE $EXCLUDE $source $c_dest done #