Replying to: Gerhard Rentschler <g.rentschler AT RUS.UNI-STUTTGART DOT DE>
(Thu, 12
Feb 1998 11:41:20 +0100)
>Hi Rui,
>I've tried to make a subdirectory below root, namely /adsmtest/test2. It
>doesn't work either.
>Has anyone seen exclude.dir to work?
I have, with the limitations noticed. Let me check...
I have the folowing structure:
/# find /somedir
/somedir
/somedir/file.1.1
/somedir/otherdir
/somedir/otherdir/file.2.2
/somedir/otherdir/yetanother
/somedir/otherdir/yetanother/file.3.1
/somedir/otherdir/file.2.1
/somedir/onemore
/somedir/onemore/file.2.3
/somedir/onemore/file.2.4
/somedir/file.1.2
I run an incremental *without* exclusions, so I get all dirs and files
backed up. The nubmer of "objects inspected" is 4,036 Then I setup these
exclusions:
exclude.dir /somedir
Then I run anhoter incremental. I *should* get everything under /somedir
excluded but no file is expired. The number of objects inspected is still
4,036. If I change the exclude to:
exclude.dir /somedir/otherdir
/# dsmc incr /
[...]
Expiring--> 416 /somedir/otherdir/file.2.1 [Sent]
Expiring--> 416 /somedir/otherdir/file.2.2 [Sent]
Expiring--> 416 /somedir/otherdir/yetanother/file.3.1 [Sent]
Expiring--> 512 /somedir/otherdir/yetanother [Sent]
Expiring--> 512 /somedir/otherdir [Sent]
[...]
Total number of objects inspected: 4,032
So, /somedir/otherdir has been excluded completeley, and the number of
objects inspected is reduced by 4, which is the number of objects under
/somedir/otherdir. Now, let's try:
exclude.dir /somedir/*
/# dsmc incr /
[...]
Expiring--> 878 /somedir/onemore/file.2.3 [Sent]
Expiring--> 878 /somedir/onemore/file.2.4 [Sent]
Expiring--> 512 /somedir/onemore [Sent]
[...]
Total number of objects inspected: 4,029
Everything under /somedir has been excluded *except* the files directly on
/somedir, which can be excluded by:
exclude.dir /somedir/*
exclude.file /somedir/*
/# dsmc incr /
[...]
Expiring--> 416 /somedir/file.1.1 [Sent]
Expiring--> 416 /somedir/file.1.2 [Sent]
[...]
Total number of objects inspected: 4,030
Voila'. Of course, it would be *a lot* easier if "exclude /somedir" worked
as documented...
For the record:
ADSM Server 3.1.0.0
ADMS Client 3.1.0.1
AIX 4.2.1
--
Rui Malheiro,
Rui Malheiro,
6 Mil - Tecnologias de Informacao
URL: <http://www.6mil.pt/>
|