Operating System - HP-UX
1833726 Members
2622 Online
110063 Solutions
New Discussion

Check the file size allocated on a tape ???

 
Patrick Chim
Trusted Contributor

Check the file size allocated on a tape ???

Hi,

Is it possible to check the size occupied by the content on a tape ? What I want to do is that I will append some files on a tape on a monthly basis and I want to know whether there is enough room on the tape before I append on it !

Regards,
Patrick
3 REPLIES 3
Ceesjan van Hattum
Esteemed Contributor

Re: Check the file size allocated on a tape ???

frecover -I /tmp/index -f /dev/rmt/0m;
awk '{x=x+$1}END{print x}'

On of my tapes gave the result of: 1.82571e+09
which is 1.8 Gb.

Regards,
Ceesjan
Patrick Chim
Trusted Contributor

Re: Check the file size allocated on a tape ???

Hi,

Does this method implies on all kind of backup format such as tar, cpio, fbackup, dd ... ?

BTW, I am using tar to append the files.

Regards,
Patrick
Kenneth_19
Trusted Contributor

Re: Check the file size allocated on a tape ???

Just make a little amendment to what Ceesjan will make it done:

tar tvf /dev/rmt/0m | awk '{x=x+$3}END{print x}'

Regards,
Kenneth
Always take care of your dearest before it is too late