Amanda-Users

Re: amadmin force matches too many disks

2004-10-21 09:16:50
Subject: Re: amadmin force matches too many disks
From: Paul Bijnens <paul.bijnens AT xplanation DOT com>
To: Toralf Lund <toralf AT procaptura DOT com>
Date: Thu, 21 Oct 2004 14:37:14 +0200
Toralf Lund wrote:

I just noticed the following:

$ amadmin ks/incr force fileserv /scanner
amadmin: fileserv:/scanner/plankart is set to a forced level 0 at next run.
amadmin: fileserv:/scanner/golg is set to a forced level 0 at next run.
amadmin: fileserv:/scanner is set to a forced level 0 at next run.

Why did this happen? Shouldn't only "/scanner" be forced? (I have separate DLEs for two subdirectories indicated above; these are excluded in the "main" DLE config.)

That's because the arguments are interpreted as globs:

From "man amanda" (unfortunatly not a word about this in man amadmin)

HOST & DISK EXPRESSION
       All host  and  disk  arguments  to  programs  are  special
       expression.  The command apply to all disk that match your
       arguments.  This section describe the matcher.

       The matcher match by word, each word is a glob expression,
       word  are  separated by the separator '.' for host and '/'
       for disk. You can anchor the expression  at  left  with  a
       '^'.  You  can  anchor the expression at right with a '$'.
       The matcher is case insensitive for host but is case  sen-­
       sitive  for  disk.  A  match  succeed  if all word in your
       expression match contiguous word in the host or disk.

       [...snip...]

       Some examples:

         EXPRESSION      WILL MATCH              WILL NOT MATCH
         hosta           hosta                   hostb
                         hoSTA.dOMAIna.ORG
                         foo.hosta.org
       [...snip...]
         /usr            /usr
                         /usr/opt
         /usr$           /usr                    /usr/opt


Suprising he...

--
Paul Bijnens, Xplanation                            Tel  +32 16 397.511
Technologielaan 21 bus 2, B-3001 Leuven, BELGIUM    Fax  +32 16 397.512
http://www.xplanation.com/          email:  Paul.Bijnens AT xplanation DOT com
***********************************************************************
* I think I've got the hang of it now:  exit, ^D, ^C, ^\, ^Z, ^Q, F6, *
* quit,  ZZ, :q, :q!,  M-Z, ^X^C,  logoff, logout, close, bye,  /bye, *
* stop, end, F3, ~., ^]c, +++ ATH, disconnect, halt,  abort,  hangup, *
* PF4, F20, ^X^X, :D::D, KJOB, F14-f-e, F8-e,  kill -1 $$,  shutdown, *
* kill -9 1,  Alt-F4,  Ctrl-Alt-Del,  AltGr-NumLock,  Stop-A,  ...    *
* ...  "Are you sure?"  ...   YES   ...   Phew ...   I'm out          *
***********************************************************************



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