Configure automatic virtual machine selection
NetBackup can automatically select VMware virtual machines for backup based on the criteria that you enter. You specify the criteria (rules) in the Query Builder on the NetBackup policy Clients tab. You can set up rules to include certain virtual machines for backup, or to exclude virtual machines.
Note:
In the NetBackup web UI, you must use OData keywords and OData operators in query rules:
When the backup job runs, NetBackup creates a list of the virtual machines that currently meet the query rules and backs them up.
The Query Builder can operate in Basic mode or in Advanced mode.
To configure automatic virtual machine selection in Basic mode
- On the policy Attributes tab, select VMware for the policy type.
- On the policy VMware tab, select a VMware backup host.
Review the other options on the VMware tab.
- Make other policy selections as needed (for example, create a schedule).
- Select the Clients tab, and select Select automatically through VMware intelligent policy query.
If you selected virtual machines manually, those virtual machines are removed from the policy.
- To back up virtual machines in vCloud Director, select Enable VMware Cloud Director integration.
Note:
Enable VMware Cloud Director integration makes several vCloud Director keywords available in the policy Query Builder Field, for rule-based selection of virtual machines. If this option is not selected, NetBackup cannot use the vCloud keywords to locate virtual machines in vCloud Director, and the backup fails.
- To create a rule, make selections from the menus.
For the first rule, you can start with the Field list, depending on the type of rule. (For the first rule, the only selections available for the Join field are blank (none), or NOT.)
Then make a selection for Operator.
For the Value field: Select the folder icon to browse for values, enter the value manually, or in some cases use the Value drop-down. The characters you enter manually in the Value field must be enclosed in single quotes or double quotes. Note that browsing for values may take some time in large virtual environments.
- Select Add to add the rule to the Query pane.
- Create more rules as needed.
- To see which virtual machines NetBackup currently selects based on your query, select Test query.
The Virtual machines in your current environment that match the rules for selection in the policy are labeled Included. Note however that the Test query option does not create the backup list for the policy. When the next backup runs from this policy, NetBackup rediscovers virtual machines and consults the query rules. At that time, NetBackup backs up the virtual machines that match the query rules.
The list of virtual machines is saved but the virtual machines are not displayed in the policy's Clients tab.
- You can specify how long NetBackup uses the latest query results as the backup list for future executions of the policy. Set the time period in Reuse VM selection query results for.
- To create queries manually instead of using the menus, select Advanced mode.
See Use Advanced mode to create a query for virtual machine selection.
More Information