ccollect/tools/ccollect-stats.sh
Nico Schottelius d0a6190203 Initial version of ccollect-stats.sh from Daniel Aubry
(w/o header and everything)
2007-06-25 12:00:05 +02:00

17 lines
344 B
Bash

#!/bin/sh
if [ ! -e /tmp/ccollect-stats.lock ]
then
touch /tmp/ccollect-stats.lock
find /etc/ccollect/sources/ -type l | while read line
do
backupname=$(basename $(readlink $line))
echo "====[Backup: $backupname]====" | tee -a /var/log/backup.log
du -sh $line/* | tee -a /var/log/backup.log
done
rm /tmp/ccollect-stats.lock
fi