diff --git a/ccollect.sh b/ccollect.sh
index f3322f9..e001af5 100755
--- a/ccollect.sh
+++ b/ccollect.sh
@@ -193,6 +193,7 @@ while [ "$i" -lt "$no_shares" ]; do
c_dest="$backup/destination"
c_exclude="$backup/exclude"
c_verbose="$backup/verbose"
+ c_vverbose="$backup/very_verbose"
c_rsync_extra="$backup/rsync_options"
echo "Beginning to backup this source ..."
@@ -227,6 +228,7 @@ while [ "$i" -lt "$no_shares" ]; do
# standard rsync options
#
VERBOSE=""
+ VVERBOSE=""
EXCLUDE=""
RSYNC_EXTRA=""
@@ -259,11 +261,16 @@ while [ "$i" -lt "$no_shares" ]; do
RSYNC_EXTRA="$(cat "$c_rsync_extra")"
fi
- # verbose
+ # verbosity for rsync
if [ -f "$c_verbose" ]; then
VERBOSE="-v"
fi
+ # verbosity for cp
+ if [ -f "$c_vverbose" ]; then
+ VVERBOSE="-v"
+ fi
+
#
# check if maximum number of backups is reached, if so remove
#
@@ -281,7 +288,7 @@ while [ "$i" -lt "$no_shares" ]; do
while read to_remove; do
dir="$to_remove"
echo "Removing $dir ..."
- rm -rf "$dir"
+ rm $VVERBOSE -rf "$dir"
done < "$TMP"
fi
@@ -300,10 +307,10 @@ while [ "$i" -lt "$no_shares" ]; do
# only copy if a directory exists
if [ "$last_dir" ]; then
echo "Hard linking..."
- cp -al $VERBOSE "$last_dir" "$destination_dir"
+ cp -al $VVERBOSE "$last_dir" "$destination_dir"
else
echo "Creating $destination_dir"
- mkdir "$destination_dir"
+ mkdir $VVERBOSE "$destination_dir"
fi
if [ $? -ne 0 ]; then
diff --git a/doc/ccollect.html b/doc/ccollect.html
index bc6cee6..2028ab7 100644
--- a/doc/ccollect.html
+++ b/doc/ccollect.html
@@ -263,7 +263,7 @@ div.exampleblock-content {
<nico-linux-ccollect__@__schottelius.org>
version 0.2.2,
-for ccollect 0.2, Initial Version 2005-01-13
+for ccollect 0.2, Initial Version from 2005-01-13
Let us assume, that one backup failed (connection broke or hard disk had some failures). So we've one backup in our history, which is incomplete.
The next time you use ccollect, it will transfer the missing files
+No. ccollect passes your source definition directly to rsync. It +does not try to analyze it. So it actually does not know if a source +comes from local harddisk or from a remote server. And it does not want +to. When you backup from the local harddisk (which is perhaps not +even a good idea when thinking of security) add the destination +to source/exclude. (Daniel Aubry reported this problem)