bfa0f2d0cb5a50702ae5fd931c9ea06f5bcec795
[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 .HP 7
25 \fBamtape\fR \fIconfig\fR \fIcommand\fR [\fIcommand\fRĀ \fIoptions\fR]
26 .SH "DESCRIPTION"
27 .PP
28 \fBAmtape\fR
29 performs tape changer control operations. It uses the underlying tape changer script defined by the
30 \fBtpchanger\fR
31 option for a particular
32 \fBAmanda\fR
33 configuration as specified by the
34 \fBconfig\fR
35 argument.
36 .PP
37 Tape changers maintain a notion of the
38 \fBcurrent\fR
39 and
40 \fBnext\fR
41 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.
42 .PP
43 See the
44 \fBamanda\fR(8)
45 man page for more details about
46 \fBAmanda\fR.
47 .SH "COMMANDS"
48 .TP
49 \fBreset\fR
50 Reset the tape changer to a known state. The
51 \fBcurrent\fR
52 slot is set to the
53 \fBfirst\fR
54 slot. Other device-specific side effects may occur. Some gravity stackers need to be reset to the top position by hand. This command notifies
55 \fBAmanda\fR
56 the stacker is back in that position.
57 .TP
58 \fBeject\fR
59 If a tape is loaded in the drive, it is ejected and returned to the slot from which it was loaded.
60 .TP
61 \fBclean\fR
62 If a cleaning tape is defined for the changer, it is used to clean the drive.
63 .TP
64 \fBshow\fR
65 Show the contents of all slots. This can be slow.
66 .TP
67 \fBlabel\fR \fBlabel\fR
68 Search for and load the
69 \fBAmanda\fR
70 tape with label
71 \fBlabel\fR.
72 .TP
73 \fBtaper\fR
74 Perform the
75 \fBtaper\fR
76 scan algorithm. Load the next tape in the configuration's tape sequence, or a fresh tape with a suitable label.
77 .TP
78 \fBdevice\fR
79 Display the name of the current tape device on
80 \fBstdout\fR.
81 .TP
82 \fBcurrent\fR
83 Display the current slot.
84 .TP
85 \fBupdate\fR
86 Update the changer label database, if it has one, to match the tapes now available.
87 .TP
88 \fBslot\fR \fBslot\fR
89 Eject any tape in the drive and put it away, then load the tape from slot
90 \fBslot\fR
91 and reset
92 \fBcurrent\fR.
93 .TP
94 \fBslot current\fR
95 Eject any tape in the drive and put it away, then load the tape from the current slot.
96 .TP
97 \fBslot prev\fR
98 Eject any tape in the drive and put it away, then load the tape from the previous slot and reset
99 \fBcurrent\fR.
100 .TP
101 \fBslot next\fR
102 Eject any tape in the drive and put it away, then load the tape from the next slot and reset
103 \fBcurrent\fR.
104 .TP
105 \fBslot first\fR
106 Eject any tape in the drive and put it away, then load the tape from the first slot and reset
107 \fBcurrent\fR.
108 .TP
109 \fBslot last\fR
110 Eject any tape in the drive and put it away, then load the tape from the last slot and reset
111 \fBcurrent\fR.
112 .TP
113 \fBslot advance\fR
114 Eject any tape in the drive and put it away. Advance
115 \fBcurrent\fR
116 to the next tape, but do not load it.
117 .PP
118 This is useful with non-gravity stackers to unload the last tape used and set up
119 \fBAmanda\fR
120 for the next run. If you just use
121 \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
122 \fBslot next\fR
123 followed by
124 \fBeject\fR
125 does an unnecessary mount.
126 .PP
127 Note: most changers optimize the
128 \fBslot\fR
129 commands to not eject the loaded tape if it is the one being requested.
130 .SH "AUTHOR"
131 .PP
132 James da Silva,
133 <jds@amanda.org>
134 : Original text
135 .PP
136 Stefan G. Weichinger,
137 <sgw@amanda.org>, maintainer of the
138 \fBAmanda\fR-documentation: XML-conversion
139 .SH "SEE ALSO"
140 .PP
141 \fBamanda\fR(8)
142