How to exclude directories

There are two ways to exclude directories:

Exclude by source

Best practice

Do not create a source based on the root of a volume.

Exclude a directory or a set of directories from FileFly management when a new source is created:

  1. Create a new source. This example creates drive E:


  2. All directories are included by default:

  3. Select which directories to exclude (untick) within the E partition. Any ticked share is included in our source directory and any unticked is not.
     
    The root directory 3236_20160223092851_36_dx1.tar is selected but none of the subdirectories are.

Note

The reason other dirs appears selected here is the top-level directory is selected. Files contained there are managed, while those in lower-level directories are not.

  1. See Excluding files and directories in the guide for more details.

Exclude by rule

Another way to exclude directories is to use regular expressions. FileFly supports several types of regular expressions and a useful set of wildcard matching rules.

Suppose want to include certain directories and also exclude temporary internet files from the share, wherever they are located:

  1. Create a negation rule to exclude any folder called Temporary Internet Files:


    The Negate flag indicates that this is an exclusion rule, so all directories except those named "Temporary Internet Files" are selected. This rule excludes all "Temporary Internet Files" directories by itself, including all files and sub-directories within them.

  2. Create another rule to filter files in the remaining directories.  

  3. Combine them: Navigate to Rules and select Create Compound Rule.

     

  4. Select and Add your two rules from the list of available rules:
     

© DataCore Software Corporation. · https://www.datacore.com · All rights reserved.