![]() |
![]() |
The exclude options exclude objects from backup or archive services. For example, you might want to exclude all temporary files, any local caches of network files, all files that contain compiled object code that you can easily reproduce using other methods, or your operating system files.
You can exclude specific files from encryption processing during a backup.
Notes:
Exclude any system files that could corrupt the operating system when recovered. You should also exclude the client directory containing the client files.
Use wildcard characters to exclude a broad range of files. See "Including and Excluding Groups of Files" for a list of wildcard characters that you can use. Then, if necessary, use the include option to make exceptions.
To exclude an entire directory called any/test, enter the following:
exclude.dir nw2:\sys:any/test
To exclude subdirectories that begin with test under the any directory, enter the following:
exclude.dir nw2:\sys:any/test*
Wildcards are not supported for the server name or volume name. If you do not specify a server name, Tivoli Storage Manager uses the local server name.
Attention: See "Excluding System Files" for a list of files that you should always exclude.
If you want to exclude specific files or groups of files from compression processing during a backup or archive operation, consider the following:
If you set the compression option to yes and no exclude.compression statements exist, Tivoli Storage Manager considers all files for compression processing.
exclude servera\sys:proj/*.* exclude.compression servera\sys:proj/file.txt include servera\sys:proj/file.txt
Tivoli Storage Manager examines the statements (reading from bottom to top) and determines that servera\sys:proj/file.txt is a candidate for back up. Tivoli Storage Manager then examines the exclude.compression servera\sys:proj/file.txt statement and determines that it is not a candidate for compression processing.
Options File
Place these options in the client options file dsm.opt.
Syntax
>>-options pattern---------------------------------------------><
However, you can still back up nw6\sys:test/dan/data1, its files, and all its subdirectories and their files using a selective backup, as follows:
dsmc sel -subdir=yes nw6\sys:test/dan/data1/
However, the next time you perform an incremental backup, these backup versions are expired. If you exclude a directory that was previously included, Tivoli Storage Manager marks existing backup versions of the files and directories beneath it inactive during the next incremental backup. Use this option to exclude a portion of your data in which no underlying files need to be backed up. The Tivoli Storage Manager Client API does not support this option.
Parameters
If the pattern begins with a single or double quote or contains any embedded blanks or equal signs, you must surround the value in either single (') or double (") quotation marks. The opening and closing quotation marks must be the same type of quotation marks.
Examples
exclude servera\*:.../swapper.dat exclude n1\*:io.sys exclude tfr\*:.../spart.par exclude nw2\sys:*/budget.fin exclude nw6\sys:devel/* exclude.archive servera*:/.../events.log exclude.compression nw6\sys:devel/* exclude.encrypt servera\*:.../gordon.dat