Commit 49fc0195 authored by Bjoern Nachtwey's avatar Bjoern Nachtwey
Browse files

switched to inc instead of sel, added some new stats lines

parent 885bf271
......@@ -61,34 +61,33 @@ split -d -a3 -n r/$chunknum $filelist chunk.
##
## do parallel backup
##
ls chunk* | parallel -j $numjobs --results out dsmc sel -filelist={} -snapshotroot=$ssr -optfile=$optfile -errorlogname=errlog.{}
ls chunk* | parallel -j $numjobs --results out dsmc inc -filelist={} -snapshotroot=$ssr -optfile=$optfile -errorlogname=errlog.{}
##
## collect stats
##
for i in $(find . -name "stdout")
do
grep "Total number of objects inspected" $i | sed -e 's/,//g' >> out.ti;
grep "Total number of objects backed up" $i | sed -e 's/,//g' >> out.tb;
grep "Total number of objects updated" $i | sed -e 's/,//g' >> out.tu;
grep "Total number of objects failed" $i | sed -e 's/,//g' >> out.tf;
grep "ANS4005E" $i | sed -e 's/,//g' >> out.4005E;
grep "AN[E,R,S][0..9]*S" $i | sed -e 's/,//g' >> out.ts;
grep "AN[E,R,S][0..9]*[E,S]" $i | sed -e 's/,//g' >> ../$today.daily-error.txt
grep "Total number of objects inspected" $i | sed -e 's/,//g' >> out.ti;
grep "Total number of objects backed up" $i | sed -e 's/,//g' >> out.tb;
grep "Total number of objects updated" $i | sed -e 's/,//g' >> out.tu;
grep "Total number of objects failed" $i | sed -e 's/,//g' >> out.tf;
grep "ANS4005E" $i >> out.nf;
grep "AN[E,R,S][0-9]*S" $i | grep -v ANS1802E >> out.ts;
grep "AN[E,R,S][0-9]*[E,S]" $i | grep -v ANS1802E >> ../$today.daily-error.txt
done
echo Total number of objects inspected : $(awk -F ':' '{sum+=$2} END {print sum}' < out.ti) >> ../$today.daily-stats.txt
echo Total number of objects backed up : $(awk -F ':' '{sum+=$2} END {print sum}' < out.tb) >> ../$today.daily-stats.txt
echo Total number of objects updated . : $(awk -F ':' '{sum+=$2} END {print sum}' < out.tu) >> ../$today.daily-stats.txt
echo Total number of objects failed .. : $(awk -F ':' '{sum+=$2} END {print sum}' < out.tf) >> ../$today.daily-stats.txt
echo ANS4005 errors .................. : $(wc -l out.4005E | cut -f1 -d' ') >> ../$today.daily-stats.txt
echo severe errors ................... : $(wc -l out.ts | cut -f1 -d' ' ) >> ../$today.daily-stats.txt
echo "Total number of objects inspected :" $(awk -F ':' '{sum+=$2} END {print sum}' < out.ti) >> ../$today.daily-stats.txt
echo "Total number of objects backed up :" $(awk -F ':' '{sum+=$2} END {print sum}' < out.tb) >> ../$today.daily-stats.txt
echo "Total number of objects updated . :" $(awk -F ':' '{sum+=$2} END {print sum}' < out.tu) >> ../$today.daily-stats.txt
echo "Total number of objects failed .. :" $(awk -F ':' '{sum+=$2} END {print sum}' < out.tf) >> ../$today.daily-stats.txt
echo "ANS4005 errors (file not found) . :" $(wc -l out.nf | cut -f1 -d' ') >> ../$today.daily-stats.txt
echo "severe errors ................... :" $(wc -l out.ts | cut -f1 -d' ') >> ../$today.daily-stats.txt
##
## clean up
##
cd $wpath
rm -rf $wpath/$today
#rm -rf $wpath/$today
exit 0
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment