That's pretty cool -- I added it to my notes for future reference.  Thanks 
Justin.

________________________________

From: [EMAIL PROTECTED] on behalf of Justin Piszcz
Sent: Mon 5/12/2008 10:16 AM
To: Kevin Miele
Cc: veritas-bu@mailman.eng.auburn.edu
Subject: Re: [Veritas-bu] How to List Files in an Image





On Mon, 12 May 2008, Kevin Miele wrote:

> I am trying to find out what command or commands I would need to run to get
> a list of files that were backed up in an image.
> Has anyone done this? If so, how would I go about acquiring this
> information?
> I appreciate any assistance you can provide.
> Regards,
> Kevin
>

1. bpimmedia -mediaid TAPE_ID | grep ^IMAGE | awk '{print $4}'
    client_name_11958282 <- looks like that.

2. bpcatlist -id client_name_11958282
    this will give you names like: POLICY_11958282_UBAK.f

3. Make a list of those, write a script to give you the full path names
    to each one, e.g.:
    /usr/openv/netbackup/db/images/client_name/11958282/POLICY_11958282_UBAK.f

4. Now the secret command ooOO ;-)
    /usr/openv/netbackup/bin/cat_convert -dump \
    /usr/openv/netbackup/db/images/client_name/11958282/POLICY_11958282_UBAK.f

    The resulting output: (there's my files!)
            0       1       50      0       0       0       0       26630   /   
    16877 root root 0 1175703373 1196743782 1196743782
    0       0       9       51      1       0       0       0       26881   
/arch-01/       16872 oracle oracle 0 1175705681 11958282 11958282
    0       0       19      51      2       0       0       0       26881   
/arch-01/db/     16877 oracle oracle 0 11958282 1176248632 1176248632
    0       0       27      51      3       0       0       0       26881   
/arch-01/db/abcdefg/     16877 oracle oracle 0 11958282 1196819522 1196819522
    1       0       56      58      4       1       0       0       26881   
/arch-01/db/abcdefg/redolog-12345.arc        33184 oracle oracle

Nice, eh?

Justin.

_______________________________________________
Veritas-bu maillist  -  Veritas-bu@mailman.eng.auburn.edu
http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu


_______________________________________________
Veritas-bu maillist  -  Veritas-bu@mailman.eng.auburn.edu
http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu

Reply via email to