On 11:27, marted� 15 ottobre 2002, Toralf Lund wrote:

> > This is pretty easy to solve with a separate dumptype and excludelist
> > for the toplevel directory.  For example I have a large fs called /w.
> > Under it are several large, seldom changing dirs, call them a, c, and e.
> > But there are also other more active and smaller dirs called b, d, and
> > ...
> > where ... might be changing.
> >
> > In my disklist I have entries /w/a, /w/c, and /w/e using my normal tar
> > dumptype and and exclude list file that excludes ./tmp, ./dumps, ...
> >
> > I also have a disklist entry for /w using a dumptype named "normal tar
> > dumptype"-w and an exclude list file named "..."-w.  It excluded ./tmp,
> > ./dumps, and all the same stuff but also ./a, ./c, and ./e.
>
> It would perhaps be even simpler to keep everything consistent if you 
> could have multiple "exclude" entries in dumptype spec, but I understand 
> this is possible in Amanda 2.4.3.

Yep!

I also have a "/w" filesystem (i'm not joking :), containing some VeryBigDirs 
(/w/video, /w/music, etc) and a lot of small subdirs (/w/tmp /w/install etc).

And I also the same hack: a global "/w" disklist, with a custom exclude file 
that keeps out the backup "./video ./music etc etc), a single disklist 
entries for each of the excluded dirs.

It works fine, but w/out the multiple exclude entries is a bad job to tuneup 
exclude files (I'm using 2.4.2p2 and this feature is not present).

Anyway, IMHO the best solution is a "smarter" disklist, where you can set:

        1. the server name
        2. the backup "filesystem name"
        3. a LIST (with or w/out regular expr, but A LIST) of
           filesystems and/or directories to feed tar

(the p.2 is about the fact that you cannot name a backup by it's filesystem 
name when you can have a list of dirs instead of one).

Obviously this works only using GNUTAR, but there are too many caveats about 
the use of DUMP to be included in my favorite programs :-)

Mmmm ... It's a lot of year that I use amanda, but I've not time to follow 
alle the messages in this mailing list. I recently see strange (to me) 
disklist examples, like:

> hosta /diskA/all /diskA {
>        # all directories except the one that start with [a-u]
>        high-tar
>        exclude "./[a-u]*"
>        } 1
> hosta /diskA/ag /diskA {
>        # all directories that start with [a-g] except big1 and big2
>        high-tar
>        include "./[a-g]*"
>        exclude "./big1" "./big2"
>        } 1

Can we define complex parameters in disklist using square brackets? What 
release of amanda is required to do this?

Cheers,

-- 
   | Lorenzo Canovi
   | [EMAIL PROTECTED]
   | http://www.lcanovi.com

Reply via email to