www.nico.schottelius.org/software/ccollect/ccollect-0.6.2/tools/gnu-du-backup-size-compare.sh
Nico Schottelius 7a4e82d87a raw import of ccollect from unix.schottelius.org
Signed-off-by: Nico Schottelius <nico@ikn.schottelius.org>
2009-05-26 23:45:19 +02:00

33 lines
610 B
Bash

#!/bin/sh
#
# Nico Schottelius <nico-ccollect //@// schottelius.org>
# 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_SOURCES}"
while [ "$#" -gt 0 ]; do
source="$1"; shift
fsource="${CCOLLECT_SOURCES}/${source}"
du -s "${fsource}/"* "${fsource}"
# du -l should follow
done