Exclude everything, include certain directories

lipi

ADSM.ORG Member
Joined
Jan 14, 2015
Messages
46
Reaction score
0
Points
0
PREDATAR Control23

Hi!,
My question is simple.

I want to set up a client option set (CLOPTSET_HOME) and some client options to achieve the following constraints:

a)exclude everything from backup
b)include /home/* , c:/Users/* and /Users/*
c)must work in Windows, MacOs, and Linux (case sensitiveness)
d)I have only one filesystem, / or C:

Is it possible with TSM 7.1?

If it's possible I'll apply this cloptset to some clients on the purpose to make'em backup only their homes.

My impression is that TSM works the opposite way, it includes everything and then you have to create a horrible exclude list of regexps to achieve what you need.
 
PREDATAR Control23

This is the extremelly ugly solution:

Code:
define clientopt CLOPTSET_HOME INCLEXCL     "exclude /*"
define clientopt CLOPTSET_HOME INCLEXCL     "exclude /.*"
define clientopt CLOPTSET_HOME INCLEXCL     "exclude.dir /.*"
define clientopt CLOPTSET_HOME INCLEXCL     "exclude.dir c:/[a-tv-z0-9]*"
define clientopt CLOPTSET_HOME INCLEXCL     "exclude.dir /[a-gi-zA-TV-Z0-9]*"
define clientopt CLOPTSET_HOME INCLEXCL     "exclude.dir /h[a-np-zA-Z0-9]*"
define clientopt CLOPTSET_HOME INCLEXCL     "exclude.dir /ho[a-ln-zA-Z0-9]*"
define clientopt CLOPTSET_HOME INCLEXCL     "exclude.dir /hom[a-df-zA-Z0-9]*"
define clientopt CLOPTSET_HOME INCLEXCL     "exclude.dir /U[a-rt-zA-Z0-9]*"
define clientopt CLOPTSET_HOME INCLEXCL     "exclude.dir /Us[a-df-zA-Z0-9]*"
define clientopt CLOPTSET_HOME INCLEXCL     "exclude.dir /Use[a-qs-zA-Z0-9]*"
define clientopt CLOPTSET_HOME INCLEXCL     "exclude.dir /User[a-rt-zA-Z0-9]*"
define clientopt CLOPTSET_HOME INCLEXCL     "exclude.dir c:/U[a-rt-z0-9]*"
define clientopt CLOPTSET_HOME INCLEXCL     "exclude.dir c:/Us[a-df-z0-9]*"
define clientopt CLOPTSET_HOME INCLEXCL     "exclude.dir c:/Use[a-qs-z0-9]*"
define clientopt CLOPTSET_HOME INCLEXCL     "exclude.dir c:/User[a-rt-z0-9]*"
define clientopt CLOPTSET_HOME INCLEXCL     "exclude.dir /Users?*"
define clientopt CLOPTSET_HOME INCLEXCL     "exclude.dir c:/Users?*"
define clientopt CLOPTSET_HOME INCLEXCL     "exclude.dir /home?*"
define clientopt CLOPTSET_HOME INCLEXCL     "exclude.dir /h"
define clientopt CLOPTSET_HOME INCLEXCL     "exclude.dir /ho"
define clientopt CLOPTSET_HOME INCLEXCL     "exclude.dir /hom"
define clientopt CLOPTSET_HOME INCLEXCL     "exclude.dir /U"
define clientopt CLOPTSET_HOME INCLEXCL     "exclude.dir /Us"
define clientopt CLOPTSET_HOME INCLEXCL     "exclude.dir /Use"
define clientopt CLOPTSET_HOME INCLEXCL     "exclude.dir /User"
define clientopt CLOPTSET_HOME INCLEXCL     "exclude.dir c:/U"
define clientopt CLOPTSET_HOME INCLEXCL     "exclude.dir c:/Us"
define clientopt CLOPTSET_HOME INCLEXCL     "exclude.dir c:/Use"
define clientopt CLOPTSET_HOME INCLEXCL     "exclude.dir c:/User"
 
PREDATAR Control23

You can't mix the Windows and Unix/Linux. You will get errors that paths are invalid. You should setup 2 client option set, one for Windows and one for the rest.
 
PREDATAR Control23

And you did not include anything, but I realize it's a work in progress, so you may have not gotten to it yet.
 
PREDATAR Control23

You can't mix the Windows and Unix/Linux. You will get errors that paths are invalid. You should setup 2 client option set, one for Windows and one for the rest.

Technically I can mix it. I'll only receive warnings but I don't care. Is there any other possible problem rather than the warnings?

Forget about this, what about my original question, how to exclude everything and include certain paths?

Btw, sorry for the last post, the list was not completed, but anyway, TSM performs a "DOMAIN local-all" by default.
 
PREDATAR Control23


Thank you, basically the concept shown in the link is what I am doing. For me not having the possibility to do an include list instead of an exclude list is an important lack of feature.

Pd. The example you linked in the IBM webpage is wrong:
- exclude.dir /fs1/[1-9]*
+ exclude.dir /fs1/[0-9]*

Moreover /fs1/d , /fs1/di and /fs1/dir will also be backed up.


regards,
Felip M
 
PREDATAR Control23

If you are doing scheduled backups, just specify the directory you want to backup in the object field.
Code:
objects=c:\users\*
 
Top