Operating System - HP-UX
1832759 Members
3061 Online
110045 Solutions
New Discussion

Re: How to check the contents of a tape backup

 
SOLVED
Go to solution
yalin zhao
Advisor

How to check the contents of a tape backup

Hi,

I backedup around 20GB files to a tape. I used "frecover -vf /dev/rmt/1m -I /tmp/index" to verify the backup and read the index file from the tape. Since there are too many files backedup, it is difficult to go over each file. Does anyone know if there is a command that will list only directories instead of complete files in the index file.
4 REPLIES 4
PIYUSH D. PATEL
Honored Contributor

Re: How to check the contents of a tape backup

Hi,

Did you create a Index file with the -I option of fbackup ???

You can always view this Index file and browse thro the files which are backed up.

Piyush

yalin zhao
Advisor

Re: How to check the contents of a tape backup

Hi Piyush,

Yes, I created a index file in my /tmp directory. But the index will list thouand files which takes long time to go through those files. My question is that how we can create an index file that will only list major directories other than specific files.

Regards
Yalin
S.K. Chan
Honored Contributor

Re: How to check the contents of a tape backup

It's difficult to extract just the directories from the index file because it simply does not directly tell you which one is a directory. If I'm not mistaken the format of the index file is .
There is a way that work.. you can try this ..

# frecover -f /dev/rmt/0m -r -N -v

Basically perform a "preview" recovery with the verbose option so that you can capture the output from the above to a file and extract just the directories listing.

# cat fb-output | grep \^d

The only downside is it'll have to go through the whole tape. Not an elegant solution.
Thomas Schler_1
Trusted Contributor
Solution

Re: How to check the contents of a tape backup

Yalin,

since you already have the index file you can use a pipe as following. Assume your index file is named 'fbackup.index', then type, e.g.

awk '{print $3}' fbackup.index | cut -f -4 -d '/' | sort -u

In this way you get all backuped files or directories up to the 3rd level. Increase the argument (-4) of option -f to get more levels listed, or decrease it to get less levels listed.
no users -- no problems