I'm running Amanda 3.4.3 (built under Ubuntu from Jose's Debian
"experimental" source package, v3.4.3-1).
The man page for "amlabel" includes the following paragraph:
Label 'label' doesn't match labelstr 'labelstr'
The given label does not match the configured labelstr. Even with
-f, this is an error.
... but in practice it lets me create labels that don't match without
any warning:
======
# amgetconf TestBackup labelstr
"^TESTBACKUP-[0-9][0-9]*$"
# su backup -c "amlabel TestBackup BLAH-05 slot 5"
Reading label...
Found an empty tape.
Writing label 'BLAH-05'...
Checking label...
Success!
# grep BLAH tapelist
0 BLAH-05 reuse BLOCKSIZE:32 POOL:TestBackup STORAGE:TestBackup
CONFIG:TestBackup
======
Other commands do show that the label doesn't match the labelstr, though:
======
# su backup -c "amtape TestBackup show 1,5"
slot 1: date X label TESTBACKUP-01
slot 5: date X label BLAH-05 (label do not match labelstr)
======
Am I correct that amlabel should be refusing to create this non-matching
label?
Thanks.
Nathan
----------------------------------------------------------------------------
Nathan Stratton Treadway - [email protected] - Mid-Atlantic region
Ray Ontko & Co. - Software consulting services - http://www.ontko.com/
GPG Key: http://www.ontko.com/~nathanst/gpg_key.txt ID: 1023D/ECFB6239
Key fingerprint = 6AD8 485E 20B9 5C71 231C 0C32 15F3 ADCD ECFB 6239