08-18-2011 06:50 AM
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
08-18-2011 07:09 AM
All I can say is investigate using bplist or bpflist & good luck.
08-18-2011 07:09 AM
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.
08-19-2011 12:46 AM
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...
10-21-2011 08:41 AM
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
10-21-2011 07:52 PM