Knowledge Base Article
Was this article helpful?
When searching using bpflist we need the '-pattern string' argument if we want to match folder or file names. And yes we quotes around the string being searched for when using the Windows DOS find command.
I've probably overcooked the script a bit - but in the end I wanted something that would give me the image header, and where the copies of an image were, and something that I could run on either a NetBackup Client or a NetBackup Server. I could improve it I guess, and do it more the way you've done it - and use find - or better still use findstr and do some true regular expression pattern matching on folder and file names. Plus I find the bplist output easier to read than the bpflist output. Do you want an example of the equivalent command for bplist?
Anyway, here's an example of using bpflist with a wildcard pattern match - which should result in a smaller list sent back from the master, so it could be a little bit quicker (i.e. no big lists to filter through the find command) - but this is a moot point as it depends upon how many files there were in the original backup. Here's the command:
"E:\Program Files\Veritas\NetBackup\bin\bpflist.exe" -client oocsvondmp -d 04/01/2015
-e 06/28/2015 -pt NDMP -rl 999 -policy OOCNDMP04_nt05643f -option GET_ALL_FILES IGNORE_CASE -pattern *.pst > c:\output10.txt
...which essentially achieves the same result as the command that you worked out. :)
And if you only knew part of a surname for a PST file you could use:
-pattern *urn*.pst
...to search for any PST files that have 'urn' in the file name, and a file extension of '.pst'. And because we've used the IGNORE_CASE option - this would also match agianst: *uRn*.pSt