Commit 277f98b3 authored by Bjoern Nachtwey's avatar Bjoern Nachtwey
Browse files

addes a simple script for evaluating progress of weekly backup

parent 32dc9de5
#! /bin/bash
for i in $(ls *.all.log)
do
total=$(printf " %10d " $(grep 'CMD: >>"/usr/bin/dsmc" i "/mnt/oc_stor_userdata' $i | wc -l))
trans=$(printf " %10d " $(grep "Total number of bytes transferred" $i | grep -v "0 B" | wc -l))
e4005=$(printf " %10d " $(grep ANR4005E"" $i | grep -v "0 B" | wc -l))
ratio=$(printf "%4.2lf %%" $(echo "$trans / $total * 100" | bc -l))
echo $i ": Total folders processed :" $total
echo $i ": Folders with Data stored:" $trans
echo $i ": ratio :" $ratio
echo $i ": ANR4005E Errors :" $e4005
done
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