Symantec logo

Multiple conditions in <WHEN> clauses of RELOCATE and DELETE statements

The <WHEN> clause in RELOCATE and DELETE statements may include multiple relocation criteria. Any or all of <ACCAGE>, <MODAGE>, <SIZE>, and <IOTEMP> can be specified. When multiple conditions are specified, all must be satisfied in order for a selected file to qualify for relocation or deletion.

In the following example, a selected file would have to be both inactive, that is, not accessed, for more than 30 days and larger than 100 megabytes to be eligible for relocation or deletion:

<WHEN>

<ACCAGE Units="days">

<MIN Flags="gt">30</MIN>

</ACCAGE>

<SIZE Units="MB">

<MIN Flags="gt">100</MIN>

</SIZE>

</WHEN>

You cannot write rules to relocate or delete a single designated set of files if the files meet one of two or more relocation or deletion criteria.