ADSM-L

Re: [ADSM-L] Incl/Excl Problem

2009-07-24 08:59:21
Subject: Re: [ADSM-L] Incl/Excl Problem
From: lindsay morris <lindsay AT TSMWORKS DOT COM>
To: ADSM-L AT VM.MARIST DOT EDU
Date: Fri, 24 Jul 2009 08:58:23 -0400
Wanda your two cents is worth at least a dime!

I never knew you could use a MINUS sign in the DOMAIN statement to
EXCLUDE a drive/filespace.
Perfect, easy solution for all those "bad=practice" customers who've
done this!
I hope they lurk here, read this and make the change.

Thank you!

------
Mr. Lindsay Morris
Principal
www.tsmworks.com
919-403-8260
lindsay AT tsmworks DOT com




On Jul 24, 2009, at Jul 24, 8:34 AM, Wanda Prather wrote:

Here's adding my 2c to the confusion:

I agree with Lindsay;  setting
DOMAIN D:
is dangerous, because that way all you get is D:, and if someone
adds an E:
drive later, it will be skipped.

So I recommend using Bill's notation:

Domain ALL-LOCAL   -C:
or
Domain ALL-LOCAL
Domain -C:

Domain statements are additive; so if you specify all-local  minus
C:, if
someone adds an E: drive later it will be correctly picked up.

However, the original poster wanted to back up a subdirectory on C:
If you exclude C: with a Domain statement, or with exclude.dir, you
can't
back up a subdirectory, because TSM will never traverse the C: drive
at all.

The only way to backup a subdirectory in C: without backing up all
of C: is

exclude c:\...\*
include c:\...\subdir\...\*

And that is going to give you a backup of all the files in subdir,
and any
subdirectories of subdir, AND a backup of all the other directory
objects on
C: as well. No way around that.

NOW for my quibble, which is with the use of this notation:
INCORRECT:
exclude c:\...\*.*

The include/exclude statements are doing a pattern match against the
long
file name.
If you use the notation "*.*", the include/exclude statement will
NOT match
any files that do not have a "." in the name.  There aren't a lot,
but you
will find some files in window with no suffix.  I have NEVER seen a
case in
a real TSM site where the use of this notation was correct, or
getting  the
intended results.

The correct notation is c:\...\*

the \ ...\ is a wildcard for any number of subdirectories (including 0
subdirectories), and the * is a pattern match for any number of
characters,
so it always works.

Unfortunately the incorrect use of c:\...\*.* persisted in the
client manual
for a long time,  but it was an artifact leftover from prehistoric
windows
versions, before windows used long file names.  And of course, it
still
persists in web-space (and probably will persist long after we're dead
because of that!).  But it's still incorrect.

W






On Thu, Jul 23, 2009 at 11:20 AM, lindsay morris
<lindsay AT tsmworks DOT com>wrote:

Well, not to quibble, Bill, but you can use exclude.dir to avoid
getting the C: directories, right?
And the problem of users / admins adding a drive in the future, and
TSM then SILENTLY skipping it due to DOMAIN D:,  is real.

I mean, I've seen this happen, and want to warn against this bad
practice.
Agree? Disagree?
------
Mr. Lindsay Morris
Principal
www.tsmworks.com
919-403-8260
lindsay AT tsmworks DOT com




On Jul 23, 2009, at Jul 23, 10:54 AM, Bill Boyer wrote:

I prefer to exclude it from the DOMAIN. That way you won't get the
directories on the C: drive. This is from the help.


   For example, in the following options Tivoli Storage Manager will
   process all local drives except for the c: drive, systemobject,
   and systemstate domain:

      domain ALL-LOCAL -c: -systemobject
      domain ALL-LOCAL -c: -systemstate



Bill Boyer
"Life is hard. After all, it kills you." - Katharine Hepburn



-----Original Message-----
From: ADSM: Dist Stor Manager [mailto:ADSM-L AT VM.MARIST DOT EDU] On
Behalf Of
lindsay morris
Sent: Thursday, July 23, 2009 10:27 AM
To: ADSM-L AT VM.MARIST DOT EDU
Subject: Re: Incl/Excl Problem

Well, there's a problem there:
Our ART product has found several customers that shot themselves in
the foot by doing this:
DOMAIN D:
because they don't want to back up C:, a stock image of windows-and-
office.

That works fine. But months later, the user adds drive E:, and TSM
silently skips it.

Better to use exclude of C:, IMHO

------
Mr. Lindsay Morris
Principal
www.tsmworks.com
919-403-8260
lindsay AT tsmworks DOT com




On Jul 23, 2009, at Jul 23, 10:05 AM, km wrote:

Even easier (no OS involvment) would be to use:

virtualmountpoint c:\dir
domain c:\dir

in dsm.opt

-km

On 23/07, Adrian Compton wrote:

Hi Patryk

I found the best way to selectively backup directories was to
create a
share on the directory, and you can then choose that share as a
domain
to backup in your opt file.

Hope this helps

Regards



Adrian Compton
Aspen Pharmacare Port Elizabeth
tel: +2741 4072855
Fax: +2741 453 7452
Cell: +27823204495
Email: acompton AT aspenpharma DOT com
-----Original Message-----
From: ADSM: Dist Stor Manager [mailto:ADSM-L AT VM.MARIST DOT EDU] On
Behalf Of
Patryk Bobak
Sent: 23 July 2009 09:37 AM
To: ADSM-L AT VM.MARIST DOT EDU
Subject: [ADSM-L] Incl/Excl Problem

Hi,

I have problem with Incl/Excl list on client. I've searched forum
and
google
but I cant find good solution. I want to backup only one selected
folder
(with subfolders and files) from C:. For example "C:\test\". I
tryed a
lot
of configurations with exclude, exclude.dir and includes, and it
backup
my
whole C: or dont backup anything.

TSM Client: 6.1 Windows, TSM Server: 5.5.0 z/OS

Patryk.



<Prev in Thread] Current Thread [Next in Thread>