Examples using wildcards with include and exclude patterns
The backup-archive client accepts the exclude.dir option, which can be used to exclude directory entries. However, the include and exclude.dir options cannot be used together.



Note: In the dsm.sys
file, the include and exclude options
do not work with symbolic links to directories. For example, do not
use /u in your include or exclude statements because /u is
a symbolic link to the /home directory. Instead of
entering: include /u/tmp/save.filenter: include /home/tmp/save.fil


However, the exclude option
does work with symbolic links to directories when you enter a backup
command with the absolute path that contains the symbolic link.
Table 1 shows how to use wildcard characters to include or exclude files.
| Task | Pattern |
|---|---|
![]() ![]() ![]() Exclude all files that end with .doc,
except those found in the home directory of aleko, Documents directory. |
![]() ![]() ![]() |
![]() ![]() ![]() Exclude all files during backup with
an extension of bak, except those found on the /usr file system
in the dev directory. |
![]() ![]() ![]() |
Exclude all files during backup with
an extension of bak, except those found on the d: drive
in the dev directory. |
|
![]() ![]() ![]() Exclude all files in any directory named tmp and
its subdirectories, except for the file /home/tmp/save.fil. |
![]() ![]() ![]() |
Exclude all files in any directory named tmp and
its subdirectories, except for the file d:\tmp\save.fil. |
|
![]() ![]() ![]() Exclude any .cpp file
in any directory on the Vol1, Vol2, Vol3,
and Vol4 volumes. |
![]() ![]() ![]() |
![]() ![]() ![]() Exclude any .cpp file
in any directory on the /fs1, /fs2, /fs3 and /fs4 file
systems. |
![]() ![]() ![]() |
![]() ![]() ![]() Exclude the .cpp files
found in the /fs2/source directory. |
![]() ![]() ![]() |
Exclude any .obj file
for backup in any directory on the c: e: f: and g: drives. |
The |
![]() ![]() ![]() Exclude any .o file
in any directory on the /usr1, /usr2,
and /usr3 file systems. |
![]() ![]() ![]() |
![]() ![]() ![]() Exclude the .o files
found in the root directory in the usr2 file system only. |
![]() ![]() ![]() |
Exclude the .obj files
found in the root directory in the d: drive only. |
|
![]() ![]() ![]() Exclude any file that resides under
the tmp directory found in any file system. |
![]() ![]() ![]() |
Exclude any file that resides under
the tmp directory found on any drive. |
|
![]() ![]() ![]() Exclude the entire directory structure /var/spool from
all processing. |
![]() ![]() ![]() |
![]() ![]() ![]() Exclude a single file system from
backup processing. |
![]() ![]() ![]() |
![]() ![]() ![]() Exclude all file systems mounted
anywhere in the /test/myfs/fs01 and /test/myfs/fs02 directory
tree from backup processing. |
![]() ![]() ![]() |
![]() ![]() ![]() Exclude the /home/mydir/test1 directory
and any files and subdirectories under it. |
![]() ![]() ![]() |
Exclude the c:\mydir\test1 directory
and any files and subdirectories under it. |
|
![]() ![]() ![]() Exclude all directories under the /home/mydir directory
with names beginning with test. |
![]() ![]() ![]() |
Exclude all directories under the \mydir directory
with names beginning with test. |
|
![]() ![]() ![]() Exclude all directories directly
under the /mydir directory with names beginning with test,
on any file system. |
![]() ![]() ![]() |
Exclude all directories directly
under the \mydir directory with names beginning with test,
on any drive. |
|
![]() ![]() Exclude the raw logical volume from
image backup. |
![]() ![]() |
Exclude the raw logical volume from
image backup. |
|
![]() ![]() ![]() Exclude all symbolic links or aliases
(aliases apply to Mac OS X) from backup processing, except for the Docs directory
for user1. |
![]() ![]() ![]() |
Exclude all directories and files
on the local drives, except the c: drive. |
|
Exclude all files during backup with
an extension of bak, except those found on the