Imported Upstream version 2.4.5
[debian/amanda] / man / amtape.8
1 .\"Generated by db2man.xsl. Don't modify this, modify the source.
2 .de Sh \" Subsection
3 .br
4 .if t .Sp
5 .ne 5
6 .PP
7 \fB\\$1\fR
8 .PP
9 ..
10 .de Sp \" Vertical space (when we can't use .PP)
11 .if t .sp .5v
12 .if n .sp
13 ..
14 .de Ip \" List item
15 .br
16 .ie \\n(.$>=3 .ne \\$3
17 .el .ne 3
18 .IP "\\$1" \\$2
19 ..
20 .TH "AMTAPE" 8 "" "" ""
21 .SH NAME
22 amtape \- user interface to AMANDA tape changer controls
23 .SH "SYNOPSIS"
24 .ad l
25 .hy 0
26 .HP 7
27 \fBamtape\fR \fIconfig\fR \fIcommand\fR [\fIcommand\fR\ \fIoptions\fR]
28 .ad
29 .hy
30
31 .SH "DESCRIPTION"
32
33 .PP
34 \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\&.
35
36 .PP
37 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\&.
38
39 .PP
40 See the \fBamanda\fR(8) man page for more details about \fBAMANDA\fR\&.
41
42 .SH "COMMANDS"
43
44 .TP
45 \fBreset\fR
46 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\&.
47
48 .TP
49 \fBeject\fR
50 If a tape is loaded in the drive, it is ejected and returned to the slot from which it was loaded\&.
51
52 .TP
53 \fBclean\fR
54 If a cleaning tape is defined for the changer, it is used to clean the drive\&.
55
56 .TP
57 \fBshow\fR
58 Show the contents of all slots\&. This can be slow\&.
59
60 .TP
61 \fBlabel\fR \fBlabel\fR
62 Search for and load the \fBAMANDA\fR tape with label \fBlabel\fR\&.
63
64 .TP
65 \fBtaper\fR
66 Perform the \fBtaper\fR scan algorithm\&. Load the next tape in the configuration's tape sequence, or a fresh tape with a suitable label\&.
67
68 .TP
69 \fBdevice\fR
70 Display the name of the current tape device on \fBstdout\fR\&.
71
72 .TP
73 \fBcurrent\fR
74 Display the current slot\&.
75
76 .TP
77 \fBupdate\fR
78 Update the changer label database, if it has one, to match the tapes now available\&.
79
80 .TP
81 \fBslot\fR \fBslot\fR
82 Eject any tape in the drive and put it away, then load the tape from slot \fBslot\fR and reset \fBcurrent\fR\&.
83
84 .TP
85 \fBslot current\fR
86 Eject any tape in the drive and put it away, then load the tape from the current slot\&.
87
88 .TP
89 \fBslot prev\fR
90 Eject any tape in the drive and put it away, then load the tape from the previous slot and reset \fBcurrent\fR\&.
91
92 .TP
93 \fBslot next\fR
94 Eject any tape in the drive and put it away, then load the tape from the next slot and reset \fBcurrent\fR\&.
95
96 .TP
97 \fBslot first\fR
98 Eject any tape in the drive and put it away, then load the tape from the first slot and reset \fBcurrent\fR\&.
99
100 .TP
101 \fBslot last\fR
102 Eject any tape in the drive and put it away, then load the tape from the last slot and reset \fBcurrent\fR\&.
103
104 .TP
105 \fBslot advance\fR
106 Eject any tape in the drive and put it away\&. Advance \fBcurrent\fR to the next tape, but do not load it\&.
107
108 .PP
109 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\&.
110
111 .PP
112 Note: most changers optimize the \fBslot\fR commands to not eject the loaded tape if it is the one being requested\&.
113
114 .SH "AUTHOR"
115
116 .PP
117 James da Silva, <jds@amanda\&.org> : Original text
118
119 .PP
120 Stefan G\&. Weichinger, <sgw@amanda\&.org>, maintainer of the \fBAMANDA\fR\-documentation: XML\-conversion
121
122 .SH "SEE ALSO"
123
124 .PP
125 \fBamanda\fR(8)
126