System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

list the file in tape drive media

SOLVED
Go to solution
tareq_2
Regular Advisor

list the file in tape drive media

hi
i have rp7420 hp-ux 11iv1 i make backup for the database dump files to tape drive using SAM backup and Recovery , now i want to list the dump files in the tape media and to see how many file i have in the media .
any help please.
thanks
5 REPLIES
P Muralidhar Kini
Honored Contributor
Solution

Re: list the file in tape drive media

Hi tareq,

The command to view the contents from the tape looks something like
# frecover -f /dev/rmt/0m -x -N -v

Check the following link -
http://docs.hp.com/en/B2355-90691/frecover.1M.html
->This talks about the frecover command and all its options.

For more information, refer
http://www.cyberciti.biz/faq/hpux-data-backup-restore-commands/

Hope this helps.

Regards,
Murali
Let There Be Rock - AC/DC
singh sanjeev
Trusted Contributor

Re: list the file in tape drive media

you can use :

tar tvf

or

pax -vf
Sanjeev Singh
Dennis Handly
Acclaimed Contributor

Re: list the file in tape drive media

>singh: you can use: tar or pax

Not hardly, if created with fbackup(1m).
Bill Hassell
Honored Contributor

Re: list the file in tape drive media

>> The command to view the contents from the tape looks something like
>> # frecover -f /dev/rmt/0m -x -N -v

While this will work, it will take an enormous amount of time because the entire tape must be read. fbackup (SAM's method for backup) has a two very useful options:

# frecover -V - -f /dev/rmt/0m

which reports the date of the backup tape

# frecover -I - -f /dev/rmt/0m | wc -l

This will count all the files on the tape in just a few seconds. To create a list of all the files on the tape, use this command:

# frecover -I /tmp/mylist -f /dev/rmt/0m

then vi the mylist file or print the file.


Bill Hassell, sysadmin
tareq_2
Regular Advisor

Re: list the file in tape drive media

thnx for all