'\" t .\" Title: amlabel .\" Author: James da Silva .\" Generator: DocBook XSL Stylesheets vsnapshot_8273 .\" Date: 11/05/2009 .\" Manual: System Administration Commands .\" Source: Amanda 2.6.1p2 .\" Language: English .\" .TH "AMLABEL" "8" "11/05/2009" "Amanda 2\&.6\&.1p2" "System Administration Commands" .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" amlabel \- label an \fIAmanda\fR tape .SH "SYNOPSIS" .HP \w'\fBamlabel\fR\ 'u \fBamlabel\fR [\-f] \fIconfig\fR \fIlabel\fR [slot\ \fIslot\fR] [\-o\ \fIconfigoption\fR]... .SH "DESCRIPTION" .PP All \fIAmanda\fR tapes must be pre\-labeled before they are used\&. \fIAmanda\fR verifies the label in \fBamdump\fR and \fBamflush\fR before writing to make sure the proper tape is loaded\&. .PP \fBAmlabel\fR writes an \fIAmanda\fR label on the tape in the device specified by the \fIamanda\&.conf\fR file in /usr/local/etc/amanda/\fIconfig\fR\&. \fILabel\fR may be any string that does not contain whitespace and that matches the \fIamanda\&.conf\fR \fBlabelstr\fR regular expression option\&. It is up to the system administrator to define a naming convention\&. .PP \fBAmlabel\fR appends the new tape to the \fBtapelist\fR(5) file so it will be used by \fIAmanda\fR before it reuses any other tapes\&. When you \fBamlabel\fR multiple tapes, they will be used in the order you \fBamlabel\fR them\&. .PP \fBAmlabel\fR will not write the label if the tape contains an active \fIAmanda\fR tape or if the label specified is on an active tape\&. The \fB\-f\fR (force) flag bypasses these verifications\&. .PP An optional \fIslot\fR may be specified after the tape label\&. If a tape changer is in use, \fBamlabel\fR will label the tape in the specified slot instead of the currently loaded tape\&. .PP See the \fBamanda\fR(8) man page for more details about \fIAmanda\fR\&. .SH "OPTIONS" .PP \fB\-o\fR \fIconfigoption\fR .RS 4 See the "\fBCONFIGURATION OVERRIDE\fR" section in \fBamanda\fR(8)\&. .RE .SH "EXAMPLE" .PP Write an \fIAmanda\fR label with the string "DMP000" on the tape loaded in the device named in the \fBtapedev\fR option in /usr/local/etc/amanda/daily/amanda\&.conf: .nf % amlabel daily DMP000 .fi .PP Label the tape in slot 3 of the currently configured tape changer with the string "DMP003": .nf % amlabel daily DMP003 slot 3 .fi .SH "MESSAGES" .PP label \fIlabel\fR doesn\'t match labelstr \fIstr\fR .RS 4 Label \fIlabel\fR on the command line does not match the \fIlabelstr\fR regular expression \fIstr\fR from \fIamanda\&.conf\fR\&. .RE .PP label \fIlabel\fR already on a tape .RS 4 Label \fIlabel\fR is already listed as an active \fIAmanda\fR tape\&. .RE .PP no tpchanger specified in \fIpath\fR , so slot command invalid .RS 4 The command line has the \fBslot\fR parameter but the \fIamanda\&.conf\fR file in \fIpath\fR does not have a tape changer configured\&. .RE .PP reading label \fIlabel\fR, tape is in another amanda configuration .RS 4 This tape appears to be a valid \fIAmanda\fR tape, but label does not match \fBlabelstr\fR for this configuration so it is probably part of a different \fIAmanda\fR configuration\&. .RE .PP reading label \fIlabel\fR, tape is active .RS 4 Tape \fIlabel\fR appears to already be part of this \fIAmanda\fR configuration and active, i\&.e\&. has valid data on it\&. .RE .PP no label found, are you sure \fItape\fR is non\-rewinding? .RS 4 While checking that the label was written correctly, \fBamlabel\fR got an error that might be caused by mis\-configuring \fIAmanda\fR with a rewinding tape device name instead of a non\-rewinding device name for \fItape\&.\fR .RE .SH "SEE ALSO" .PP \fBamanda\fR(8), \fBamdump\fR(8), \fBamflush\fR(8), : http://wiki.zmanda.com .SH "AUTHORS" .PP \fBJames da Silva\fR <\&jds@amanda\&.org\&> .PP \fBStefan G\&. Weichinger\fR <\&sgw@amanda\&.org\&>