Re: RegEx not working?
2007-05-10 19:12:14
It was a bug if it worked before.
The regex works correctly.
[14] is 1 or 4
You want "^VOL14[0-9]".
Jean-Louis
Richard Stockton wrote:
Hi there,
I have 3 separate configs running on one server (bak13, bak14, bak15).
In the past I have made sure that they did not use each other's tapes
by use of the label regex. Here is the regex for bak14;
labelstr "^VOL[14][0-9]" # label constraint regex: all tapes must match
The other 2 are similar, replacing only the "14" with "13" or "15".
However, when I run "amcheck bak14" with the wrong tape in the drive,
I get this message;
==================================================================
Subject: BAK-05 /bak14 AMANDA PROBLEM: FIX BEFORE RUN, IF POSSIBLE
Amanda Tape Server Host Check
-----------------------------
read label `VOL132', date `20070510005900'
label VOL132 match labelstr but it not listed in the tapelist file.
(expecting a new tape)
Server check took 61.588 seconds
Amanda Backup Client Hosts Check
--------------------------------
Client check: 1 host checked in 0.183 seconds, 0 problems found
(brought to you by Amanda 2.5.1p3)
==================================================================
Why is the above regex matching the label for bak14 which should only
accept "VOL140" through "Vol149"? This exact same regex appears to
work properly in earlier versions of amanda.
TIA for any enlightenment.
- Richard
|
|
|