1833476 Members
2332 Online
110052 Solutions
New Discussion

list contents of a tape

 
SOLVED
Go to solution
Paul Wright
Advisor

list contents of a tape

I want to list the contents of a backup tape to my temp file and I am using the following command:
frecover -rNvf /dev/rmt/1m > /home/xxxxxx/temp
Can someone please tell me what I am doing wrong because it is not working.

Thanks
Paul
5 REPLIES 5
Patrick Wallek
Honored Contributor

Re: list contents of a tape

Try the following:

# frecovery -I /tmp/tape_list -f /dev/rmt/1m

The -I option lists the index file on the tape.

# man frecover

for more information.
Massimo Bianchi
Honored Contributor

Re: list contents of a tape

Hi,
if you want to have the list of the content of your tape, just use the following sintax:

/usr/sbin/frecover -f $TAPE -I $I/DDS.indice


$TAPE your tape 1m

$I your directory
DDS.indice the name of the file

This will recover the index of what was backed-up.


HTH,
Massimo

Darren Prior
Honored Contributor
Solution

Re: list contents of a tape

Hi Paul,

You've got 2 main options here:

1) frecover -I /home/xxxxxx/temp -f /dev/rmt/1m will give you the index from the tape - this is a list of files *intended* to be backed up, and can be read quickly off the tape. Files that change between the time the index was created and the backup actually got round to them won't be on the tape.

2) frecover -rNvf /dev/rmt/1m 2> /home/xxxxxx/temp will read the whole backup and list each file name on the tape. The 2 is needed as the list of files is written to stderr rather than stdout.

regards,

Darren
Calm down. It's only ones and zeros...
Helen French
Honored Contributor

Re: list contents of a tape

You need to use the -I option:

# frecover -I /tmp/frecover_list -f /dev/rmt/1m

Use with -v for verbose option. The command which you used is for checking the data on tape without doing an actual recover (-N option). Read man pages for more information.
Life is a promise, fulfill it!
Dario_1
Trusted Contributor

Re: list contents of a tape

Paul:

Try the following

frecovery -I /tmp/fbackup-list -f /dev/rmt/1m

man frecover for more information.

This is from the man page

-I path The index on the current volume is extracted from the backup media and is written to path.

Regards,

DR