Imported Upstream version 2.6.0p2
[debian/amanda] / man / amlabel.8
1 .\"     Title: amlabel
2 .\"    Author: 
3 .\" Generator: DocBook XSL Stylesheets v1.73.2 <http://docbook.sf.net/>
4 .\"      Date: 08/22/2008
5 .\"    Manual: 
6 .\"    Source: 
7 .\"
8 .TH "AMLABEL" "8" "08/22/2008" "" ""
9 .\" disable hyphenation
10 .nh
11 .\" disable justification (adjust text to left margin only)
12 .ad l
13 .SH "NAME"
14 amlabel - label an Amanda tape
15 .SH "SYNOPSIS"
16 .HP 8
17 \fBamlabel\fR [\-f] \fIconfig\fR \fIlabel\fR [slot\ \fIslot\fR] [\-o\ \fIconfigoption\fR]...
18 .SH "DESCRIPTION"
19 .PP
20 All
21 \fIAmanda\fR
22 tapes must be pre\-labeled before they are used\.
23 \fIAmanda\fR
24 verifies the label in
25 \fBamdump\fR
26 and
27 \fBamflush\fR
28 before writing to make sure the proper tape is loaded\.
29 .PP
30 \fBAmlabel\fR
31 writes an
32 \fIAmanda\fR
33 label on the tape in the device specified by the
34 \fIamanda\.conf\fR
35 file in /usr/local/etc/amanda/\fIconfig\fR\.
36 \fILabel\fR
37 may be any string that does not contain whitespace and that matches the
38 \fIamanda\.conf\fR
39 \fBlabelstr\fR
40 regular expression option\. It is up to the system administrator to define a naming convention\.
41 .PP
42 \fBAmlabel\fR
43 appends the new tape to the
44 \fItapelist\fR
45 file so it will be used by
46 \fIAmanda\fR
47 before it reuses any other tapes\. When you
48 \fBamlabel\fR
49 multiple tapes, they will be used in the order you
50 \fBamlabel\fR
51 them\.
52 .PP
53 \fBAmlabel\fR
54 will not write the label if the tape contains an active
55 \fIAmanda\fR
56 tape or if the label specified is on an active tape\. The
57 \fB\-f\fR
58 (force) flag bypasses these verifications\.
59 .PP
60 An optional
61 \fIslot\fR
62 may be specified after the tape label\. If a tape changer is in use,
63 \fBamlabel\fR
64 will label the tape in the specified slot instead of the currently loaded tape\.
65 .PP
66 See the
67 \fBamanda\fR(8)
68 man page for more details about
69 \fIAmanda\fR\.
70 .SH "OPTIONS"
71 .PP
72 \fB\-o\fR \fIconfigoption\fR
73 .RS 4
74 See the "\fBCONFIGURATION OVERRIDE\fR" section in
75 \fBamanda\fR(8)\.
76 .RE
77 .SH "EXAMPLE"
78 .PP
79 Write an
80 \fIAmanda\fR
81 label with the string "DMP000" on the tape loaded in the device named in the
82 \fBtapedev\fR
83 option in /usr/local/etc/amanda/daily/amanda\.conf:
84 .nf
85 % amlabel daily DMP000 
86 .fi
87 .PP
88 Label the tape in slot 3 of the currently configured tape changer with the string "DMP003":
89 .nf
90 % amlabel daily DMP003 slot 3 
91 .fi
92 .SH "MESSAGES"
93 .PP
94 label \fIlabel\fR doesn\'t match labelstr \fIstr\fR
95 .RS 4
96 Label
97 \fIlabel\fR
98 on the command line does not match the
99 \fIlabelstr\fR
100 regular expression
101 \fIstr\fR
102 from
103 \fIamanda\.conf\fR\.
104 .RE
105 .PP
106 label \fIlabel\fR already on a tape
107 .RS 4
108 Label
109 \fIlabel\fR
110 is already listed as an active
111 \fIAmanda\fR
112 tape\.
113 .RE
114 .PP
115 no tpchanger specified in \fIpath\fR , so slot command invalid
116 .RS 4
117 The command line has the
118 \fBslot\fR
119 parameter but the
120 \fIamanda\.conf\fR
121 file in
122 \fIpath\fR
123 does not have a tape changer configured\.
124 .RE
125 .PP
126 reading label \fIlabel\fR, tape is in another amanda configuration
127 .RS 4
128 This tape appears to be a valid
129 \fIAmanda\fR
130 tape, but label does not match
131 \fBlabelstr\fR
132 for this configuration so it is probably part of a different
133 \fIAmanda\fR
134 configuration\.
135 .RE
136 .PP
137 reading label \fIlabel\fR, tape is active
138 .RS 4
139 Tape
140 \fIlabel\fR
141 appears to already be part of this
142 \fIAmanda\fR
143 configuration and active, i\.e\. has valid data on it\.
144 .RE
145 .PP
146 no label found, are you sure \fItape\fR is non\-rewinding?
147 .RS 4
148 While checking that the label was written correctly,
149 \fBamlabel\fR
150 got an error that might be caused by mis\-configuring
151 \fIAmanda\fR
152 with a rewinding tape device name instead of a non\-rewinding device name for
153 \fItape\.\fR
154 .RE
155 .SH "AUTHOR"
156 .PP
157 James da Silva,
158 <jds@amanda\.org>: Original text
159 .PP
160 Stefan G\. Weichinger,
161 <sgw@amanda\.org>, maintainer of the
162 \fIAmanda\fR\-documentation: XML\-conversion
163 .SH "SEE ALSO"
164 .PP
165 \fBamanda\fR(8),
166 \fBamdump\fR(8),
167 \fBamflush\fR(8),
168 : http://wiki.zmanda.com