Backup to new Mgmtclass

we defined a new Policy domain and Management Class on our TSM-Server (linux) and then we assigned it to a host. But when i run a backup via command line on this host, the backupfiles stored by the default mgmt class. Did we miss somthing in the configuration and how we can backup to this new mgmtclass from commandline?

Many thanks in advance!

anon-202409

ADSM.ORG Senior Member Joined Nov 16, 2005 Messages 719 Reaction score 32 Points 0 Location Germany adjust config file
include *

or define the as default

maxdb82

Active Newcomer
Joined Jul 19, 2010 Messages 12 Reaction score 0 Points 0

Sure, you have to bind a specific filesystem to a management class by including it in the inclexcl file, in order to use it.

INCLUDE "/home/. /*" MC_1MONTH

If you do not specify a management class all the backupped filesystems will be bound to the default management class.

If you specify a default management class for the domain, but do not include it in the inclexcl file, the backupped filesystem will be saved with the retention and version of the default management class, but in a query output they will still be bound with the 'DEFAULT' label (making harder to discover their retention).

dabe

Newcomer
Joined May 17, 2013 Messages 3 Reaction score 0 Points 0

thanks for your reply! But how can i use the incl/excl file on the command line with the dsmc command? Our Developer run often backups from the command line or with batchscripts, for example:

dsmc incremental /workspace/ -optfile=dsm.opt -subdir=yes -compression=no

We know there is a option for the archive command (-archmc) like

dsmc archive /workspace/* -subdir=yes -archmc=archive_10Y

but we don't know how we can backup with the dsmc backup command to a different Mgmtclass e.g. developer filespaces.

tsm_dude

ADSM.ORG Senior Member Joined Dec 12, 2007 Messages 334 Reaction score 22 Points 0

As Domino and maxdb82 state in there reply, you need the includes.
Perhaps create another dsm.opt called dsm.developer.opt and put the include / mgmt in there.
Then call it with dsmc -optfile= ./dsm.developer.opt when running backup
With Archive simply specify your mgmt with archmc=

dabe

Newcomer
Joined May 17, 2013 Messages 3 Reaction score 0 Points 0

OK, i created a new .opt file with the INCLUDE "/backup/. /*" MGMT_CLASS option, but i get the following output in my logfile:

ANS1036S Invalid option 'INCLUDE' found in options file '/opt/tivoli/tsm/client/ba/bin/dsm_test.opt'
at line number : 23


It seems that the INCLUDE option is not supported in the .opt file.

Is there another solution to backup from commandline to a different Mgmtclass?

smajl

ADSM.ORG Senior Member Joined Dec 10, 2009 Messages 186 Reaction score 23 Points 0 Location Brno

a) insert "include" statement into stanza in dsm.sys
b) insert "inclexcl /your/path/to/exclude/list/file/inclexc.txt" in your dsm.sys stanza and insert "include" statement(s) in this file
http://pic.dhe.ibm.com/infocenter/t. =/com.ibm.itsm.client.doc/r_opt_inclexcl.html

suleman

Active Newcomer
Joined Oct 8, 2010 Messages 41 Reaction score 0 Points 0

I have aix client and want to backup "/backup/*" with Monthly_MGT_CLASS but not able to do that it always select default management class.

SErvername TSMMAIN
COMMMethod TCPip
TCPPort 1500
TCPServeraddress xx.xx.xx.xx #node.domain.company.COM
PASSWORDAccess generate
passworddir /usr/tivoli/tsm/client/ba/bin64/mainpwd
NODENAME TSMMAIN_MONTHLY
include /backup/* MONTHLY_MGT_CLASS

Thanks in advance.

anon-202409

ADSM.ORG Senior Member Joined Nov 16, 2005 Messages 719 Reaction score 32 Points 0 Location Germany

include "/backup/. /*" MONTHLY_MGT_CLASS

suleman

Active Newcomer
Joined Oct 8, 2010 Messages 41 Reaction score 0 Points 0

include "/backup/. /*" MONTHLY_MGT_CLASS

Thanks for your reply and set as mentioned but no success.

SErvername TSMMAIN
COMMMethod TCPip
TCPPort 1500
TCPServeraddress xx.xx.xx.xx #node.domain.company.COM
PASSWORDAccess generate
passworddir /usr/tivoli/tsm/client/ba/bin64/mainpwd
NODENAME TSMMAIN_MONTHLY
include "/backup/. /*" MONTHLY_MGT_CLASS

suleman

Active Newcomer
Joined Oct 8, 2010 Messages 41 Reaction score 0 Points 0

I set as follows and able to backup as i wish, don't know what is the reason behind this as i already have clients as previous configuration.

SErvername TSMMAIN
COMMMethod TCPip
TCPPort 1500
TCPServeraddress xx.xx.xx.xx #node.domain.company.COM
PASSWORDAccess generate
passworddir /usr/tivoli/tsm/client/ba/bin64/mainpwd
NODENAME TSMMAIN_MONTHLY
include "/. /*" MONTHLY_MGT_CLASS

dbohm

Newcomer
Joined Oct 14, 2011 Messages 2 Reaction score 0 Points 0

thanks for your reply! But how can i use the incl/excl file on the command line with the dsmc command? Our Developer run often backups from the command line or with batchscripts, for example:

dsmc incremental /workspace/ -optfile=dsm.opt -subdir=yes -compression=no

We know there is a option for the archive command (-archmc) like

dsmc archive /workspace/* -subdir=yes -archmc=archive_10Y

but we don't know how we can backup with the dsmc backup command to a different Mgmtclass e.g. developer filespaces.

This request concerns me a little and let me explain why. I interpret this request as sometimes I want to back up the file using management class A and sometimes I want to back up the file using management class B. What will happen is each time you change the management class the file, including all previous versions of the file if the file is active, will have the management class changed. The question seems to imply that you want to have some versions of a backup file bound to one management class and other versions of the file bound to a different management class but TSM does not work this way.