Veritas NetBackup™ for VMware Administrator's Guide
- Required tasks: overview
- Notes and prerequisites
- Configure NetBackup communication with VMware
- Adding NetBackup credentials for VMware
- Validating VMware virtualization server certificates in NetBackup
- Configure NetBackup policies for VMware
- VMware backup options
- Exclude Disks tab
- Configure a VMware Intelligent Policy
- Reduce the size of backups
- Back up virtual machines
- Use Accelerator to back up virtual machines
- Restore virtual machines
- Restoring the full VMware virtual machine
- Virtual Machine Recovery dialog boxes (restore to original location)
- Virtual Machine Recovery dialogs boxes (restore to alternate location)
- Restoring VMware virtual machine disks by using Backup, Archive, and Restore
- Restoring VMware virtual machine disks by using NetBackup commands
- Restoring individual VMware virtual machine files
- Browse and search virtual machines for restore
- Restore virtual machines with Instant Recovery
- Use NetBackup for vCloud Director
- Virtual machine recovery dialog boxes for vCloud Director
- Best practices and more information
- Appendix A. NetBackup commands to back up and restore virtual machines
- Using NetBackup commands to create a VMware policy
- Appendix B. Configuring services for NFS on Windows
- About configuring services for NFS on Windows 2012 or 2016 (NetBackup for VMware)
- About configuring services for NFS on Windows 2008 and 2008 R2 (NetBackup for VMware)
- Appendix C. The Reuse VM selection query results option
- Appendix D. Backup of VMware raw devices (RDM)
AND vs. OR in queries
This topic applies to policy configuration for NetBackup for VMware. You can use the Query Builder to enter rules for the automatic selection of VMware virtual machines for backup.
In essence, AND and OR work in this way:
AND limits or restricts the scope of the query.
OR opens up the query to an additional possibility, expanding the scope of the query.
Note: Do not use AND to join the rules that are intended to include additional virtual machines in the backup list. For instance, AND cannot be used to mean "include virtual machine X AND virtual machine Y."
For example: To include the virtual machines that have either "vm1" or "vm2" in their names, use OR to join the rules:
Displayname Contains "vm1" OR Displayname Contains "vm2"
If you use AND to join these rules:
Displayname Contains "vm1" AND Displayname Contains "vm2"
the result is different: the backup list includes only the virtual machines that have both vm1 and vm2 in their names (such as "acmevm1vm2"). A virtual machine with the name "acmevm1" is not included in the backup.
Table: Queries with AND, OR provides the examples with AND and OR.
Table: Queries with AND, OR
Displayname Contains "vm1"
OR Displayname Contains "vm2"
This query selects any virtual machine that has either vm1 or vm2 in its display name. For example, this query selects both "seabizvm1" and "seabizvm2" for backup.
vCenter Equal "vCenterServer_1"
AND Datacenter Equal "dc_A"
AND ESXserver Equal "prod"
AND VMHostName Contains "manu"
This query is very specific. Virtual machines with the host names that contain "manu" are included in the backup only if: they reside in vCenter server "vCenterServer_1", datacenter "dc_A", and ESX server "prod".
The virtual machines that do not reside in that hierarchy are not included. For example: if a virtual machine resides in "vCenterServer_1" and datacenter "dc_A", but not in ESX server "prod", that virtual machine is not included.
vCenter Equal "vCenterServer_1"
OR Datacenter Equal "dc_A"
OR ESXserver Equal "prod"
OR VMHostName Contains "manu"
This query uses the same keywords and values, but combines them with OR. The result may be a much larger list of virtual machines.
A virtual machine that meets any of these rules is included: