Assign a management class to files
A management class defines when your files are included in a backup, how long they are kept on the server, and how many versions of the file the server should keep.
The server administrator selects a default management class. You can specify your own management class to override the default management class.
To assign a management class other than the default to directories, use the dirmc option in your options file.
You can assign a management class for a file or file group by using an include statement in your options file. You can also assign a management class by using an include statement in include-exclude file specified by the inclexcl option. Management class names are not case-sensitive.
Using the command-line client, to associate all files in the costs
directory
with the management class named budget
, you would
enter:
include /home/proj2/costs/* budget
include c:\adsm\proj2\costs\* budget
To specify a management class named managall
to
use for all files to which you do not explicitly assign a management
class, enter the following:
include /.../* managall
include ?:\...\* managall
The following examples show how to assign a management class to files:
exclude /.../*.sno
include /home/winter/.../*.ice mcweekly
include /home/winter/december/*.ice mcdaily
include /home/winter/january/*.ice mcmonthly
include /home/winter/february/white.sno
exclude ?:\...\*.sno
include c:\winter\...\*.ice mcweekly
include c:\winter\december\*.ice mcdaily
include c:\winter\january\*.ice mcmonthly
include c:\winter\february\white.sno
Processing follows these steps:
- The file white.sno in the february directory in the winter directory is backed up following bottom-up processing rules. Because you did not specify a management class on this statement, the file is assigned to the default management class.
- Any file with an extension of
ice
in the january directory is assigned to the management class namedmcmonthly
. - Any file with an extension of
ice
in the december directory is assigned to the management class namedmcdaily
. - Any other files with an extension of
ice
in any directory under the winter directory are assigned to the management class namedmcweekly
. - Any file with an extension of
sno
in any directory is excluded from backup. The exception to this rule is white.sno in the february directory, which is in the winter directory.
To specify your own default management class mgmt_class_name
for
files that are not explicitly included, put the following statement
at the top of your include list:
include /.../* mgmt_class_name
include ?:\...\* mgmt_class_name
When you archive a file using the graphical user interface, you can select a different management class to override the management class assigned to the file.