Hello,

I want to do a simple check like a quota to know how much space is using all the compressed backups from a host.

This is what i do:

I plus all the numbers in the 16th and 17th column in the file /%DATA_DIR%/pc/%host%/backups

This is correct?

for NUMBER in `less /backup/pc/hs$A/backups |awk '{ print $16 }'`; do
sizeExistComp=`expr $sizeExistComp + $NUMBER `;
done

for CANTIDAD in `less /backup/pc/hs$A/backups |awk '{ print $17 }'`; do
sizeNewComp=`expr $sizeNewComp + $NUMBER `;
done

TOTAL=`expr $sizeExistComp + $sizeNewComp `;

Thanks!