ccollect/tools/ccollect_stats

26 lines
626 B
Plaintext
Raw Permalink Normal View History

#!/bin/sh
#
# 2007 Daniel Aubry
# 2008 Nico Schottelius (added minimal header)
#
2008-03-18 13:03:09 +00:00
# Copying license: GPL2-only
#
# TODO:
# add variables, add copying, add configuration
if [ ! -e /tmp/ccollect-stats.lock ]
then
2008-03-17 08:17:53 +00:00
touch /tmp/ccollect-stats.lock
2008-03-17 08:17:53 +00:00
# changes after license clearify
# for dest in /etc/ccollect/sources/ -type f -name destination | while read line
2008-03-17 08:17:53 +00:00
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