Veritas NetBackup™ for VMware Administrator's Guide
- Introduction
- 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
- Troubleshooting
- 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)
Order of operations in queries (precedence rules)
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.
The information in this topic is for advanced users who understand precedence in programming languages. In the Query Builder, the order in which operations occur can determine which virtual machines are selected and backed up.
The following table lists the order of operations, or precedence, from highest to lowest (7 is the highest). For example, an operation with a precedence of 6 (such as Contains) is evaluated before an operation with a precedence of 5 (such as Greater).
Table: Order of operations
Operation | Description | Precedence |
---|---|---|
!x | Produces the value 0 if x is true (nonzero) and the value 1 if x is false (0). | 7 |
x Contains y | Does y exist somewhere in x | 6 |
x StartsWith y | Does x start with y | 6 |
x EndsWith y | Does x end with y | 6 |
x AnyOf list | Does x appear in list | 6 |
x Greater y | Is x greater than y | 5 |
x GreaterEqual y | Is x greater than or equal to y | 5 |
x Less y | Is x less than y | 5 |
x LessEqual y | Is x less than or equal to y | 5 |
x Equal y | Is x equal to y | 4 |
x NotEqual y | Is x not equal to y | 4 |
Not x | operator produces the value 0 if x is true (nonzero) and the value 1 if x is false (0). | 3 |
x And y | True if both x and y are true | 2 |
x OR y | True if either x or y are true | 1 |
Note the following:
AND has a higher precedence than OR.
In the Query Builder's Advanced Mode, you can use parentheses to change the order of evaluation in the rules that use AND or OR.
In the Query Builder's Advanced Mode, you can combine two or more operations in a single rule without AND or OR to join them. Precedence determines the order in which the operations are evaluated within the rule.
Example of a rule that includes three operations:
Displayname StartsWith "L" NotEqual Displayname contains "x"
This rule selects the following virtual machines:
Virtual machines with the names that start with L but do not contain x.
Virtual machines with the names that do not start with L but that do contain x.
Explanation: The StartsWith and Contains operations have a precedence of 6, whereas NotEqual has a lower precedence of 3. Starting on the left, the StartsWith operation is evaluated first and the Contains operation is evaluated next. The last operation to be evaluated is Not Equal.
More Information