2007-06-25 10:00:05 +00:00
|
|
|
#!/bin/sh
|
2008-03-09 22:25:02 +00:00
|
|
|
#
|
|
|
|
# 2007 Daniel Aubry
|
|
|
|
# 2008 Nico Schottelius (added minimal header)
|
|
|
|
#
|
|
|
|
# Copying license unknown
|
|
|
|
#
|
2007-06-25 10:00:05 +00:00
|
|
|
|
2008-03-09 22:25:02 +00:00
|
|
|
# TODO:
|
|
|
|
# add variables, add copying, add configuration
|
2007-06-25 10:00:05 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
|
|
|
|
|