Wildcard Exclusion Rules

Plan settings may be edited to exclude file types and subfolders.

To exclude a particular file or folder from a selection, select Plan Settings. On the Folders tab, you may click the add button, then select the Excude radio button, then enter a file or folder to exclude. You may also cilck the Exclude file types button to choose from a list of predefined file types to exclude all instances of a file type.

It is also possible to use a wildcard (*) to exclude files and directories. You may need to edit the plan configuration file in notepad to adjust the subfolders field value to achieve desired results. Testing should be performed for any wildcard to ensure desired results are achieved.

Rules for exclusions:

A Files and Folders type plan automatically excludes certain system files and folders, as specified in \Server\Configurations\SystemExcludes.xml for local plans and \Server\Remote\Configurations\SystemExcludes.xml for remote computer plans. You can add your own exclusion rules to a Files and Folders type plan as described below. Always test your exclusions to verify intended results.

-- exclusions files are entirely case-insensitive.

-- an asterisk (*) is the only wildcard allowed, and it is only allowed once per pathspec.

-- subfolders="false" unless overridden with subfolders="true".

-- pathspec is applied to all volumes unless a particular volume is specified.

-- directories can be distinguished from files by using a trailing backslash.

-- when a directory is excluded, everything below that directory is also excluded.

-- a drivespec can be either drive-letter-colon or UNC format.

Syntax for the path keyword: [[ | ]\] [] [*] [] [\]

The following table shows some exclusion scenarios and corresponding path/subfolder specifications:

 

To exclude subdirectories using a wildcard match within a particular directory only:

In plan settings, on the folders tab, click add. Select the Exclude radio button. Enter the path to the folder, then enter a character or characters to match, the wildcard, then trailing backslash. For example, to exclude all folders within a particular folder that being with 2010 enter E:\accounting\2010*\

Note well: The following edit is required to prevent the 2010* exclusion match from happening in any other subfolders you intend to include. Open the plan configuration file in notepad (or the exclude file if running EPS build 4.0) located in the [install dir]\Remote\Configurations folder and find the exclusion for E:\accounting\2010*\. Change the associated subfolders="true" field so it reads subfolders="false". Save the config file. For example, the entire xml code for the exclude would look like this:

<exclude name="E:\accounting\2010*\" path="E:\accounting\2010*\" subfolders="false" excludetype="Folder" />