Imported Upstream version 2.4.5
[debian/amanda] / man / amtape.8
index c31c20784b87c726c02ac9be02940270cea1f0b7..1741d4f74bbba2d227f876b73cd9a73245eac665 100644 (file)
-.\"
-.de CO
-\fB\\$1\fP \fI\\$2\fP
+.\"Generated by db2man.xsl. Don't modify this, modify the source.
+.de Sh \" Subsection
+.br
+.if t .Sp
+.ne 5
+.PP
+\fB\\$1\fR
+.PP
 ..
-.TH AMTAPE 8
-.SH NAME
-amtape \- user interface to Amanda tape changer controls
-.SH SYNOPSIS
-.B amtape
-.I config
-.I command
-[
-.I command options
-]
-.SH DESCRIPTION
-.B Amtape
-performs tape changer control operations.
-It uses the underlying tape changer script defined by the
-.B tpchanger
-option for a particular Amanda
-configuration as specified by the
-.I config
-argument.
-.LP
-Tape changers maintain a notion of the
-.I current
-and
-.I next
-slot for each configuration.
-These may or may not correspond to an actual physical state of the device,
-but do tend to minimize searching through the tape storage slots.
-If the desired tape is in the current slot,
-it is likely the next tape needed is in the next slot
-rather than at some random position in the storage slots.
-.LP
-See the
-.IR amanda (8)
-man page for more details about Amanda.
-.SH COMMANDS
-.TP
-.B reset
-Reset the tape changer to a known state.
-The
-.I current
-slot is set to the
-.I first
-slot.
-Other device-specific side effects may occur.
-Some gravity stackers need to be reset to the top position by hand.
-This command notifies Amanda the stacker is back in that position.
-.TP
-.B eject
-If a tape is loaded in the drive, it is ejected and returned to the
-slot from which it was loaded.
-.TP
-.B clean
-If a cleaning tape is defined for the changer,
-it is used to clean the drive.
-.TP
-.B show
-Show the contents of all slots.
-This can be slow.
-.TP
-.CO label label
-Search for and load the Amanda tape with label
-.IR label .
-.TP
-.B taper
-Perform the
-.B taper
-scan algorithm.
-Load the next tape in the configuration's tape sequence,
-or a fresh tape with a suitable label.
-.TP
-.B device
-Display the name of the current tape device on
-.IR stdout .
-.TP
-.B current
-Display the current slot.
-.TP
-.B update
-Update the changer label database, if it has one,
-to match the tapes now available.
-.TP
-.CO slot slot
-Eject any tape in the drive and put it away,
-then load the tape from slot
-.I slot
-and reset
-.IR current .
-.TP
-.B slot current
-Eject any tape in the drive and put it away,
-then load the tape from the current slot.
-.TP
-.B slot prev
-Eject any tape in the drive and put it away,
-then load the tape from the previous slot and reset
-.IR current .
-.TP
-.B slot next
-Eject any tape in the drive and put it away,
-then load the tape from the next slot and reset
-.IR current .
-.TP
-.B slot first
-Eject any tape in the drive and put it away,
-then load the tape from the first slot and reset
-.IR current .
-.TP
-.B slot last
-Eject any tape in the drive and put it away,
-then load the tape from the last slot and reset
-.IR current .
-.TP
-.B slot advance
-Eject any tape in the drive and put it away.
-Advance
-.I current
-to the next tape, but do not load it.
-.IP
-This is useful with non-gravity stackers to unload the last tape used
-and set up Amanda for the next run.
-If you just use
-.BR eject ,
-the current tape will be mounted again in the next run,
-where it will be rejected as being still in use,
-ejected and the next tape requested.
-Using
-.B slot next
-followed by
-.B eject
-does an unnecessary mount.
-.LP
-Note: most changers optimize the
-.B slot
-commands to not eject the loaded tape if it is the one being requested.
-.SH AUTHOR
-James da Silva <jds@cs.umd.edu>
+.de Sp \" Vertical space (when we can't use .PP)
+.if t .sp .5v
+.if n .sp
+..
+.de Ip \" List item
 .br
-University of Maryland, College Park
+.ie \\n(.$>=3 .ne \\$3
+.el .ne 3
+.IP "\\$1" \\$2
+..
+.TH "AMTAPE" 8 "" "" ""
+.SH NAME
+amtape \- user interface to AMANDA tape changer controls
+.SH "SYNOPSIS"
+.ad l
+.hy 0
+.HP 7
+\fBamtape\fR \fIconfig\fR \fIcommand\fR [\fIcommand\fR\ \fIoptions\fR]
+.ad
+.hy
+
+.SH "DESCRIPTION"
+
+.PP
+\fBAmtape\fR performs tape changer control operations\&. It uses the underlying tape changer script defined by the \fBtpchanger\fR option for a particular \fBAMANDA\fR configuration as specified by the \fBconfig\fR argument\&.
+
+.PP
+Tape changers maintain a notion of the \fBcurrent\fR and \fBnext\fR slot for each configuration\&. These may or may not correspond to an actual physical state of the device, but do tend to minimize searching through the tape storage slots\&. If the desired tape is in the current slot, it is likely the next tape needed is in the next slot rather than at some random position in the storage slots\&.
+
+.PP
+See the \fBamanda\fR(8) man page for more details about \fBAMANDA\fR\&.
+
+.SH "COMMANDS"
+
+.TP
+\fBreset\fR
+Reset the tape changer to a known state\&. The \fBcurrent\fR slot is set to the \fBfirst\fR slot\&. Other device\-specific side effects may occur\&. Some gravity stackers need to be reset to the top position by hand\&. This command notifies \fBAMANDA\fR the stacker is back in that position\&.
+
+.TP
+\fBeject\fR
+If a tape is loaded in the drive, it is ejected and returned to the slot from which it was loaded\&.
+
+.TP
+\fBclean\fR
+If a cleaning tape is defined for the changer, it is used to clean the drive\&.
+
+.TP
+\fBshow\fR
+Show the contents of all slots\&. This can be slow\&.
+
+.TP
+\fBlabel\fR \fBlabel\fR
+Search for and load the \fBAMANDA\fR tape with label \fBlabel\fR\&.
+
+.TP
+\fBtaper\fR
+Perform the \fBtaper\fR scan algorithm\&. Load the next tape in the configuration's tape sequence, or a fresh tape with a suitable label\&.
+
+.TP
+\fBdevice\fR
+Display the name of the current tape device on \fBstdout\fR\&.
+
+.TP
+\fBcurrent\fR
+Display the current slot\&.
+
+.TP
+\fBupdate\fR
+Update the changer label database, if it has one, to match the tapes now available\&.
+
+.TP
+\fBslot\fR \fBslot\fR
+Eject any tape in the drive and put it away, then load the tape from slot \fBslot\fR and reset \fBcurrent\fR\&.
+
+.TP
+\fBslot current\fR
+Eject any tape in the drive and put it away, then load the tape from the current slot\&.
+
+.TP
+\fBslot prev\fR
+Eject any tape in the drive and put it away, then load the tape from the previous slot and reset \fBcurrent\fR\&.
+
+.TP
+\fBslot next\fR
+Eject any tape in the drive and put it away, then load the tape from the next slot and reset \fBcurrent\fR\&.
+
+.TP
+\fBslot first\fR
+Eject any tape in the drive and put it away, then load the tape from the first slot and reset \fBcurrent\fR\&.
+
+.TP
+\fBslot last\fR
+Eject any tape in the drive and put it away, then load the tape from the last slot and reset \fBcurrent\fR\&.
+
+.TP
+\fBslot advance\fR
+Eject any tape in the drive and put it away\&. Advance \fBcurrent\fR to the next tape, but do not load it\&.
+
+.PP
+This is useful with non\-gravity stackers to unload the last tape used and set up \fBAMANDA\fR for the next run\&. If you just use \fBeject\fR, the current tape will be mounted again in the next run, where it will be rejected as being still in use, ejected and the next tape requested\&. Using \fBslot next\fR followed by \fBeject\fR does an unnecessary mount\&.
+
+.PP
+Note: most changers optimize the \fBslot\fR commands to not eject the loaded tape if it is the one being requested\&.
+
+.SH "AUTHOR"
+
+.PP
+James da Silva, <jds@amanda\&.org> : Original text
+
+.PP
+Stefan G\&. Weichinger, <sgw@amanda\&.org>, maintainer of the \fBAMANDA\fR\-documentation: XML\-conversion
+
 .SH "SEE ALSO"
-amanda(8)
+
+.PP
+\fBamanda\fR(8)
+