cancel
Showing results for 
Search instead for 
Did you mean: 

Clients and backup selection

Praba_micro
Level 3

Hi All,


I would like to know if anyone has a script to get the backup selection alone for a specific set of clients in report format.

In other words a script to find backup selection of each client in Netbackup will be helpful.

 

Regards,
Prabaharan

1 ACCEPTED SOLUTION

Accepted Solutions

Will_Restore
Level 6
* pseudocode, modify to fit your OS * # get all clients bpclient -All > /tmp/clientlist # get backup selection for each client for CLIENT in /tmp/clientlist do echo $CLIENT bppllist -byclient $CLIENT -U | grep "Include" done

View solution in original post

6 REPLIES 6

inn_kam
Level 6
Partner Accredited

Hi its very easy, if you will install OPSCENTER (comes with netbackup), and then click on Policies and take the report to your email ,having backup selections of all jobs

Mark_Solutions
Level 6
Partner Accredited Certified
bppllist -allpolicies -U can be used to list your policies and the clients in them along with the paths backed up If you need it as a different type of listing then: bppllist on its own just pipes out a lits of policy names bpplinclude policyname -l will pipe out the file list for each policy so that you can see what is included against the policies Sure you could script something to give an output of the two to give what you need Hope this helps

Will_Restore
Level 6
* pseudocode, modify to fit your OS * # get all clients bpclient -All > /tmp/clientlist # get backup selection for each client for CLIENT in /tmp/clientlist do echo $CLIENT bppllist -byclient $CLIENT -U | grep "Include" done

Vickie
Level 6

Hi Prabaharan,

 
You can use below commands to get filtered output with only details which needed.
 
1) bppllist -byclient  clientname -L  | grep "Policy Name:" | awk '{print $3}'
It'll give ouput of only policy name no additional information, see below eg.
 
#-> ./bppllist -byclient   xyz.abc.com -L  | grep "Policy Name:" | awk '{print $3}'
XYZ_POLICY
 
Now run below command to get the backup selection.
 
2) bpplinclude policyname -L  | awk '{print $2}'
It'll only give output with backup selection, no extra details, see below eg.
 
#-> ./bpplinclude XYZ_POLICY -L  | awk '{print $2}'
ALL_LOCAL_DRIVES
This will give you clear filtered output no extra/additional information.
Only details you are looking for (backup selection, policy name for client)
You can surely use these to script.
 
Cheers...!

Praba_micro
Level 3

Thanks guys. I will try these over and will get back to you incase of queries.

Praba_micro
Level 3

This one gives the needed output but the backup selection get truncated....