Imported Upstream version 2.6.0p1
[debian/amanda] / man / amadmin.8
1 .\"     Title: amadmin
2 .\"    Author: 
3 .\" Generator: DocBook XSL Stylesheets v1.73.2 <http://docbook.sf.net/>
4 .\"      Date: 05/14/2008
5 .\"    Manual: 
6 .\"    Source: 
7 .\"
8 .TH "AMADMIN" "8" "05/14/2008" "" ""
9 .\" disable hyphenation
10 .nh
11 .\" disable justification (adjust text to left margin only)
12 .ad l
13 .SH "NAME"
14 amadmin - administrative interface to control Amanda backups
15 .SH "SYNOPSIS"
16 .HP 8
17 \fBamadmin\fR \fIconfig\fR \fIcommand\fR [\fIcommand_options\fR...] [\fB\-o\ \fR\fIconfigoption\fR]...
18 .SH "DESCRIPTION"
19 .PP
20 \fBAmadmin\fR
21 performs various administrative tasks on the
22 \fIconfig\fR
23 \fIAmanda\fR
24 configuration\.
25 .PP
26 See the
27 \fBamanda\fR(8)
28 man page for more details about
29 \fIAmanda\fR\.
30 .SH "COMMANDS"
31 .PP
32 Commands that take a
33 \fIhostname\fR
34 [
35 \fIdisks\fR
36 ] parameter pair operate on all disks in the
37 \fIdisklist\fR
38 for that
39 \fIhostname\fR
40 if no disks are specified\. Where
41 \fIhostname\fR
42 is also marked as being optional, the command operates on all hosts and disks in the
43 \fIdisklist\fR\. Both
44 \fIhostname\fR
45 and
46 \fIdisks\fR
47 are special expressions; see the "HOST & DISK EXPRESSION" section of
48 \fBamanda\fR(8)
49 for a description\.
50 .PP
51 Commands that take one or more
52 \fIdumpspec\fR
53 parameters operate on the set of dumps specified by all of the expressions\. See the "DUMP SPECIFICATIONS" section of
54 \fBamanda\fR(8)
55 for a description\.
56 .PP
57 \fBversion\fR
58 .RS 4
59 Show the current version and some compile time and runtime parameters\. The
60 \fIconfig\fR
61 parameter must be present but is ignored\.
62 .RE
63 .PP
64 \fBforce\-bump\fR [ \fIhostname\fR [ \fIdisks\fR ]* ]+
65 .RS 4
66 Force the
67 \fIdisks\fR
68 on
69 \fIhostname\fR
70 to bump to a new incremental level during the next
71 \fIAmanda\fR
72 run\.
73 .RE
74 .PP
75 \fBforce\-no\-bump\fR [ \fIhostname\fR [ \fIdisks\fR ]* ]+
76 .RS 4
77 Force the
78 \fIdisks\fR
79 on
80 \fIhostname\fR
81 to not bump to a new incremental level during the next
82 \fIAmanda\fR
83 run\.
84 .RE
85 .PP
86 \fBunforce\-bump\fR [ \fIhostname\fR [ \fIdisks\fR ]* ]+
87 .RS 4
88 Undo a previous
89 \fBforce\-bump\fR
90 or
91 \fBforce\-no\-bump\fR
92 command\.
93 .RE
94 .PP
95 \fBforce\fR [ \fIhostname\fR [ \fIdisks\fR ]* ]+
96 .RS 4
97 Force the
98 \fIdisks\fR
99 on
100 \fIhostname\fR
101 to do a full (level 0) backup during the next
102 \fIAmanda\fR
103 run\.
104 .RE
105 .PP
106 \fBunforce\fR [ \fIhostname\fR [ \fIdisks\fR ]* ]+
107 .RS 4
108 Undo a previous
109 \fBforce\fR
110 command\.
111 .RE
112 .PP
113 \fBreuse\fR \fItapelabel\fR [ \.\.\. ]
114 .RS 4
115 The tapes listed will be available for reuse at their point in the tape cycle\.
116 .RE
117 .PP
118 \fBno\-reuse\fR \fItapelabel\fR [ \.\.\. ]
119 .RS 4
120 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
121 \fBamanda\.conf\fR
122 \fItapecycle\fR
123 value,
124 \fIAmanda\fR
125 will request new tapes until the count is satisfied again\.
126 .sp
127 Tape marked
128 \fIno\-reuse\fR
129 are available for recovery, marking them
130 \fIno\-reuse\fR
131 is a security to be sure amanda will not overwrite them\.
132 .RE
133 .PP
134 \fBdue\fR [ \fIhostname\fR [ \fIdisks\fR ]* ]*
135 .RS 4
136 Show when the next full dump is due\.
137 .RE
138 .PP
139 \fBfind\fR [ \fB\-\-sort\fR \fIhkdlpb\fR ] [ \fIhostname\fR [ \fIdisks\fR ]* ]*
140 .RS 4
141 Display all backups currently on tape or in the holding disk\. The tape label or holding disk filename, file number, and status are displayed\.
142 .sp
143 The
144 \fB\-\-sort\fR
145 option changes the sort order using the following flags:
146 .sp
147 .RS 4
148 .nf
149 \fIh\fR: host name
150 \fIk\fR: disk name
151 \fId\fR: dump date
152 \fIl\fR: backup level
153 \fIp\fR: dump part
154 \fIb\fR: tape label
155 .fi
156 .RE
157 .sp
158 An uppercase letter reverses the sort order for that key\. The default sort order is
159 \fBhkdlpb\fR\.
160 .RE
161 .PP
162 \fBholding delete\fR \fIhostname\fR [ \fIdisk\fR [ \fIdatestamp\fR [ \.\. ] ] ]
163 .RS 4
164 Delete holding files matching the given specification\. At least a hostname must be provided\.
165 .RE
166 .PP
167 \fBholding list\fR [\-l] [\-d] [ \fIhostname\fR [ \fIdisk\fR [ \fIdatestamp\fR [ \.\. ] ] ] ]
168 .RS 4
169 List holding files matching the given specification, or all holding files if no specification is provided\. With \'\-l\', additional information (size, level, and whether the dump is outdated) is provided\. With \'\-d\', only outdated dumps are shown\.
170 .sp
171 An outdated holding file is one which is not required for a restore of the
172 \fImost recent\fR
173 dump\. Note that outdated dumps may still be required for restores at earlier dates\. For example, assume that a DLE had a level 0 on Monday, level 1\'s Tuesday through Thursday, and a level 2 on Friday\. Then the files required for a restore of Fridays (the most recent) dump are those from Monday (level 0), Thursday (level 1), and Friday (level 2)\. Tuesday and Wednesday\'s files are outdated\.
174 .RE
175 .PP
176 \fBdelete\fR [ \fIhostname\fR [ \fIdisks\fR ]* ]+
177 .RS 4
178 Delete the specified
179 \fIdisks\fR
180 on
181 \fIhostname\fR
182 from the
183 \fIAmanda\fR
184 database\.
185 .sp
186 .it 1 an-trap
187 .nr an-no-space-flag 1
188 .nr an-break-flag 1
189 .br
190 Note
191 If you do not also remove the disk from the
192 \fIdisklist\fR
193 file,
194 \fIAmanda\fR
195 will treat it as a new disk during the next run\.
196 .RE
197 .PP
198 \fBtape\fR
199 .RS 4
200 Display the tape(s)
201 \fIAmanda\fR
202 expects to write to during the next run\. See also
203 \fBamcheck\fR(8)\.
204 .RE
205 .PP
206 \fBbumpsize\fR
207 .RS 4
208 Display the current bump threshold parameters, calculated for all backup levels\.
209 .RE
210 .PP
211 \fBbalance\fR [ \fB\-\-days\fR \fI<num>\fR ]
212 .RS 4
213 Display the distribution of full backups throughout the dump schedule\.
214 .RE
215 .PP
216 \fBexport\fR [ \fIhostname\fR [ \fIdisks\fR ]* ]*
217 .RS 4
218 Convert records from the
219 \fIAmanda\fR
220 database to a text format that may be transmitted to another
221 \fIAmanda\fR
222 machine and
223 \fBimport\fRed\.
224 .RE
225 .PP
226 \fBimport\fR
227 .RS 4
228 Convert
229 \fBexport\fRed records read from standard input to a form
230 \fIAmanda\fR
231 uses and insert them into the database on this machine\.
232 .RE
233 .PP
234 \fBdisklist\fR [ \fIhostname\fR [ \fIdisks\fR ]* ]*
235 .RS 4
236 Display the
237 \fIdisklist\fR
238 information for each of the
239 \fIdisks\fR
240 on
241 \fIhostname\fR
242 (or all hosts)\. Mostly used for debugging\.
243 .RE
244 .PP
245 \fBinfo\fR [ \fIhostname\fR [ \fIdisks\fR ]* ]*
246 .RS 4
247 Display the database record for each of the
248 \fIdisks\fR
249 on
250 \fIhostname\fR
251 (or all hosts)\. Mostly used for debugging\.
252 .RE
253 .PP
254 \fB\-o\fR \fIconfigoption\fR
255 .RS 4
256 See the "\fBCONFIGURATION OVERRIDE\fR" section in
257 \fBamanda\fR(8)\.
258 .RE
259 .SH "EXAMPLES"
260 .PP
261 Request three specific file systems on
262 \fImachine\-a\fR
263 get a full level 0 backup during the next
264 \fIAmanda\fR
265 run\.
266 .sp
267 .RS 4
268 .nf
269 $ amadmin daily force machine\-a / /var /usr
270 amadmin: machine\-a:/ is set to a forced level 0 tonight\.
271 amadmin: machine\-a:/var is set to a forced level 0 tonight\.
272 amadmin: machine\-a:/usr is set to a forced level 0 tonight\.
273 .fi
274 .RE
275 .PP
276 Request all file systems on
277 \fImachine\-b\fR
278 get a full level 0 backup during the next
279 \fIAmanda\fR
280 run\.
281 .sp
282 .RS 4
283 .nf
284 $ amadmin daily force machine\-b
285 amadmin: machine\-b:/ is set to a forced level 0 tonight\.
286 amadmin: machine\-b:/var is set to a forced level 0 tonight\.
287 amadmin: machine\-b:/usr is set to a forced level 0 tonight\.
288 amadmin: machine\-b:/home is set to a forced level 0 tonight\.
289 .fi
290 .RE
291 .PP
292 Undo the previous
293 \fBforce\fR
294 request for
295 \fI/home\fR
296 on
297 \fImachine\-b\fR\. The other file systems will still get a full level 0 backup\.
298 .sp
299 .RS 4
300 .nf
301 $ amadmin daily unforce machine\-b /home
302 amadmin: force command for machine\-b:/home cleared\.
303 .fi
304 .RE
305 .PP
306 Locate backup images of
307 \fI/var\fR
308 from
309 \fImachine\-c\fR\. The
310 \fItape or file\fR
311 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
312 \fIfile\fR
313 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
314 \fIstatus\fR
315 column tells you whether the backup was successful or had some type of error\.
316 .sp
317 .RS 4
318 .nf
319 $ amadmin daily find machine\-c /var
320 date        host      disk lv tape or file                 file part  status
321 2000\-11\-09  machine\-c /var  0 000110                       9   \-\-  OK
322 2000\-11\-08  machine\-c /var  2 000109                       2   \-\-  OK
323 2000\-11\-07  machine\-c /var  2 /amanda/20001107/machine\-c\._var\.2  0 OK
324 2000\-11\-06  machine\-c /var  2 000107                       2   \-\-  OK
325 2000\-11\-05  machine\-c /var  2 000106                       3   \-\-  OK
326 2000\-11\-04  machine\-c /var  2 000105                       2   \-\-  OK
327 2000\-11\-03  machine\-c /var  2 000104                       2   \-\-  OK
328 2000\-11\-02  machine\-c /var  2 000103                       2   \-\-  OK
329 2000\-11\-01  machine\-c /var  1 000102                       5   \-\-  OK
330 2000\-10\-31  machine\-c /var  1 000101                       3   \-\-  OK
331 .fi
332 .RE
333 .PP
334 Forget about the
335 \fI/workspace\fR
336 disk on
337 \fImachine\-d\fR\. If you do not also remove the disk from the
338 \fIdisklist\fR
339 file,
340 \fIAmanda\fR
341 will treat it as a new disk during the next run\.
342 .sp
343 .RS 4
344 .nf
345 $ amadmin daily delete machine\-d /workspace
346 amadmin: machine\-d:/workspace deleted from database\.
347 amadmin: NOTE: you\'ll have to remove these from the disklist yourself\.
348 .fi
349 .RE
350 .PP
351 Find the next tape
352 \fIAmanda\fR
353 will use (in this case,
354 123456)\.
355 .sp
356 .RS 4
357 .nf
358 $ amadmin daily tape
359 The next \fIAmanda\fR run should go onto tape 123456 or a new tape\.
360 .fi
361 .RE
362 .PP
363 Show how well full backups are balanced across the dump cycle\. The
364 \fIdue\-date\fR
365 column is the day the backups are due for a full backup\.
366 \fI#fs\fR
367 shows the number of filesystems doing full backups that night, and
368 \fIorig KB\fR
369 and
370 \fIout KB\fR
371 show the estimated total size of the backups before and after any compression, respectively\.
372 .PP
373 The
374 \fIbalance\fR
375 column shows how far off that night\'s backups are from the average size (shown at the bottom of the balance column)\.
376 \fIAmanda\fR
377 tries to keep the backups within +/\- 5%, but since the amount of data on each filesystem is always changing, and
378 \fIAmanda\fR
379 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\.
380 .PP
381 The last line also shows an estimate of how many
382 \fIAmanda\fR
383 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
384 \fIAmanda\fR
385 is run (e\.g\. every eight days)\.
386 .sp
387 .RS 4
388 .nf
389 $ amadmin daily balance
390  due\-date  #fs   orig KB    out KB  balance
391 \-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-
392 11/10 Mon   21    930389    768753    +5\.1%
393 11/11 Tue   29   1236272    733211    +0\.2%
394 11/12 Wed   31   1552381    735796    +0\.6%
395 11/13 Thu   23   1368447    684552    \-6\.4%
396 11/14 Fri   32   1065603    758155    +3\.6%
397 11/15 Sat   14   1300535    738430    +0\.9%
398 11/16 Sun   31   1362696    740365    +1\.2%
399 11/17 Mon   30   1427936    773397    +5\.7%
400 11/18 Tue   11   1059191    721786    \-1\.3%
401 11/19 Wed   19   1108737    661867    \-9\.5%
402 \-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-
403 TOTAL      241  12412187   7316312   731631  (estimated 8 runs per dumpcycle)
404 .fi
405 .RE
406 .SH "FILES"
407 .PP
408 /usr/local/etc/amanda/\fIconfig\fR/amanda\.conf
409 .SH "AUTHOR"
410 .PP
411 James da Silva,
412 <jds@amanda\.org>
413 : Original text
414 .PP
415 Stefan G\. Weichinger,
416 <sgw@amanda\.org>, maintainer of the
417 \fIAmanda\fR\-documentation: XML\-conversion
418 .SH "SEE ALSO"
419 .PP
420 \fBamanda\fR(8),
421 \fBamcheck\fR(8),
422 \fBamdump\fR(8),
423 \fBamrestore\fR(8),
424 \fBamfetchdump\fR(8),
425 \fI\%http://wiki.zmanda.com\fR