Ransomware attackers specifically target and attempt to destroy backup systems to increase the probability of payment. Hardening your system is critical. Please ensure you have reviewed your platform security using the Security Hardening Checklist
Cohesity

COHESITY Documentation

Explore our documentation to get started, discover products & new features, access troubleshooting guides, register sources, platforms support.

Products
Data Security Alliance
Visit Cohesity.com
Demos
Support
Blogs
Developers
Partner Portals
Cohesity Community
© 2026 Cohesity, Inc. All Rights Reserved.
Terms of Use|
Privacy Policy|
Legal|
  1. Home
  2. Veritas NetBackup™ for Hyper-V Administrator's Guide
  3. Appendix C. NetBackup commands to back up and restore Hyper-V virtual machines
  4. bpplinclude options for modifying query rules in Hyper-V policies
Veritas NetBackup™ for Hyper-V Administrator's Guide

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 qfile1 are:

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 qfile1 are:

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.

Feedback

Was this page helpful?
Previous

The bpplinfo options for Hyper-V policies

Next

Examples of nbrestorevm for restoring VMs to Hyper-V

Feedback

Was this page helpful?