Rules and Queries - Data Classification Enabler

Topics | How To


Overview

Use query string as rule


Overview

Data Classification uses the traditional rules established for the supported File Archiver Agents. In addition, it provides several unique rules. These rules are available only when Data Classification is enabled for the supported agent, and the rules apply only to local data. All the rules for Data Classification are configurable from the DataClassSet subclient properties Rules tab of the File Archiver Agent.

The unique Data Classification rules include the following:

Whenever a DataClassSet subclient is created, a default set of rules is established. These rules are reflected in the various rules tabs. Also, the SQL query string, which has its own tab, is automatically disabled; however, the default set of rules is formulated into the SQL query string. At this point, you can start changing rules either from the various rules tabs or within the SQL query string.

If you change rules from the various rules tabs, these rules will be formulated into the SQL query string (which is still disabled). However, if you choose to enable and edit the SQL query string, the rules reflected in the string will be enforced, and the rules previously established by the various rules tabs will be disabled. Subsequently, if you disable the rules in the SQL query string, the rules that were previously in effect via the various rules tabs will be enforced.

Each DataClassSet subclient has its own rules, and these rules can be shared by other DataClassSet subclients; however, changing the rules in one DataClassSet subclient will not affect the rules in another DataClassSet subclient.

See Migration Archiving - File Archiver Agents for more information.


Use query string as rule

Warning SQL query string rules are intended only for advanced users, and they should be changed only at the risk of such users. If in doubt, do not change rules using SQL query strings without assistance from your Software Provider. Also, whenever you are modifying a SQL query string, be sure not to remove the following special tokens:

Removing any of these tokens may yield undesired results.

By default, the rules that you select from the various rules tabs are formulated into a query that is used during archiving. This query is available from the Rules/Advanced tab within DataClassSet subclient properties. You can change the settings in this query to extend rules capabilities beyond what is possible using just the various rules tabs.

You can use the following database fields to create customized user-defined queries:

For Windows only, the following table includes the SQL advanced query values for file attributes in decimal and the associated meaning for each value. You can combine these values as necessary.

FILE_ATTRIBUTE_READONLY

1

FILE_ATTRIBUTE_HIDDEN

2

FILE_ATTRIBUTE_SYSTEM

4

FILE_ATTRIBUTE_DIRECTORY

16

FILE_ATTRIBUTE_ARCHIVE

32

FILE_ATTRIBUTE_DEVICE

64

FILE_ATTRIBUTE_NORMAL

128

FILE_ATTRIBUTE_TEMPORARY

256

FILE_ATTRIBUTE_SPARSE_FILE

512

FILE_ATTRIBUTE_REPARSE_POINT

1024

FILE_ATTRIBUTE_COMPRESSED

2048

FILE_ATTRIBUTE_OFFLINE

4096

FILE_ATTRIBUTE_NOT_CONTENT_INDEXED

8192

FILE_ATTRIBUTE_ENCRYPTED

16384

The following operators are supported:

Before running a job, you can test your query to raise the confidence level that the correct files will be archived. See Test Your Query Before it Runs for a step-by-procedure.

Back to Top