2005-12-05 09:46:40 +01:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
/usr/local/sbin/quotastat
|
|
|
|
/usr/local/sbin/quotacheck
|
2005-12-12 09:51:35 +01:00
|
|
|
find /usr/local/dfstat/quotacheck-timestamps -type f -name '*:*:*' -print | sed -e 's/.*\///' -e 's/:/ /g' |
|
|
|
|
while read user mount_t data
|
2005-12-05 09:46:40 +01:00
|
|
|
do
|
2005-12-12 09:51:35 +01:00
|
|
|
g="/usr/local/dfstat/quotacheck-graphs/$user${mount_t}_$data.png"
|
2006-08-14 10:14:03 +02:00
|
|
|
mount=`echo $mount_t | sed -e 's/_/\//g'`
|
2005-12-12 09:51:35 +01:00
|
|
|
"/usr/local/dfstat/quotagraph" "--fs=$mount" "--user=$user" "--data=$data" /usr/local/dfstat/quota.stat.????-?? > "$g"
|
|
|
|
@@@scp@@@ "$g" \
|
|
|
|
"intra.wsr.ac.at:/usr/local/www/intra/informationssysteme/quotas/$user${mount_t}_$data.png"
|
2005-12-05 09:46:40 +01:00
|
|
|
done
|