From c36f1156c765ae26c451cc486e01da1c96c1932f Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Thu, 8 Dec 2005 10:30:05 +0100 Subject: [PATCH] Lets do it --- ccollect.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ccollect.sh b/ccollect.sh index 9542dc2..46bf5a8 100755 --- a/ccollect.sh +++ b/ccollect.sh @@ -226,7 +226,7 @@ while [ "$i" -lt "$no_shares" ]; do while read to_remove; do dir="$to_remove" echo "|-> Removing $dir ..." - echo rm -rf "$dir" + rm -rf "$dir" done < "$TMP" fi @@ -241,7 +241,7 @@ while [ "$i" -lt "$no_shares" ]; do # only copy if a directory exists if [ "$last_dir" ]; then - echo cp -al "$last_dir" "$destination_dir" + cp -al "$last_dir" "$destination_dir" else mkdir "$destination_dir" fi @@ -256,8 +256,8 @@ while [ "$i" -lt "$no_shares" ]; do # options stolen shameless from rsnapshot # - echo rsync -a --delete --numeric-ids --relative --delete-excluded \ - $EXCLUDE $VERBOSE $EXCLUDE "$source" "$destination_dir" + rsync -a --delete --numeric-ids --relative --delete-excluded \ + $EXCLUDE $VERBOSE $EXCLUDE "$source" "$destination_dir" if [ $? -ne 0 ]; then errecho "rsync failed, backup most likely broken"