.\" Title: amlabel
.\" Author: James da Silva <jds@amanda.org>
.\" Generator: DocBook XSL Stylesheets vsnapshot_8273 <http://docbook.sf.net/>
-.\" Date: 10/18/2010
+.\" Date: 06/02/2011
.\" Manual: System Administration Commands
-.\" Source: Amanda 3.2.0
+.\" Source: Amanda 3.3.0
.\" Language: English
.\"
-.TH "AMLABEL" "8" "10/18/2010" "Amanda 3\&.2\&.0" "System Administration Commands"
+.TH "AMLABEL" "8" "06/02/2011" "Amanda 3\&.3\&.0" "System Administration Commands"
.\" -----------------------------------------------------------------
.\" * set default formatting
.\" -----------------------------------------------------------------
amlabel \- label an Amanda tape
.SH "SYNOPSIS"
.HP \w'\fBamlabel\fR\ 'u
-\fBamlabel\fR \fIconfig\fR \fIlabel\fR [slot\ \fIslot\fR] [\fB\-f\fR] [\fB\-\-version\fR] [\fB\-o\fR\ \fIconfigoption\fR...]
+\fBamlabel\fR [\fB\-\-barcode\ \fR\fB\fIbarcode\fR\fR] [\fB\-\-meta\ \fR\fB\fImeta\-label\fR\fR] [\fB\-\-assign\fR] [\fB\-f\fR] [\fB\-\-version\fR] [\fB\-o\fR\ \fIconfigoption\fR...] \fIconfig\fR [\fIlabel\fR] [slot\ \fIslot\fR]
.SH "DESCRIPTION"
.PP
This command applies a label to an Amanda volume, erasing the volume in the process\&.
.PP
If no
[\fIslot\fR]
+and no
+[\fIbarcode\fR]
is given, then
\fBamlabel\fR
-labels the tape in the current slot of the default changer\&. If a slot is given, it labels the volume in that slot\&.
+labels the tape in the current slot of the default changer\&. If a slot is given, it labels the volume in that slot\&. If a barcode is given, it labels the volume with that barcode\&.
\fILabel\fR
may be any string that does not contain whitespace and that matches the
\fBlabelstr\fR
(see
\fBamanda.conf\fR(5))\&.
.PP
+If
+[\fIlabel\fR]
+is not given, an autolabel is generated, see
+\fBautolabel\fR
+in
+\fBamanda.conf\fR(5)\&.
+.PP
+If
+[\fB\-\-assign\fR]
+is given, the barcode and meta\-label are assigned to the label without labeling the volume\&. The label must already be in the tapelist file\&.
+.PP
This command also appends the new volume to the
\fBtapelist\fR(5)
file, so that they will be used in the order they are labeled (depending on the taperscan in use \(em see
(force) flag bypasses these verifications\&.
.SH "OPTIONS"
.PP
+\fB\-\-barcode \fR\fB\fIbarcode\fR\fR
+.RS 4
+With
+[\-\-assign], assign the barcode to the label\&. Without
+[\-\-assign], label the volume with that barcode\&.
+.RE
+.PP
+\fB\-\-meta \fR\fB\fImeta\-label\fR\fR
+.RS 4
+Assign the meta label to the label after labeling the volume\&.
+.RE
+.PP
+\fB\-\-assign\fR
+.RS 4
+Assign the barcode or meta\-label to the label without labeling the volume\&. The label must already be in the tapelist file\&.
+.RE
+.PP
\fB\-f\fR
.RS 4
Force the label operation; see above