Operating System - HP-UX
1834449 Members
2459 Online
110067 Solutions
New Discussion

Re: how to find out volume size on backup

 
Ted Mims
Occasional Advisor

how to find out volume size on backup

I was trying to figure out how to tell how many bytes were backed up during fbackup. The header information only gives the size of the index file. I could go through and manually add up all the numbers in the index but that would take a while. Is there a command that will sum the total number of bytes in the backup volume?
3 REPLIES 3
Paula J Frazer-Campbell
Honored Contributor

Re: how to find out volume size on backup

Ted

This should help:-

http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x251c6049dbb6d611abdb0090277a778c,00.html

Paula
If you can spell SysAdmin then you is one - anon
Massimo Bianchi
Honored Contributor

Re: how to find out volume size on backup

James R. Ferguson
Acclaimed Contributor

Re: how to find out volume size on backup

Hi Ted:

I assume that you have a volume information file created by 'frecover'. Thus, skip over the header information (i.e. non-numeric fields) that begin each line until you get to the block size and file lines. Once there, sum the sizes:

# awk '$1~/^[0-9][0-9]*/ {N=N+$1};END{print N}' /tmp/frecover_vinfo

Regards!

...JRF...