diff --git a/tools/gnu-du-backup-size-compare.sh b/tools/gnu-du-backup-size-compare.sh new file mode 100755 index 0000000..ea8b833 --- /dev/null +++ b/tools/gnu-du-backup-size-compare.sh @@ -0,0 +1,31 @@ +#!/bin/sh +# +# Nico Schottelius +# Date: 2007-08-16 +# Last Modified: - +# + +exit 1 +# not yet finished. + +CCOLLECT_CONF=${CCOLLECT_CONF:-/etc/ccollect} +CCOLLECT_SOURCES="$CCOLLECT_CONF/defaults/sources" + +me="$(basename "$0")" + +if [ $# -lt 1 ]; then + echo "${me}: sources names + exit 1 +fi + +if [ ! -d "$CCOLLECT_SOURCES" ]; then + echo "No sources defined in $CCOLLECT_SOURCES" + exit 1 +fi + +cd "$CCOLLECT_INTERVALS" + +for interval in *; do + eval int_$interval=$(cat $interval); + eval echo $interval: \$int_$interval; +done