www.nico.schottelius.org/software/ccollect/download/ccollect-0.7.0/tools/ccollect_stats.sh
Nico Schottelius 851d24074e add related plus support
Signed-off-by: Nico Schottelius <nico@ikn.schottelius.org>
2010-04-08 22:33:02 +02:00

25 lines
623 B
Bash

#!/bin/sh
#
# 2007 Daniel Aubry
# 2008 Nico Schottelius (added minimal header)
#
# Copying license unknown
#
# TODO:
# add variables, add copying, add configuration
if [ ! -e /tmp/ccollect-stats.lock ]
then
touch /tmp/ccollect-stats.lock
# changes after license clearify
# for dest in /etc/ccollect/sources/ -type f -name destination | while read line
find /etc/ccollect/sources/ -type l | while read line
d=$(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