Imported Upstream version 3.3.1
[debian/amanda] / man / amlabel.8
index 2907a4ef1a2d192db9b79b4487926cccd101f89e..66c1862d30d47bda780ba9aa3e7e2c56687aed27 100644 (file)
@@ -1,13 +1,22 @@
 '\" t
 .\"     Title: amlabel
 .\"    Author: James da Silva <jds@amanda.org>
-.\" Generator: DocBook XSL Stylesheets vsnapshot_8273 <http://docbook.sf.net/>
-.\"      Date: 06/01/2010
+.\" Generator: DocBook XSL Stylesheets v1.76.1 <http://docbook.sf.net/>
+.\"      Date: 02/21/2012
 .\"    Manual: System Administration Commands
-.\"    Source: Amanda 3.1.0
+.\"    Source: Amanda 3.3.1
 .\"  Language: English
 .\"
-.TH "AMLABEL" "8" "06/01/2010" "Amanda 3\&.1\&.0" "System Administration Commands"
+.TH "AMLABEL" "8" "02/21/2012" "Amanda 3\&.3\&.1" "System Administration Commands"
+.\" -----------------------------------------------------------------
+.\" * Define some portability stuff
+.\" -----------------------------------------------------------------
+.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+.\" http://bugs.debian.org/507673
+.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
+.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+.ie \n(.g .ds Aq \(aq
+.el       .ds Aq '
 .\" -----------------------------------------------------------------
 .\" * set default formatting
 .\" -----------------------------------------------------------------
@@ -22,7 +31,7 @@
 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\&.
@@ -35,15 +44,28 @@ verify the label before writing to make sure the proper volume is loaded, and th
 .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
@@ -56,6 +78,23 @@ will not write a label if the volume already contains an active label or if the
 (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
@@ -84,26 +123,26 @@ Label the tape in slot 3 of the changer with the label "DMP003":
 .fi
 .SH "MESSAGES"
 .PP
-Label \'\fIlabel\fR\' doesn\'t match labelstr \'\fIlabelstr\fR\'
+Label \*(Aq\fIlabel\fR\*(Aq doesn\*(Aqt match labelstr \*(Aq\fIlabelstr\fR\*(Aq
 .RS 4
 The given label does not match the configured labelstr\&. Even with
 \fB\-f\fR, this is an error\&.
 .RE
 .PP
-Label \'\fIlabel\fR\' already on a volume
+Label \*(Aq\fIlabel\fR\*(Aq already on a volume
 .RS 4
 The given label is already on another volume in the tapelist, and Amanda will not write it to this volume unless forced\&.
 .RE
 .PP
-Found label \'\fIlabel\fR\', but it is not from configuration \fIconfig\fR\&.
+Found label \*(Aq\fIlabel\fR\*(Aq, but it is not from configuration \fIconfig\fR\&.
 .RS 4
 The label
 \fBamlabel\fR
-found on the volume does not match this configuration\'s
+found on the volume does not match this configuration\*(Aqs
 \fBlabelstr\fR, so it is probably part of a different Amanda configuration\&. Amanda will not overwrite the label unless it is forced\&.
 .RE
 .PP
-Volume with label \'\fIlabel\fR\' contains data from this configuration\&.
+Volume with label \*(Aq\fIlabel\fR\*(Aq contains data from this configuration\&.
 .RS 4
 The label
 \fBamlabel\fR