Imported Upstream version 2.5.0p2
[debian/amanda] / man / amadmin.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 "AMADMIN" 8 "" "" ""
21 .SH "NAME"
22 amadmin - administrative interface to control Amanda backups
23 .SH "SYNOPSIS"
24 .HP 8
25 \fBamadmin\fR \fIconfig\fR \fIcommand\fR [\fIcommand\fRĀ \fIoptions\fR]
26 .SH "DESCRIPTION"
27 .PP
28 \fBAmadmin\fR
29 performs various administrative tasks on the
30 \fBconfig\fR\fBAmanda\fR
31 configuration.
32 .PP
33 See the
34 \fBamanda\fR(8)
35 man page for more details about
36 \fBAmanda\fR.
37 .SH "COMMANDS"
38 .PP
39 Commands that take a
40 \fBhostname\fR
41 [
42 \fBdisks\fR
43 ] parameter pair operate on all disks in the
44 \fBdisklist\fR
45 for that
46 \fBhostname\fR
47 if no disks are specified. Where
48 \fBhostname\fR
49 is also marked as being optional, the command operates on all hosts and disks in the
50 \fBdisklist\fR. Both
51 \fBhostname\fR
52 and
53 \fBdisks\fR
54 are special expressions, see the "HOST & DISK EXPRESSION" section of
55 \fBamanda\fR(8)
56 for a description.
57 .TP
58 \fBversion\fR
59 Show the current version and some compile time and runtime parameters. The
60 \fBconfig\fR
61 parameter must be present but is ignored.
62 .TP
63 \fBforce-bump\fR [ \fBhostname\fR [ \fBdisks\fR ]* ]+
64 Force the
65 \fBdisks\fR
66 on
67 \fBhostname\fR
68 to bump to a new incremental level during the next
69 \fBAmanda\fR
70 run.
71 .TP
72 \fBforce-no-bump\fR [ \fBhostname\fR [ \fBdisks\fR ]* ]+
73 Force the
74 \fBdisks\fR
75 on
76 \fBhostname\fR
77 to not bump to a new incremental level during the next
78 \fBAmanda\fR
79 run.
80 .TP
81 \fBunforce-bump\fR [ \fBhostname\fR [ \fBdisks\fR ]* ]+
82 Undo a previous
83 \fBforce-bump\fR
84 or
85 \fBforce-no-bump\fR
86 command.
87 .TP
88 \fBforce\fR [ \fBhostname\fR [ \fBdisks\fR ]* ]+
89 Force the
90 \fBdisks\fR
91 on
92 \fBhostname\fR
93 to do a full (level 0) backup during the next
94 \fBAmanda\fR
95 run.
96 .TP
97 \fBunforce\fR [ \fBhostname\fR [ \fBdisks\fR ]* ]+
98 Undo a previous
99 \fBforce\fR
100 command.
101 .TP
102 \fBreuse\fR \fBtapelabel\fR [ ... ]
103 The tapes listed will be available for reuse at their point in the tape cycle.
104 .TP
105 \fBno-reuse\fR \fBtapelabel\fR [ ... ]
106 The tapes listed will not be reused when their turn comes up again in the tape cycle. Note that if this causes the number of reusable tapes to drop below the
107 \fBamanda.conf\fR\fBtapecycle\fR
108 value,
109 \fBAmanda\fR
110 will request new tapes until the count is satisfied again.
111 .TP
112 \fBdue\fR [ \fBhostname\fR [ \fBdisks\fR ]* ]*
113 Show when the next full dump is due.
114 .TP
115 \fBfind\fR [ \fB--sort\fR \fIhkdlpb\fR ]\fB\fR [ \fBhostname\fR [ \fBdisks\fR ]* ]*
116 Display all backups currently on tape or in the holding disk. The tape label or holding disk filename, file number, and status are displayed.
117 .sp
118 The
119 \fB--sort\fR
120 option changes the sort order using the following flags:
121 .sp
122 \fBh\fR
123 host name
124 \fBk\fR
125 disk name
126 \fBd\fR
127 dump date
128 \fBl\fR
129 backup level
130 \fBp\fR
131 dump part
132 \fBb\fR
133 tape label
134 .sp
135 An uppercase letter reverses the sort order for that key. The default sort order is
136 \fBhkdlpb\fR.
137 .TP
138 \fBdelete\fR [ \fBhostname\fR [ \fBdisks\fR ]* ]+
139 Delete the specified
140 \fBdisks\fR
141 on
142 \fBhostname\fR
143 from the
144 \fBAmanda\fR
145 database.
146 .sp
147 .it 1 an-trap
148 .nr an-no-space-flag 1
149 .nr an-break-flag 1
150 .br
151 \fBNote\fR
152 If you do not also remove the disk from the
153 \fBdisklist\fR
154 file, \fBAmanda\fR will treat it as a new disk during the next run..TP
155 \fBtape\fR
156 Display the tape(s)
157 \fBAmanda\fR
158 expects to write to during the next run. See also
159 \fBamcheck\fR(8).
160 .TP
161 \fBbumpsize\fR
162 Display the current bump threshold parameters, calculated for all backup levels.
163 .TP
164 \fBbalance\fR [ \fB--days\fR \fI<num>\fR ]\fB\fR \fB\fR \fB\fR
165 Display the distribution of full backups throughout the dump schedule.
166 .TP
167 \fBexport\fR [ \fBhostname\fR [ \fBdisks\fR ]* ]*
168 Convert records from the
169 \fBAmanda\fR
170 database to a text format that may be transmitted to another
171 \fBAmanda\fR
172 machine and
173 \fBimport\fRed.
174 .TP
175 \fBimport\fR
176 Convert
177 \fBexport\fRed records read from standard input to a form
178 \fBAmanda\fR
179 uses and insert them into the database on this machine.
180 .TP
181 \fBdisklist\fR [ \fBhostname\fR [ \fBdisks\fR ]* ]*
182 Display the
183 \fBdisklist\fR
184 information for each of the
185 \fBdisks\fR
186 on
187 \fBhostname\fR
188 (or all hosts). Mostly used for debugging.
189 .TP
190 \fBinfo\fR [ \fBhostname\fR [ \fBdisks\fR ]* ]*
191 Display the database record for each of the
192 \fBdisks\fR
193 on
194 \fBhostname\fR
195 (or all hosts). Mostly used for debugging.
196 .SH "EXAMPLES"
197 .PP
198 Request three specific file systems on
199 \fBmachine-a\fR
200 get a full level 0 backup during the next
201 \fBAmanda\fR
202 run.
203 .nf
204
205 $ amadmin daily force machine-a / /var /usr
206 amadmin: machine-a:/ is set to a forced level 0 tonight.
207 amadmin: machine-a:/var is set to a forced level 0 tonight.
208 amadmin: machine-a:/usr is set to a forced level 0 tonight.
209 .fi
210 .PP
211 Request all file systems on
212 \fBmachine-b\fR
213 get a full level 0 backup during the next
214 \fBAmanda\fR
215 run.
216 .nf
217
218 $ amadmin daily force machine-b
219 amadmin: machine-b:/ is set to a forced level 0 tonight.
220 amadmin: machine-b:/var is set to a forced level 0 tonight.
221 amadmin: machine-b:/usr is set to a forced level 0 tonight.
222 amadmin: machine-b:/home is set to a forced level 0 tonight.
223 .fi
224 .PP
225 Undo the previous
226 \fBforce\fR
227 request for
228 \fI/home\fR
229 on
230 \fBmachine-b\fR. The other file systems will still get a full level 0 backup.
231 .nf
232
233 $ amadmin daily unforce machine-b /home
234 amadmin: force command for machine-b:/home cleared.
235 .fi
236 .PP
237 Locate backup images of
238 \fI/var\fR
239 from
240 \fBmachine-c\fR. The
241 \fBtape or file\fR
242 column displays either a tape label or a filename depending on whether the image is on tape or is still in the holding disk. If the image is on tape, the
243 \fBfile\fR
244 column tells you which file on the tape has the image (file number zero is a tape label). This column shows zero and is not meaningful if the image is still in the holding disk. The
245 \fBstatus\fR
246 column tells you whether the backup was successful or had some type of error.
247 .nf
248
249 $ amadmin daily find machine-c /var
250 date        host      disk lv tape or file                 file part  status
251 2000\-11\-09  machine\-c /var  0 000110                       9   --  OK
252 2000\-11\-08  machine\-c /var  2 000109                       2   --  OK
253 2000\-11\-07  machine\-c /var  2 /amanda/20001107/machine-c._var.2  0 OK
254 2000\-11\-06  machine\-c /var  2 000107                       2   --  OK
255 2000\-11\-05  machine\-c /var  2 000106                       3   --  OK
256 2000\-11\-04  machine\-c /var  2 000105                       2   --  OK
257 2000\-11\-03  machine\-c /var  2 000104                       2   --  OK
258 2000\-11\-02  machine\-c /var  2 000103                       2   --  OK
259 2000\-11\-01  machine\-c /var  1 000102                       5   --  OK
260 2000\-10\-31  machine\-c /var  1 000101                       3   --  OK
261 .fi
262 .PP
263 Forget about the
264 \fI/workspace\fR
265 disk on
266 \fBmachine-d\fR. If you do not also remove the disk from the
267 \fBdisklist\fR
268 file,
269 \fBAmanda\fR
270 will treat it as a new disk during the next run.
271 .nf
272
273 $ amadmin daily delete machine-d /workspace
274 amadmin: machine-d:/workspace deleted from database.
275 amadmin: NOTE: you'll have to remove these from the disklist yourself.
276 .fi
277 .PP
278 Find the next tape
279 \fBAmanda\fR
280 will use (in this case,
281 123456).
282 .nf
283
284 $ amadmin daily tape
285 The next \fBAmanda\fR run should go onto tape 123456 or a new tape.
286 .fi
287 .PP
288 Show how well full backups are balanced across the dump cycle. The
289 \fBdue-date\fR
290 column is the day the backups are due for a full backup.
291 \fB#fs\fR
292 shows the number of filesystems doing full backups that night, and
293 \fBorig KB\fR
294 and
295 \fBout KB\fR
296 show the estimated total size of the backups before and after any compression, respectively.
297 .PP
298 The
299 \fBbalance\fR
300 column shows how far off that night's backups are from the average size (shown at the bottom of the balance column).
301 \fBAmanda\fR
302 tries to keep the backups within +/- 5%, but since the amount of data on each filesystem is always changing, and
303 \fBAmanda\fR
304 will never delay backups just to rebalance the schedule, it is common for the schedule to fluctuate by larger percentages. In particular, in the case of a tape or backup failure, a bump will occur the following night, which will not be smoothed out until the next pass through the schedule.
305 .PP
306 The last line also shows an estimate of how many
307 \fBAmanda\fR
308 runs will be made between full backups for a file system. In the example, a file system will probably have a full backup done every eight times
309 \fBAmanda\fR
310 is run (e.g. every eight days).
311 .nf
312
313 $ amadmin daily balance
314  due-date  #fs   orig KB    out KB  balance
315 -------------------------------------------
316 11/10 Mon   21    930389    768753    +5.1%
317 11/11 Tue   29   1236272    733211    +0.2%
318 11/12 Wed   31   1552381    735796    +0.6%
319 11/13 Thu   23   1368447    684552    -6.4%
320 11/14 Fri   32   1065603    758155    +3.6%
321 11/15 Sat   14   1300535    738430    +0.9%
322 11/16 Sun   31   1362696    740365    +1.2%
323 11/17 Mon   30   1427936    773397    +5.7%
324 11/18 Tue   11   1059191    721786    -1.3%
325 11/19 Wed   19   1108737    661867    -9.5%
326 -------------------------------------------
327 TOTAL      241  12412187   7316312   731631  (estimated 8 runs per dumpcycle)
328 .fi
329 .SH "FILES"
330 .PP
331 /usr/local/etc/amanda/\fBconfig\fR/amanda.conf
332 .SH "AUTHOR"
333 .PP
334 James da Silva,
335 <jds@amanda.org>
336 : Original text
337 .PP
338 Stefan G. Weichinger,
339 <sgw@amanda.org>, maintainer of the
340 \fBAmanda\fR-documentation: XML-conversion
341 .SH "SEE ALSO"
342 .PP
343 \fBamanda\fR(8),
344 \fBamcheck\fR(8),
345 \fBamdump\fR(8),
346 \fBamrestore\fR(8),
347 \fBamfetchdump\fR(8)
348