3 .\" Author: James da Silva <jds@amanda.org>
4 .\" Generator: DocBook XSL Stylesheets v1.76.1 <http://docbook.sf.net/>
6 .\" Manual: System Administration Commands
7 .\" Source: Amanda 3.3.1
10 .TH "AMLABEL" "8" "02/21/2012" "Amanda 3\&.3\&.1" "System Administration Commands"
11 .\" -----------------------------------------------------------------
12 .\" * Define some portability stuff
13 .\" -----------------------------------------------------------------
14 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
15 .\" http://bugs.debian.org/507673
16 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
17 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
20 .\" -----------------------------------------------------------------
21 .\" * set default formatting
22 .\" -----------------------------------------------------------------
23 .\" disable hyphenation
25 .\" disable justification (adjust text to left margin only)
27 .\" -----------------------------------------------------------------
28 .\" * MAIN CONTENT STARTS HERE *
29 .\" -----------------------------------------------------------------
31 amlabel \- label an Amanda tape
33 .HP \w'\fBamlabel\fR\ 'u
34 \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]
37 This command applies a label to an Amanda volume, erasing the volume in the process\&.
39 Amanda uses labels to identify volumes:
43 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\&.
51 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\&.
53 may be any string that does not contain whitespace and that matches the
56 \fBamanda.conf\fR(5))\&.
60 is not given, an autolabel is generated, see
63 \fBamanda.conf\fR(5)\&.
67 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\&.
69 This command also appends the new volume to the
71 file, so that they will be used in the order they are labeled (depending on the taperscan in use \(em see
72 \fBamanda-taperscan\fR(7))\&.
76 will not write a label if the volume already contains an active label or if the label specified is on an active tape\&. The
78 (force) flag bypasses these verifications\&.
81 \fB\-\-barcode \fR\fB\fIbarcode\fR\fR
84 [\-\-assign], assign the barcode to the label\&. Without
85 [\-\-assign], label the volume with that barcode\&.
88 \fB\-\-meta \fR\fB\fImeta\-label\fR\fR
90 Assign the meta label to the label after labeling the volume\&.
95 Assign the barcode or meta\-label to the label without labeling the volume\&. The label must already be in the tapelist file\&.
100 Force the label operation; see above
105 Output version information
108 \fB\-o \fR\fB\fIconfigoption\fR\fR
110 See the "CONFIGURATION OVERRIDE" section in
115 Write an Amanda label with the string "DMP000" on the current volume:
117 % amlabel daily DMP000
120 Label the tape in slot 3 of the changer with the label "DMP003":
122 % amlabel daily DMP003 slot 3
126 Label \*(Aq\fIlabel\fR\*(Aq doesn\*(Aqt match labelstr \*(Aq\fIlabelstr\fR\*(Aq
128 The given label does not match the configured labelstr\&. Even with
129 \fB\-f\fR, this is an error\&.
132 Label \*(Aq\fIlabel\fR\*(Aq already on a volume
134 The given label is already on another volume in the tapelist, and Amanda will not write it to this volume unless forced\&.
137 Found label \*(Aq\fIlabel\fR\*(Aq, but it is not from configuration \fIconfig\fR\&.
141 found on the volume does not match this configuration\*(Aqs
142 \fBlabelstr\fR, so it is probably part of a different Amanda configuration\&. Amanda will not overwrite the label unless it is forced\&.
145 Volume with label \*(Aq\fIlabel\fR\*(Aq contains data from this configuration\&.
149 found on the volume still has valid data on it and Amanda will not overwrite it unless forced\&. Note that this does not distinguish between active and inactive volumes\&.
157 \fBamanda.conf\fR(5),
159 \fBamanda-taperscan\fR(7),
164 : http://wiki.zmanda.com/
167 \fBJames da Silva\fR <\&jds@amanda\&.org\&>
169 \fBStefan G\&. Weichinger\fR <\&sgw@amanda\&.org\&>
171 \fBDustin J\&. Mitchell\fR <\&dustin@zmanda\&.com\&>
173 Zmanda, Inc\&. (http://www\&.zmanda\&.com)