Imported Upstream version 2.6.0p2
[debian/amanda] / man / amadmin.8
1 .\"     Title: amadmin
2 .\"    Author: 
3 .\" Generator: DocBook XSL Stylesheets v1.73.2 <http://docbook.sf.net/>
4 .\"      Date: 08/22/2008
5 .\"    Manual: 
6 .\"    Source: 
7 .\"
8 .TH "AMADMIN" "8" "08/22/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 .nf
148 \fIh\fR: host name
149 \fIk\fR: disk name
150 \fId\fR: dump date
151 \fIl\fR: backup level
152 \fIp\fR: dump part
153 \fIb\fR: tape label
154 .fi
155 .sp
156 An uppercase letter reverses the sort order for that key\. The default sort order is
157 \fBhkdlpb\fR\.
158 .RE
159 .PP
160 \fBholding delete\fR \fIhostname\fR [ \fIdisk\fR [ \fIdatestamp\fR [ \.\. ] ] ]
161 .RS 4
162 Delete holding files matching the given specification\. At least a hostname must be provided\.
163 .RE
164 .PP
165 \fBholding list\fR [\-l] [\-d] [ \fIhostname\fR [ \fIdisk\fR [ \fIdatestamp\fR [ \.\. ] ] ] ]
166 .RS 4
167 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\.
168 .sp
169 An outdated holding file is one which is not required for a restore of the
170 \fImost recent\fR
171 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\.
172 .RE
173 .PP
174 \fBdelete\fR [ \fIhostname\fR [ \fIdisks\fR ]* ]+
175 .RS 4
176 Delete the specified
177 \fIdisks\fR
178 on
179 \fIhostname\fR
180 from the
181 \fIAmanda\fR
182 database\.
183 .sp
184 .it 1 an-trap
185 .nr an-no-space-flag 1
186 .nr an-break-flag 1
187 .br
188 Note
189 If you do not also remove the disk from the
190 \fIdisklist\fR
191 file,
192 \fIAmanda\fR
193 will treat it as a new disk during the next run\.
194 .RE
195 .PP
196 \fBtape\fR
197 .RS 4
198 Display the tape(s)
199 \fIAmanda\fR
200 expects to write to during the next run\. See also
201 \fBamcheck\fR(8)\.
202 .RE
203 .PP
204 \fBbumpsize\fR
205 .RS 4
206 Display the current bump threshold parameters, calculated for all backup levels\.
207 .RE
208 .PP
209 \fBbalance\fR [ \fB\-\-days\fR \fI<num>\fR ]
210 .RS 4
211 Display the distribution of full backups throughout the dump schedule\.
212 .RE
213 .PP
214 \fBexport\fR [ \fIhostname\fR [ \fIdisks\fR ]* ]*
215 .RS 4
216 Convert records from the
217 \fIAmanda\fR
218 database to a text format that may be transmitted to another
219 \fIAmanda\fR
220 machine and
221 \fBimport\fRed\.
222 .RE
223 .PP
224 \fBimport\fR
225 .RS 4
226 Convert
227 \fBexport\fRed records read from standard input to a form
228 \fIAmanda\fR
229 uses and insert them into the database on this machine\.
230 .RE
231 .PP
232 \fBdisklist\fR [ \fIhostname\fR [ \fIdisks\fR ]* ]*
233 .RS 4
234 Display the
235 \fIdisklist\fR
236 information for each of the
237 \fIdisks\fR
238 on
239 \fIhostname\fR
240 (or all hosts)\. Mostly used for debugging\.
241 .RE
242 .PP
243 \fBinfo\fR [ \fIhostname\fR [ \fIdisks\fR ]* ]*
244 .RS 4
245 Display the database record for each of the
246 \fIdisks\fR
247 on
248 \fIhostname\fR
249 (or all hosts)\. Mostly used for debugging\.
250 .RE
251 .PP
252 \fB\-o\fR \fIconfigoption\fR
253 .RS 4
254 See the "\fBCONFIGURATION OVERRIDE\fR" section in
255 \fBamanda\fR(8)\.
256 .RE
257 .SH "EXAMPLES"
258 .PP
259 Request three specific file systems on
260 \fImachine\-a\fR
261 get a full level 0 backup during the next
262 \fIAmanda\fR
263 run\.
264 .nf
265 $ amadmin daily force machine\-a / /var /usr
266 amadmin: machine\-a:/ is set to a forced level 0 tonight\.
267 amadmin: machine\-a:/var is set to a forced level 0 tonight\.
268 amadmin: machine\-a:/usr is set to a forced level 0 tonight\.
269 .fi
270 .PP
271 Request all file systems on
272 \fImachine\-b\fR
273 get a full level 0 backup during the next
274 \fIAmanda\fR
275 run\.
276 .nf
277 $ amadmin daily force machine\-b
278 amadmin: machine\-b:/ is set to a forced level 0 tonight\.
279 amadmin: machine\-b:/var is set to a forced level 0 tonight\.
280 amadmin: machine\-b:/usr is set to a forced level 0 tonight\.
281 amadmin: machine\-b:/home is set to a forced level 0 tonight\.
282 .fi
283 .PP
284 Undo the previous
285 \fBforce\fR
286 request for
287 \fI/home\fR
288 on
289 \fImachine\-b\fR\. The other file systems will still get a full level 0 backup\.
290 .nf
291 $ amadmin daily unforce machine\-b /home
292 amadmin: force command for machine\-b:/home cleared\.
293 .fi
294 .PP
295 Locate backup images of
296 \fI/var\fR
297 from
298 \fImachine\-c\fR\. The
299 \fItape or file\fR
300 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
301 \fIfile\fR
302 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
303 \fIstatus\fR
304 column tells you whether the backup was successful or had some type of error\.
305 .nf
306 $ amadmin daily find machine\-c /var
307 date        host      disk lv tape or file                 file part  status
308 2000\-11\-09  machine\-c /var  0 000110                       9   \-\-  OK
309 2000\-11\-08  machine\-c /var  2 000109                       2   \-\-  OK
310 2000\-11\-07  machine\-c /var  2 /amanda/20001107/machine\-c\._var\.2  0 OK
311 2000\-11\-06  machine\-c /var  2 000107                       2   \-\-  OK
312 2000\-11\-05  machine\-c /var  2 000106                       3   \-\-  OK
313 2000\-11\-04  machine\-c /var  2 000105                       2   \-\-  OK
314 2000\-11\-03  machine\-c /var  2 000104                       2   \-\-  OK
315 2000\-11\-02  machine\-c /var  2 000103                       2   \-\-  OK
316 2000\-11\-01  machine\-c /var  1 000102                       5   \-\-  OK
317 2000\-10\-31  machine\-c /var  1 000101                       3   \-\-  OK
318 .fi
319 .PP
320 Forget about the
321 \fI/workspace\fR
322 disk on
323 \fImachine\-d\fR\. If you do not also remove the disk from the
324 \fIdisklist\fR
325 file,
326 \fIAmanda\fR
327 will treat it as a new disk during the next run\.
328 .nf
329 $ amadmin daily delete machine\-d /workspace
330 amadmin: machine\-d:/workspace deleted from database\.
331 amadmin: NOTE: you\'ll have to remove these from the disklist yourself\.
332 .fi
333 .PP
334 Find the next tape
335 \fIAmanda\fR
336 will use (in this case,
337 123456)\.
338 .nf
339 $ amadmin daily tape
340 The next \fIAmanda\fR run should go onto tape 123456 or a new tape\.
341 .fi
342 .PP
343 Show how well full backups are balanced across the dump cycle\. The
344 \fIdue\-date\fR
345 column is the day the backups are due for a full backup\.
346 \fI#fs\fR
347 shows the number of filesystems doing full backups that night, and
348 \fIorig KB\fR
349 and
350 \fIout KB\fR
351 show the estimated total size of the backups before and after any compression, respectively\.
352 .PP
353 The
354 \fIbalance\fR
355 column shows how far off that night\'s backups are from the average size (shown at the bottom of the balance column)\.
356 \fIAmanda\fR
357 tries to keep the backups within +/\- 5%, but since the amount of data on each filesystem is always changing, and
358 \fIAmanda\fR
359 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\.
360 .PP
361 The last line also shows an estimate of how many
362 \fIAmanda\fR
363 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
364 \fIAmanda\fR
365 is run (e\.g\. every eight days)\.
366 .nf
367 $ amadmin daily balance
368  due\-date  #fs   orig KB    out KB  balance
369 \-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-
370 11/10 Mon   21    930389    768753    +5\.1%
371 11/11 Tue   29   1236272    733211    +0\.2%
372 11/12 Wed   31   1552381    735796    +0\.6%
373 11/13 Thu   23   1368447    684552    \-6\.4%
374 11/14 Fri   32   1065603    758155    +3\.6%
375 11/15 Sat   14   1300535    738430    +0\.9%
376 11/16 Sun   31   1362696    740365    +1\.2%
377 11/17 Mon   30   1427936    773397    +5\.7%
378 11/18 Tue   11   1059191    721786    \-1\.3%
379 11/19 Wed   19   1108737    661867    \-9\.5%
380 \-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-
381 TOTAL      241  12412187   7316312   731631  (estimated 8 runs per dumpcycle)
382 .fi
383 .SH "FILES"
384 .PP
385 /usr/local/etc/amanda/\fIconfig\fR/amanda\.conf
386 .SH "AUTHOR"
387 .PP
388 James da Silva,
389 <jds@amanda\.org>
390 : Original text
391 .PP
392 Stefan G\. Weichinger,
393 <sgw@amanda\.org>, maintainer of the
394 \fIAmanda\fR\-documentation: XML\-conversion
395 .SH "SEE ALSO"
396 .PP
397 \fBamanda\fR(8),
398 \fBamcheck\fR(8),
399 \fBamdump\fR(8),
400 \fBamrestore\fR(8),
401 \fBamfetchdump\fR(8),
402 : http://wiki.zmanda.com