ÐÐÑÐÑÐ ÐÐÑÐÐÐÐ wrote:

amlabel: label svn16 doesn't match labelstr "^svn[1-25][1-25]*$"

in amanda.conf labelstr has a following appearance:
labelstr "^svn[1-25][1-25]*$"

Learn something more about regular expressions again.

Between square brackets is a set of characters, and a range
indicate just a character range: "[1-39]" means 1, or 2, or 3 or 9.

The above "[1-25]" means: "1" or "2" or "5".
Which fails because it encounters a "6".

A better label is:  "^svn[0-9][0-9]$".

The label is just to protect you from accidently overwriting
a tape having nothing to do with amanda, and to avoid mixing
different configurations of tapes (when you multiple configs,
e.g. one for archiving one for daily, or one for that department
and another config for a different department).
There is no need to limit the possible range of numbers to 25
in the labelstring -- too strict.



--
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:  [EMAIL PROTECTED]
***********************************************************************
* 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          *
***********************************************************************




  • amlabel question Сергій Котенко
    • Re: amlabel question Paul Bijnens

Reply via email to