Operating System - HP-UX
1752782 Members
6689 Online
108789 Solutions
New Discussion юеВ

Re: Total disk space saved on DDS tape via fbackup

 
SOLVED
Go to solution
Rodney Hills
Honored Contributor

Total disk space saved on DDS tape via fbackup

I have an old fbackup DDS tape and I would like to find the total bytes of all the files on the tape.

frecover -N -v only displays name and type.

I'm not looking for bytes on the physical tape (which could be compressed), but the total disk space the files would use if I did a restore.

TIA

-- Rod Hills
There be dragons...
6 REPLIES 6
Volker Borowski
Honored Contributor

Re: Total disk space saved on DDS tape via fbackup

Hi Rod,

if you know the blocksize, the tape had been written with, you could read it via "dd" and a proper bs= parameter to /dev/null and see how many blocks it transmitted. This would be the maximum of what is on the tape (not sure how sparse files are handled).

fbackup writes a small volume-hdr set first and then the data set, so use the no-rewind device and do several reads.

Happy counting.
Volker
Rodney Hills
Honored Contributor

Re: Total disk space saved on DDS tape via fbackup

Thanks Volker, I tried playing with "dd" a couple of times. I'll see if I can get it to work.

It's too back "frecover" couldn't list this information too...

Thanks again...

-- Rod Hills
There be dragons...
steven Burgess_2
Honored Contributor

Re: Total disk space saved on DDS tape via fbackup

Hi Rodney

Try this

Create an index

frecover -I /tmp/index | awk '{print $1}' | awk 'BEGIN {total=0;} {total=total+$1;} END {print total,"\n";}'

I'm not at a server at the moment so can't verify wether piping the commands will work

If not , send the output of the file size totals from the index to a file and then cat the file piping the awk statement after the cat

HTH

Steve
take your time and think things through
Rodney Hills
Honored Contributor

Re: Total disk space saved on DDS tape via fbackup

Steven,

-I only returns a list of files that fbackup will "try" to save on the tape.

Their are no file sizes...

Thanks anyway

-- Rod Hills
There be dragons...
Rodney Hills
Honored Contributor

Re: Total disk space saved on DDS tape via fbackup

Steve,

I was wrong. File sizes are now on the "index".

This must be something new, since I didn't have this on hpux10.20.

I'd give you a 10, but I can't change my previous assignment.

-- Rod Hills
There be dragons...
steven Burgess_2
Honored Contributor
Solution

Re: Total disk space saved on DDS tape via fbackup

Hi Rodney

Go on then

Steve
take your time and think things through