diff --git a/doc/ccollect.text b/doc/ccollect.text index 4f60239..5f22118 100644 --- a/doc/ccollect.text +++ b/doc/ccollect.text @@ -1,7 +1,7 @@ ccollect - Installing, Configuring and Using ============================================ Nico Schottelius -0.3.3, for ccollect 0.3.2-0.3.3, Initial Version from 2006-01-13 +0.4.0, for ccollect 0.4, Initial Version from 2006-01-13 :Author Initials: NS (pseudo) incremental backup @@ -50,6 +50,13 @@ versions: - ccollect will now exit, when preexec returns non-zero - ccollect now reports when postexec returns non-zero +You can convert your old configuration directory using +`config-pre-0.4-to-0.4.sh`, which can be found in the *tools/* +subdirectory: + +-------------------------------------------------------------------------------- +[10:05] hydrogenium:ccollect-0.4# ./tools/config-pre-0.4-to-0.4.sh /etc/ccollect +-------------------------------------------------------------------------------- Requirements diff --git a/tools/config-pre-0.4-to-0.4.sh b/tools/config-pre-0.4-to-0.4.sh index f00ff79..9a7efd8 100755 --- a/tools/config-pre-0.4-to-0.4.sh +++ b/tools/config-pre-0.4-to-0.4.sh @@ -11,8 +11,20 @@ if [ $# -ne 1 ]; then exit 23 fi +tmp=$(mktemp) +tmp2=$(mktemp) script=$(echo $0 | sed 's/\.sh/.sub.sh/') -find "$1" -type d -name intervalls -exec "$script" {} \; +find "$1" -type d -name intervalls > "$tmp" +# +# reverse found data, so deepest directories are renamed first +# +tac "$tmp" > "$tmp2" +while read intervals + do + "$script" "$intervals" +done < "$tmp2" + +rm -f "$tmp" "$tmp2" diff --git a/tools/config-pre-0.4-to-0.4.sub.sh b/tools/config-pre-0.4-to-0.4.sub.sh index bf76aed..5b17a72 100755 --- a/tools/config-pre-0.4-to-0.4.sub.sh +++ b/tools/config-pre-0.4-to-0.4.sub.sh @@ -6,8 +6,11 @@ master=$(echo $0 | sed 's/\.sub//') if [ $# -ne 1 ]; then - echo "$0: DO NOT CALL ME DIRECTLY" - echo "$master calls me for moving" + echo "$0:" + echo "" + echo " DO NOT CALL ME DIRECTLY" + echo "" + echo "Use $master, please." exit 23 fi