I might have made some progress on this but I'm not sure whether I'm dissapearing down a rabbit hole or not, so any feedback would be appreciated....
My theroy was that if I didn't use the '--autolabel' option in amvault and labelled my tertiary media manually (to match up the labels to the barcodes) it wouldn't subsequently trample over the label.
However, because my 'Daily' config file specifies labelstr "^AM[0-9]+$" I can't re-use the same labels on the tertiary media using amlabel (it complains that it is already assigned to a volume), so I decided the best option to acheive what I want was to use a different labelstr for the tertiary media, i.e. use AM%%%% for the secondary (vtapes) and IM%%%% for the tertiary (physical tapes).
So I did this:
Code:
amlabel Daily -f -otpchanger=ml6000 -olabelstr="^IM[0-9]+$" IM000# slot #
I can now run:
Code:
amvault -olabelstr="^IM[0-9]+$" --latest-fulls --label-template "IM%%%%" --dst-changer "ml6000" Daily
Which seems to work, and I'm hoping that without the '--autolabel' option amvault won't trample over the labels I set up using amlabel.
This all seems like a lot of faff though just to make sure the barcodes match the Amanda labels!