How to use patterns to exclude files and directories from an NDMP backup selection

When you exclude files and directories from a backup selection for an EMC Celerra Server or a NetApp/IBM appliance, you must use patterns. You should enter patterns carefully to ensure that you exclude the correct files and directories. Backup Exec does not verify the validity of exclude patterns. If you enter an invalid pattern, the pattern is ignored and therefore the files or directories are not excluded.

For details about how to use patterns, see your NDMP vendor's documentation.

The following example shows a pattern to exclude files and directories from a backup selection for a NetApp appliance:

Table: Example pattern for NetApp appliances

Pattern

Example

tmp

Excludes all files and directories that have the name "tmp".

*.core

Excludes all files and directories that end with ".core".

To exclude directories for an EMC Celerra Server, do not include the name of the EMC Celerra Server or the name of the file system in the pattern. The names of the NDMP server and the file system are already included in the File system text box. If you repeat the name of the NDMP server and the file system in the Directory pattern, the EMC Celerra Server ignores the exclusion. Type the path from the root directory to the directory that you want to exclude. Do not include an initial forward slash ( / ).

Figure: Excluding EMC directories

Excluding EMC directories

The following example shows a pattern to exclude directories from a backup selection for an EMC Celerra Server:

Table: Example pattern to exclude directories for an EMC Celerra Server

Pattern

Description

test_exclusion/subdir1

Excludes only the "subdir1" directory on the file system that is listed in the File system text box.

d*

Excludes all directories that start with the letter "d "on the file system that is listed in the File system text box.

The following example shows a pattern to exclude files from a backup selection for an EMC Celerra Server:

Table: Example pattern to exclude files for an EMC Celerra Server

Pattern

Description

*.mp3

Excludes all files that end with ".mp3".

temp

Excludes all files that have the name "temp".