diff --git a/mysqlbu-scripts.sh b/mysqlbu-scripts.sh index ed75dbf..d9fa825 100755 --- a/mysqlbu-scripts.sh +++ b/mysqlbu-scripts.sh @@ -121,10 +121,11 @@ case $1 in for hour in $day/* ; do thr=`sed 's/.*\///' <<< ${hour//_BASE/}` + bsz=`du -sh ${hour} | awk '{print $1}'` if [ ${hour: -5} = "_BASE" ]; then - echo -e "${idsST[Bold]}${idsCL[LightGreen]} -> `date -d"${tdt} ${thr//-/:}" +"%I:%M %P"` - FULL BACKUP${idsCL[Default]}${idsST[Reset]}" + echo -e "${idsCL[LightGreen]}${idsST[Bold]} -> `date -d"${tdt} ${thr//-/:}" +"%I:%M %P"` - FULL BACKUP${idsST[Reset]} - ${bsz}${idsCL[Default]}" else - echo -e "${idsCL[Cyan]} -> `date -d"${tdt} ${thr//-/:}" +"%I:%M %P"` - Incremental${idsCL[Default]}" + echo -e "${idsCL[Cyan]} -> `date -d"${tdt} ${thr//-/:}" +"%I:%M %P"` - Incremental - ${bsz}${idsCL[Default]}" fi done done