cancel
Showing results for 
Search instead for 
Did you mean: 

How to capture image file Name after backup complete ?

Rafiq
Level 3
Hi,

I want to capture image file (.img ) Name using netbackup commands.
Once  completed backup of my database i can see file in windows explore.

I want to capture .img file in text file

Can any one suggest me how to do it?

Thanks
Rafiq
7 REPLIES 7

Blackacre
Level 3
I think I am looking to do the same thing or similar.

My setup looks like this
1 RedHat Enterprise Server 5.3 - running netbackup 6.5
I have 1 ML6010 tape library and 1 ML6020 tape library connected.

WRT policy I have two types of backups currently configured.  One set of policies sends .img files (and associated header files) to the hard drive at /var/Backups_DSU.  A second set of policies sends jobs straight to tape.

I am able to use use mt and netbackup tar to find the contents of my backups once they are on tape but what I really want to do is pull off the .img file in its .tar state.

I want to grab the .img file because I want to compute a digest (with a hash tool that will product a md5, sha1, etc).  I want to be able to go to my tape archive library 5 years from now, find my tape, insert it into a system, confirm that the digests match, and then work on my data.  Primarily for forensics purposes but also as a classic integrity check before I use it to restore.  I have been looking for a good document on how veritas ensures integrity but haven't been able to find anything meaningful.


rj_nbu
Level 6
Employee Accredited Certified
I think bpimagelist will show you the path and the image file name . Use the '-l' switch

eg bpimagelist -policy PolicyName -l


Rafiq
Level 3
once i run bpimagelist , it saying ' No entry found'

Please help me get solution

Thanks
Rafiq

Will_Restore
Level 6
bpimagelist -policy PolicyName

Rafiq
Level 3
bpimagelist -policy PolicyName

and used bpflist also both returns same results.

Please find some solution.

Thanks
Rafiq

Will_Restore
Level 6
I tried Rajeev's tip & it works fine on my end.  Seems like you have no valid backup image for the policy in question. :(

Rafiq
Level 3
Hi,

thanks for your input.

I want to check some condition in batch files .

Can you give guide lines how to use if else statement in batch files.

thanks
Rafiq