Veritas NetBackup™ for Hyper-V Administrator's Guide
- Introduction
- Notes and prerequisites
- Configure NetBackup communication with Hyper-V
- Configure NetBackup policies for Hyper-V
- Hyper-V backup options
- Hyper-V - Advanced Attributes
- Configuration parameters for Hyper-V
- Browse for Hyper-V virtual machines
- Configure Hyper-V Intelligent Policies
- NetBackup Hyper-V for SCVMM
- Windows Server failover cluster support
- Virtual machine maintenance after a restore
- Back up and restore Hyper-V
- Restoring individual Hyper-V files to a shared location on the virtual machine
- Use Accelerator to back up Hyper-V
- Best practices and more information
- Troubleshooting
- NetBackup logs for Hyper-V and how to create them
- Errors during policy creation
- NetBackup status codes related to Hyper-V
- Appendix A. VSS backup method: Hyper-V online and offline backups
- Appendix B. Hyper-V pass-through disks
- Appendix C. NetBackup commands to back up and restore Hyper-V virtual machines
- Examples of nbrestorevm for restoring VMs to Hyper-V
bpplinclude options for modifying query rules in Hyper-V policies
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 hyperv:/?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 hyperv:/?filter=Displayname Contains "VM" AND HypervServer Contains "ROS" Note: The values "VM" and "ROS" 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 hyperv:/?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 hyperv:/?filter=Displayname Contains "VM" AND HypervServer Contains "ROS" Note: The values "VM" and "ROS" are not escaped. |
Note: paths that contain wildcards must be enclosed in quotes.