cancel
Showing results for 
Search instead for 
Did you mean: 

command to find a client

nit
Level 3
Employee Accredited

Is there a Netbackup command to find a client name for a restore? 

Example:

"Please restore /export/home/kmitchel/CHSI_Monthly

I don't know what server it resides on or where it was backed up."

I tried a regular find command in /usr/openv/netbackup/db/class with no luck.

#  grep -i CHSI_Monthly `find . -mtime -1 -print`
-bash: /bin/grep: Arg list too long

5 REPLIES 5

Andy_Welburn
Level 6

All I can say is investigate using bplist or bpflist & good luck.

Marianne
Level 6
Partner    VIP    Accredited Certified

No easy task....

NBU stores each client's images in separate folders under .../netbackup/db/images.

All search requests need to be done by client name. Surely the Unix system Administrators should be able to give you some idea? Maybe a 'short list' of names that you can search?

You can then use bplist to list filenames backed up for a given period.

Nicolai
Moderator
Moderator
Partner    VIP   

I had a simelar case and I solved it by doing a bplist for all client and piped the result to grep.

eg:

bppllist POLICY_NAME  -L | grep "^Client/HW/OS" | awk '{ print $2 }' | while read CLIENT

do

echo "Listing files for : $CLIENT"  >> /tmp/outf.txt

bplist -C $CLIENT  -t 0  -l -R -s 08/11/2011 / | grep "CHSI_Monthly" >> /tmp/outf.txt

done

Listing all the files may take some time...

NortonsFan
Level 4

Hi Nic,

I  had hit the same problem of searching a needle in haystack,

your solution directed me the right approach to follow in such situations

Thanks a Million

Yasuhisa_Ishika
Level 6
Partner Accredited Certified
You should do like below instead. # find /usr/openv/netbackup/db/class -type f -exec grep -l CHSI_Monthly {} \; But this path isn't registered directly into backup selection, it's useless. It is better to try bplist for all the clients.