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