11-04-2011 06:19 AM
Is there a way to find in which tape/media a particular file of a netbackup client is currently stored for any given time frame requested? be it for a given day or month or year ?
Solved! Go to Solution.
11-04-2011 09:58 AM
bpimagelist -client clientname -d mm/dd/yyyy -e mm/dd/yyyy –media
e.g bpimagelist –client xxxx –d 08/08/2010 –e 08/09/2010 -media
A00036 media-server 1281214014 173 442263104 3
A00032 media-server 1281214014 196 521824586 3
A00003 media-server 1281115775 391 274091728 3
A00016 media-server 1281114005 19 80206098 3
Note the following:
Column 1: media id
Column 2: name of media server that performed the backup
Column 3: Image number.
11-04-2011 06:59 AM
11-04-2011 07:09 AM
i.e. policy? client?
The only reason I ask is that you've previously asked similar questions regarding finding which client backed up which file etc!
If you know client & location of said file then the easiest solution would be to look in the BAR GUI & highlight the file as if about to restore & "preview media".
You could also use bpimagelist:
/usr/openv/netbackup/bin/admincmd/bpimagelist [-media] [-l |
-L | -U | -idonly] [-d date | -hoursago hours] [-e
date] [-server server_name] [-keyword "keyword phrase"]
[-client client_name] [-option INCLUDE_PRE_IMPORT |
INCLUDE_TIR | LIST_COMPLETE_COPIES | LIST_OLD_TO_NEW |
ONLY_PRE_IMPORT | ONLY_TIR] [-policy policy_name] [-pt
policy_type] [-rl retention_level] [-sl sched_label]
[-st sched_type] [-M master_server[,...]] [-v]
e.g.
bpimagelist -media -idonly -client client -policy policy -d 11/02/2011 -e 11/04/2011
The more info you can throw at these commands the better.....
***EDIT***
I'll stop there as Martin's done the hard work!
11-04-2011 07:24 AM
On Windows in a command line window if you are looking for a file named filename.ext you could go to:
C:\Program Files\veritas\netbackup\db\images\<clientname>\
Then run:
findstr /s /i filename.ext *.*
This will pipe out the files containing that file plus that files details but it will list the client name and unix path so does give you a lot pretty quickly.
Not sure if this is quite what you wanted as you seem to want more variable (date etc.) so may need to enhance this a bit.
11-04-2011 09:58 AM
bpimagelist -client clientname -d mm/dd/yyyy -e mm/dd/yyyy –media
e.g bpimagelist –client xxxx –d 08/08/2010 –e 08/09/2010 -media
A00036 media-server 1281214014 173 442263104 3
A00032 media-server 1281214014 196 521824586 3
A00003 media-server 1281115775 391 274091728 3
A00016 media-server 1281114005 19 80206098 3
Note the following:
Column 1: media id
Column 2: name of media server that performed the backup
Column 3: Image number.
11-07-2011 12:34 AM
Ahh, Marianne wins ....
Never noticed the -media option on bpimagelist before, there you go, you learn something new everyday. As per my post at the top, if you wish to check the actual files in the backup, the bpflist command would be required I think, then use Mariannes command once you have confirmed the fie you want is there.
Martin
11-08-2011 02:00 AM
Thank you all for the patience listening and posting. We appreciate your invaluable support
Thanks Marianne for the tips on identifying media used by a client on a given time.
I was updated in one of the symantec article that "bpflist" is a undocumented command that should not be used.
and yes Andy, I have a following objective:
to trace "a given file" of client to the tape where it has stored to be called from offsite for restore.
so if bpimagelist gives me the tape used by the client for the given time.
bpimagelist –client xxxx –d 08/08/2010 –e 08/09/2010 -media
Is there a command to scan this idenified media listed from bpimagelist, to precisely find where the file we are intended to restore excists, without bringing that media onsite ?
11-08-2011 02:16 AM
Easiest way:
Use BAR to find the filename for the client on a give day that you need to restore.
Use the 'preview media' button to list the tape(s).
My guess is that it will run the same "bpimagelist -client <client-name> -d <start-date> -e <end-date> -media" in the background, since all the tapes in the backup set will be listed.
Even a 'start restore' will list all media id's in the backup set as 'Needed for restore'.
11-08-2011 04:52 AM
Thanks for the support.
We are looking at automating this function of identifying a file from a tape media once its found by bpimagelist command.
Please let us know , is there a command excists to scan the idenified media listed from bpimagelist, to precisely find where the file we are intended to restore excists, without bringing that media onsite ?
11-14-2011 02:03 PM
bpimagelist -client clientname -d mm/dd/yyyy -e mm/dd/yyyy –media
command list the media for any time period for a given netbackup client
Thanks for all the contributors