B File and Directory Exclusion Examples

B.1 Excluding Known Directories

Exclude Wilma’s ‘Personal’ directory

Excluding directories at fixed locations is most easily achieved using the ‘Directory Inclusions & Exclusions’ panel in the Source editor – see §5.4.4 .

The example of excluding Wilma’s ‘Personal’ directory can be accomplished by unticking that directory, as shown in Figure B.1.

B.2 Complex Exclusions

The following examples illustrate the exclusion of files using patterns that match path as well as filename.

Exclude all PDF files in any DOC directory

Since this example calls for the exclusion of an arbitrary number of DOC directories within the Source tree, the Source’s ‘Directory Inclusions & Exclusions’ panel is insufficient to describe the exclusions.

Instead, a Rule can be created that will exclude all PDF files in all directories named ‘DOC’ (and subdirectories thereof) at any location in the directory tree. In this case, each ‘DOC’ directory will still be traversed, since files that are not PDFs must still be processed.

Applying this to the example Policy:

  1. Create a Rule to match PDF files within a ‘DOC’ directory
    1. Create a Rule (See §5.6 )
    2. Check the Negate box
    3. (In the File Matching section, enter: DOC/**/*.pdf (See §5.6.4 )
      Note that there is no leading ‘/’
    4. (Save the Rule
  2. Add this Rule to the Policy
    1. Edit the policy (see §5.7.3 )
    2. Add the Rule created in step 1; the selected Rules for the policy will now be ‘all files modified more than 6 months ago’ AND the newly created exclusion Rule
    3. Save the policy

Exclude PDF files in users’ ‘DOC’ directories (but not the Home level ‘DOC’ directory)

As in the previous example, this scenario calls for a Rule rather than an exclusion in the Source.

This Rule will exclude PDF files in all users’ ‘DOC’ directories (and subdirectories thereof). Note that this will not exclude PDF files in the ‘/DOC’ or ‘/Wilma/<subdir>/DOC’ directories. Each ‘DOC’ directory will still be traversed, since files that are not PDFs still be processed.

Applying this to the example Policy:

  1. Create a Rule to match PDF files within a ‘DOC’ directory that is one directory deep in the Source.
    1. Create a Rule (See §5.6 )
    2. Check the Negate box
    3. In the File Matching section, enter: /*/DOC/**/*.pdf (See §5.6.4 )
    4. Save the Rule
  2. Add this Rule to the ‘Migrate Home Directories’ policy
    1. Edit the policy (see §5.7.3 )
    2. Add the Rule created in step 1; the selected Rules for the policy will now be ‘all files modified more than 6 months ago’ AND the newly created exclusion Rule
    3. Save the policy

 

Figure B.1: Using a Source exclusion

Error rendering macro 'excerpt-include' : No link could be created for 'FileFly Documentation'.

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