Processing include and exclude statements

You can use include and exclude statements to control backup, archive, and image backup processing.

Include and exclude statements can be defined on the server using the INCLEXCL option type. The include-exclude statements specified by the server are evaluated along with those statements in the client system options file on the client. The server include-exclude statements are always enforced and placed at the bottom of the include-exclude list and evaluated before the client include-exclude statements.

If the include-exclude list contains one or more INCLEXCL options that specify include-exclude files, the include-exclude statements in these files are placed in the list position occupied by the INCLEXCL preference and processed accordingly.

The client evaluates all Exclude.Fs and Exclude.Dir statements first, and removes the excluded filespaces, directories, and files from the list of objects available for processing.

After the client evaluates all Exclude.Fs and Exclude.Dir statements, include and exclude statements based on files attributes are evaluated against the remaining list of objects that are available for processing. For example, Exclude.Attribute.Symlink excludes symbolic links from backup processing.

After evaluating all Exclude.Fs, Exclude.Dir, and Exclude.Attribute statements, the client evaluates the include-exclude list from the bottom up and stops when an include or exclude statement matches the file that is being processed. The order in which the include and exclude statements are entered therefore affects which files are included and excluded.

The include and exclude statements are processed as follows:

  1. Files are checked; directories are only checked if the Exclude.Dir option is specified.

    You can use the Exclude.Dir option to exclude directories and subdirectories from backup.

  2. Next, the client compares file names to include and exclude statements that are based on file attributes (such as Exclude.Attribute.Symlink) from the bottom up, until a match is found. If a match is found, the processing stops and checks whether the option is include or exclude. If the option is include, the file with the specified attribute (such as a symbolic link) is backed up. If the option is exclude, the file is not backed up.
  3. The client then compares file names to the remaining statements in the include-exclude list from the bottom up, until a match is found. If a match is found, the processing stops and checks whether the option is include or exclude. If the option is include, the file is backed up. If the option is exclude, the file is not backed up.
  4. If a match is not found, files listed are implicitly included and backed up.
  5. If policy administration is in effect, files are backed up according to the default management class, or the management class you specify.