Re: [Veritas-bu] How to List Files in an Image
2008-05-13 10:16:58
I appreciate all of you responding to this. You have provided a lot of excellent information. Regards, Kevin
On Mon, May 12, 2008 at 9:52 PM, Reynolds, Susan K. < SUSAN.K.REYNOLDS AT saic DOT com> wrote:
That's pretty cool -- I added it to my notes for future reference. Thanks Justin.
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 AT mailman.eng.auburn DOT edu
http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu
|
|
|