Amanda uses labels to identify volumes: amdump(8) and amflush(8) verify the label before writing to make sure the proper volume is loaded, and the recovery programs use the label to ensure they are reading the data they expect.
If no [slot] is given, then amlabel labels the tape in the current slot of the default changer. If a slot is given, it labels the volume in that slot. Label may be any string that does not contain whitespace and that matches the labelstr (see amanda.conf(5)).
This command also appends the new volume to the tapelist(5) file, so that they will be used in the order they are labeled (depending on the taperscan in use --- see amanda-taperscan(7)).
As a precaution, amlabel will not write a label if the volume already contains an active label or if the label specified is on an active tape. The [-f] (force) flag bypasses these verifications.
-f
--version
-o configoption
Write an Amanda label with the string "DMP000" on the current volume:
% amlabel daily DMP000
Label the tape in slot 3 of the changer with the label "DMP003":
% amlabel daily DMP003 slot 3
Label 'label' doesn't match labelstr 'labelstr'
Label 'label' already on a volume
Found label 'label', but it is not from configuration config.
Volume with label 'label' contains data from this configuration.
amanda(8), amanda.conf(5), tapelist(5), amanda-taperscan(7), amdump(8), amflush(8)
The Amanda Wiki: : http://wiki.zmanda.com/
James da Silva <jds@amanda.org>
Stefan G. Weichinger <sgw@amanda.org>
Dustin J. Mitchell <dustin@zmanda.com>