Veritas NetBackup™ for VMware Administrator's Guide
- Introduction
- Required tasks: overview
- Notes and prerequisites
- Configure NetBackup communication with VMware
- Adding NetBackup credentials for VMware
- 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)
bpplinclude options for modifying query rules in a VMware policy
The bpplinclude command has options for modifying the query rules in an existing policy.
Table: bpplinclude options for modifying query rules
Option | Description |
---|---|
-addtoquery query_string ... | Adds the specified query string to the end of the policy query rules, or creates a query if none exists. Quotes (") must be escaped (\). Examples: To add vm17 to the list of values in the query rules of policy1: bpplinclude policy1 -addtoquery ,\"vm17\" To create a query in a policy that does not have a query: bpplinclude policy1 -addtoquery vmware:/?filter=Displayname AnyOf \"grayfox7\",\"grayfox9\" Note: Each quote (") is escaped with a backslash (\). |
-addtoquery -f file_name | Adds the entries to the query rules from the specified file, or creates a query if none exists. In the file, quotes (") do not need to be escaped. Example: To create a query in a policy that does not have a query: bpplinclude policy1 -addtoquery -f qfile1 where the contents of vmware:/?filter=vCenter Contains "ROS" AND ESXserver Equal "VM_test1" AND Powerstate Equal poweredOn Note: The values "ROS" and "VM_test1" are not escaped. Note: You can place entries on multiple lines in the file. All entries are added to the end of the query (if a query already exists). |
-deletefromquery query_string ... | Deletes the specified query string from the policy query rules. Examples: To delete vm27 from the list of values in the query rule of policy1: bpplinclude policy1 -deletefromquery \"vm27\" This example also deletes the comma preceding vm27 if such a comma exists in the query rules. Note: The -deletefromquery option deletes a comma if: the phrase in the query_string does not begin or end with a comma and the character preceding the deleted string is a comma. To delete an entire query from the policy: bpplinclude policy1 -deletefromquery vmware:/?filter=Displayname AnyOf "grayfox7","grayfox9" |
-deletefromquery -f file_name | Deletes the file entries from the query rules. Example: To delete a query from a policy: bpplinclude policy1 -deletefromquery -f qfile1 where the contents of vmware:/?filter=vCenter Contains "ROS" AND ESXserver Equal "VM_test1" AND Powerstate Equal poweredOn Note: The values "ROS" and "VM_test1" are not escaped. |
Note: paths that contain wildcards must be enclosed in quotes.