Selecting and Excluding Drives in TSM

You can select and exclude drives from scheduled backups by placing an entry in the DSM.OPT file on the client, with a line which looks like this for a Netware client
  DOMain      DATA:    APPLICS:   SYS:  
or for a windows client
  DOMAIN      c: d: 
The problem with these approaches is that you need to remember to update the dsm.opt file if you add new drives
  DOMAIN ALL-LOCAL
will backup everything. A good variant, if you never wanted to backup your SYS: drives for example is
  DOMAIN ALL-LOCAL -SYS:
This means that all drives are backed up except the SYS: drive, and you do not need to change the dsm.opt file as drives are added or removed. Specific selection criteria for the Windows System Object, or the Netware eDirectory (NDS) are given below.
However, this approach will only work if you are backing up at domain level, which is the normal approach with a scheduled backup. If you specifically select a volume that is excluded in the dsm.opt file, then it will be backed up.
   dsmc incremental sys:\ -subdir=yes
will backup the entire SYS: volume, even though it is excluded in the domain statement. This is not necessarily a bad thing, it means that you can exclude SYS: from scheduled backups, but when you really want a backup, you can do it manually. This approach will also allow you to backup selected files or directories from an excluded disk
   dsmc selective sys:\tivoli\tsm\* -subdir=yes
If you absolutely never want to let anyone backup the SYS: volume in any circumstances, then use EXCLUDE statements as these will always apply. To exclude an entire disk you need two commands, one to exclude the directories and one to exclude the files in the root folder, like this (Technically, this does not quite exclude the whole disk as the root of the volume itself will be backed up once).
   exclude sys:\*
   exclude.dir sys:\*

 or

   exclude c:\*
   exclude.dir c:\* 
So now if you try to backup with the command
   dsmc selective sys:\tivoli\tsm\* -subdir=yes
nothing will happen, because those files are always excluded.
Previous
Next Post »