Thanks Jean-Louis!
I've figured it out (at last).

cheers,
jf

* Jean-Louis Martineau <jmartin...@carbonite.com> [20170110 11:59]:
> On 10/01/17 11:55 AM, Jean-Francois Malouin wrote:
> > * Jean-Louis Martineau <jmartin...@carbonite.com> [20170110 09:31]:
> >> The labelstr setting changed in 3.4
> >> $ man amanda.conf
> >>          labelstr string | MATCH-AUTOLABEL
> >>              Default: MATCH-AUTOLABEL. The tape label constraint regular
> >>              expression. All tape labels generated (see amlabel(8)) and
> >> used by
> >>              this configuration must match the regular expression. All
> >> autolabel
> >>              variable can be used. The keywork MATCH-AUTOLABEL use the
> >> autolabel
> >>              template as expression.
> >>
> >>              If multiple configurations are run from the same tape server
> >> host,
> >>              it is helpful to set their labels to different strings (for
> >>              example, "DAILY[0-9][0-9]*" vs. "ARCHIVE[0-9][0-9]*") to avoid
> >>              overwriting each other's tapes.
> >>
> >> If the match_autolabel key is set and TRUE, then the autolabel string is
> >> used for the template.
> >> if the match_autolabel key is not set or is FALSE, then the labelstr
> >> template is used.
> >>
> >> Jean-Louis
> >
> > Thanks Jean-Louis for the explanation.
> >
> > I still have a question: it seems as peer the man page that
> > MATCH-AUTOLABEL is a keyword but if I set it to false I get an
> > error when loading the config file:
> >
> > '/opt/amanda/etc/amanda/top/amanda.conf', line 22: configuration keyword 
> > expected
> >
> > Line 22 is:
> > match-autolabel false
> 
> match-autolabel is not a keyword, it is a field in the labelstr perl hash.
> You have nothing to change in the configuration file if you use a 
> labelstr template.
> 
> Jean-Louis
> >
> > ??
> > thanks,
> > jf
> >
> >> On 09/01/17 04:37 PM, Jean-Francois Malouin wrote:
> >>> Hi,
> >>>
> >>> Revamping a few scripts that I use with amanda-3.3.x in prevision of
> >>> transitioning to 3.4.1 and one is using a call to
> >>> Amanda::Config::getconf($CNF_LABELSTR).
> >>>
> >>> With Amanda-3.3.5 I get a simple string:
> >>>    
> >>> perl code:
> >>>    my $labelStr = Amanda::Config::getconf($CNF_LABELSTR);
> >>>    print "DEBUG: Got tape label to match => $labelStr\n";
> >>>
> >>> output:
> >>>    DEBUG: Got tape label to match => ^neo400-1_charm_[0-9][0-9]*
> >>>
> >>> but with 3.4.1 I get a ref to a hash and iterating through its keys I
> >>> get:
> >>>
> >>> perl code: Drobo_COMP
> >>>    my $labelStr = Amanda::Config::getconf($CNF_LABELSTR);
> >>>    print "DEBUG: Got tape label to match => $labelStr\n";
> >>>    foreach my $key ( keys %$labelStr) {
> >>>        print "DEBUG: labelStr: $key $labelStr->{$key}\n";
> >>>    }
> >>>
> >>> output:
> >>>    DEBUG: Got tape label to match => HASH(0x26b3888)
> >>>    DEBUG: labelStr: match_autolabel
> >>>    DEBUG: labelStr: template ^NEO-T48-B[0-9][0-9]*
> >>>
> >>> Where is this documented?
> >>> I looked at $amperldir/Amanda/Config.pm and I see nothing obvious...
> >>>
> >>> cheers,
> >>> jf
> >> Disclaimer
> >>
> >> The information contained in this communication from the sender is 
> >> confidential. It is intended solely for use by the recipient and others 
> >> authorized to receive it. If you are not the recipient, you are hereby 
> >> notified that any disclosure, copying, distribution or taking action in 
> >> relation of the contents of this information is strictly prohibited and 
> >> may be unlawful.
> >>
> >> This email has been scanned for viruses and malware, and may have been 
> >> automatically archived by Mimecast Ltd, an innovator in Software as a 
> >> Service (SaaS) for business. Providing a safer and more useful place for 
> >> your human generated data. Specializing in; Security, archiving and 
> >> compliance. To find out more visit the Mimecast website.
> 
> Disclaimer
> 
> The information contained in this communication from the sender is 
> confidential. It is intended solely for use by the recipient and others 
> authorized to receive it. If you are not the recipient, you are hereby 
> notified that any disclosure, copying, distribution or taking action in 
> relation of the contents of this information is strictly prohibited and may 
> be unlawful.
> 
> This email has been scanned for viruses and malware, and may have been 
> automatically archived by Mimecast Ltd, an innovator in Software as a Service 
> (SaaS) for business. Providing a safer and more useful place for your human 
> generated data. Specializing in; Security, archiving and compliance. To find 
> out more visit the Mimecast website.

Reply via email to