1 <?xml version="1.0" encoding="ISO-8859-1"?>
2 <!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
3 "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd"
5 <!-- entities files to use -->
6 <!ENTITY % global_entities SYSTEM 'global.entities'>
10 <!-- lifted from troff+man by doclifter -->
11 <refentry id='amadmin.8'>
15 <refentrytitle>amadmin</refentrytitle>
16 <manvolnum>8</manvolnum>
22 <refname>amadmin</refname>
23 <refpurpose>administrative interface to control Amanda backups</refpurpose>
29 <!-- body begins here -->
32 <command>amadmin</command>
33 <arg choice='plain'><replaceable>config</replaceable></arg>
34 <arg choice='plain'><replaceable>command</replaceable></arg>
35 <arg choice='opt' rep='repeat'><replaceable>command_options</replaceable></arg>
36 &configoverride.synopsis;
41 <refsect1><title>DESCRIPTION</title>
42 <para><emphasis remap='B'>Amadmin</emphasis>
43 performs various administrative tasks on the
44 <emphasis remap='I'>config</emphasis>
45 Amanda configuration.</para>
48 <manref name="amanda" vol="8"/>
49 man page for more details about Amanda.</para>
52 <refsect1><title>COMMANDS</title>
53 <para>Commands that take a <emphasis remap='I'>hostname</emphasis> [ <emphasis remap='I'>disks</emphasis> ]
54 parameter pair operate on all disks in the &disklist; for that
55 <emphasis remap='I'>hostname</emphasis> if no disks are specified. Where
56 <emphasis remap='I'>hostname</emphasis> is also marked as being optional,
57 the command operates on all hosts and disks in the &disklist;.
58 Both <emphasis remap='I'>hostname</emphasis> and <emphasis remap='I'>disks</emphasis>
59 are special expressions; see the "HOST & DISK EXPRESSION" section
60 of <manref name="amanda" vol="8"/>
61 for a description.</para>
63 <para>Commands that take one or more <emphasis remap='I'>dumpspec</emphasis> parameters operate
64 on the set of dumps specified by all of the expressions. See the "DUMP SPECIFICATIONS"
66 <manref name="amanda" vol="8"/>
67 for a description.</para>
69 <variablelist remap='TP'>
71 <term><emphasis remap='B'>version</emphasis></term>
73 <para>Show the current version and some compile time and runtime parameters.
75 <emphasis remap='I'>config</emphasis>
76 parameter must be present but is ignored.</para>
80 <term><emphasis remap='B'>estimate</emphasis> [ <emphasis remap='I'>hostname</emphasis> [ <emphasis remap='I'>disks</emphasis> ]* ]*</term>
82 <para>Print the server estimate for the dles, each output lines have the following format:</para>
84 hostname diskname level size
86 <variablelist remap='TP'>
89 <listitem>The quoted hostname
94 <listitem>The quoted diskname
99 <listitem>The level of the estimate
104 <listitem>The estimate size in kbytes
111 <term><emphasis remap='B'>force-bump</emphasis> [ <emphasis remap='I'>hostname</emphasis> [ <emphasis remap='I'>disks</emphasis> ]* ]+</term>
114 <emphasis remap='I'>disks</emphasis>
116 <emphasis remap='I'>hostname</emphasis>
117 to bump to a new incremental level during the next Amanda run.</para>
121 <term><emphasis remap='B'>force-no-bump</emphasis> [ <emphasis remap='I'>hostname</emphasis> [ <emphasis remap='I'>disks</emphasis> ]* ]+</term>
124 <emphasis remap='I'>disks</emphasis>
126 <emphasis remap='I'>hostname</emphasis>
127 to not bump to a new incremental level during the next Amanda run.</para>
131 <term><emphasis remap='B'>unforce-bump</emphasis> [ <emphasis remap='I'>hostname</emphasis> [ <emphasis remap='I'>disks</emphasis> ]* ]+</term>
133 <para>Undo a previous
134 <emphasis remap='B'>force-bump</emphasis>
136 <emphasis remap='B'>force-no-bump</emphasis>
141 <term><emphasis remap='B'>force</emphasis> [ <emphasis remap='I'>hostname</emphasis> [ <emphasis remap='I'>disks</emphasis> ]* ]+</term>
144 <emphasis remap='I'>disks</emphasis>
146 <emphasis remap='I'>hostname</emphasis>
147 to do a full (level 0) backup during the next Amanda run.</para>
151 <term><emphasis remap='B'>unforce</emphasis> [ <emphasis remap='I'>hostname</emphasis> [ <emphasis remap='I'>disks</emphasis> ]* ]+</term>
153 <para>Undo a previous
154 <emphasis remap='B'>force</emphasis>
159 <term><emphasis remap='B'>reuse</emphasis> <emphasis remap='I'>tapelabel</emphasis> [ ... ]</term>
161 <para>The tapes listed
162 will be available for reuse at their point in the tape cycle.</para>
166 <term><emphasis remap='B'>no-reuse</emphasis> <emphasis remap='I'>tapelabel</emphasis> [ ... ]</term>
168 <para>The tapes listed
169 will not be reused when their turn comes up again in the tape cycle.
170 Note that if this causes the number of reusable tapes to drop below the
171 <emphasis remap='B'>amanda.conf</emphasis>
172 <emphasis remap='I'>tapecycle</emphasis>
173 value, Amanda will request new tapes until the count is satisfied again.</para>
174 <para>Tape marked <emphasis remap='I'>no-reuse</emphasis> are available
175 for recovery, marking them <emphasis remap='I'>no-reuse</emphasis> is a
176 security to be sure amanda will not overwrite them.</para>
180 <term><emphasis remap='B'>due</emphasis> [ <emphasis remap='I'>hostname</emphasis> [ <emphasis remap='I'>disks</emphasis> ]* ]*</term>
182 <para>Show when the next full dump is due.</para>
186 <term><emphasis remap='B'>find</emphasis> [ <option>--sort</option> <replaceable>hkdlpbfw</replaceable> ]<emphasis remap='B'></emphasis> [ <emphasis remap='I'>hostname</emphasis> [ <emphasis remap='I'>disks</emphasis> ]* ]*</term>
188 <para>Display all backups currently on tape or in the holding disk.
189 The tape label or holding disk filename,
191 and status are displayed.</para>
192 <para>The <option>--sort</option> option changes the sort order using the following flags:
194 <emphasis>h</emphasis>: host name
195 <emphasis>k</emphasis>: disk name
196 <emphasis>d</emphasis>: dump timestamp
197 <emphasis>l</emphasis>: backup level
198 <emphasis>p</emphasis>: dump part
199 <emphasis>b</emphasis>: tape label
200 <emphasis>f</emphasis>: filenum on tape
201 <emphasis>w</emphasis>: write timestamp
202 </programlisting></para>
204 <para>An uppercase letter reverses the sort order for that key.
205 The default sort order is <emphasis remap='B'>hkdlpbfw</emphasis>.</para>
210 <term><emphasis remap='B'>holding delete</emphasis> <emphasis remap="I">hostname</emphasis> [ <emphasis remap="I">disk</emphasis> [ <emphasis remap="I">datestamp</emphasis> [ .. ] ] ]</term>
213 <para>Delete holding files matching the given specification. At least
214 a hostname must be provided.</para>
220 <term><emphasis remap='B'>holding list</emphasis> [-l] [-d] [ <emphasis remap="I">hostname</emphasis> [ <emphasis remap="I">disk</emphasis> [ <emphasis remap="I">datestamp</emphasis> [ .. ] ] ] ]</term>
223 <para>List holding files matching the given specification, or all holding
224 files if no specification is provided. With '-l', additional information
225 (size, level, and whether the dump is outdated) is provided. With '-d', only
226 outdated dumps are shown.</para>
228 <para>An outdated holding file is one which is not required for a
229 restore of the <emphasis>most recent</emphasis> dump. Note that
230 outdated dumps may still be required for restores at earlier dates.
231 For example, assume that a DLE had a level 0 on Monday, level
232 1's Tuesday through Thursday, and a level 2 on Friday. Then the
233 files required for a restore of Fridays (the most recent) dump
234 are those from Monday (level 0), Thursday (level 1), and Friday
235 (level 2). Tuesday and Wednesday's files are outdated. </para>
241 <term><emphasis remap='B'>delete</emphasis> [ <emphasis remap='I'>hostname</emphasis> [ <emphasis remap='I'>disks</emphasis> ]* ]+</term>
243 <para>Delete the specified
244 <emphasis remap='I'>disks</emphasis>
246 <emphasis remap='I'>hostname</emphasis>
247 from the Amanda database.</para>
248 <note><para>If you do not also remove the disk from the &disklist;
249 file, Amanda will treat it as a new disk during the next run.</para>
255 <term><emphasis remap='B'>tape</emphasis></term>
257 <para>Display the tape(s) Amanda expects to write to during the next run.
259 <manref name="amcheck" vol="8"/>.</para>
263 <term><emphasis remap='B'>bumpsize</emphasis></term>
265 <para>Display the current bump threshold parameters, calculated for all backup
270 <term><emphasis remap='B'>balance</emphasis> [ <option>--days</option> <replaceable><num></replaceable> ]<emphasis remap='B'></emphasis> <emphasis remap='I'></emphasis> <emphasis remap='I'></emphasis></term>
272 <para>Display the distribution of full backups throughout the dump schedule.</para>
276 <term><emphasis remap='B'>export</emphasis> [ <emphasis remap='I'>hostname</emphasis> [ <emphasis remap='I'>disks</emphasis> ]* ]*</term>
278 <para>Convert records from the Amanda database
279 to a text format that may be transmitted to another Amanda machine and
280 <emphasis remap='B'>import</emphasis>ed.</para>
284 <term><emphasis remap='B'>import</emphasis></term>
287 <emphasis remap='B'>export</emphasis>ed
288 records read from standard input to a form Amanda uses
289 and insert them into the database on this machine.</para>
293 <term><emphasis remap='B'>disklist</emphasis> [ <emphasis remap='I'>hostname</emphasis> [ <emphasis remap='I'>disks</emphasis> ]* ]*</term>
295 <para>Display the &disklist;
296 information for each of the
297 <emphasis remap='I'>disks</emphasis>
299 <emphasis remap='I'>hostname</emphasis>
301 Mostly used for debugging.</para>
305 <term><emphasis remap='B'>info</emphasis> [ <emphasis remap='I'>hostname</emphasis> [ <emphasis remap='I'>disks</emphasis> ]* ]*</term>
308 database record for each of the
309 <emphasis remap='I'>disks</emphasis>
311 <emphasis remap='I'>hostname</emphasis>
313 Mostly used for debugging.</para>
317 &configoverride.varlistentry;
322 <refsect1><title>EXAMPLES</title>
323 <para>Request three specific file systems on
324 <emphasis remap='I'>machine-a</emphasis>
325 get a full level 0 backup during the next Amanda run.</para>
328 $ amadmin daily force machine-a / /var /usr
329 amadmin: machine-a:/ is set to a forced level 0 tonight.
330 amadmin: machine-a:/var is set to a forced level 0 tonight.
331 amadmin: machine-a:/usr is set to a forced level 0 tonight.
334 <para>Request all file systems on
335 <emphasis remap='I'>machine-b</emphasis>
336 get a full level 0 backup during the next Amanda run.</para>
339 $ amadmin daily force machine-b
340 amadmin: machine-b:/ is set to a forced level 0 tonight.
341 amadmin: machine-b:/var is set to a forced level 0 tonight.
342 amadmin: machine-b:/usr is set to a forced level 0 tonight.
343 amadmin: machine-b:/home is set to a forced level 0 tonight.
346 <para>Undo the previous
347 <emphasis remap='B'>force</emphasis>
349 <filename>/home</filename>
351 <emphasis remap='I'>machine-b</emphasis>.
352 The other file systems will still get a full level 0 backup.</para>
355 $ amadmin daily unforce machine-b /home
356 amadmin: force command for machine-b:/home cleared.
359 <para>Locate backup images of
360 <filename>/var</filename>
362 <emphasis remap='I'>machine-c</emphasis>.
364 <emphasis remap='I'>tape or file</emphasis>
365 column displays either a tape label or a filename depending on whether
366 the image is on tape or is still in the holding disk.
367 If the image is on tape, the
368 <emphasis remap='I'>file</emphasis>
369 column tells you which file on the tape has the image
370 (file number zero is a tape label).
371 This column shows zero and is not meaningful if the image
372 is still in the holding disk.
374 <emphasis remap='I'>status</emphasis>
375 column tells you whether the backup was successful or had
376 some type of error.</para>
379 $ amadmin daily find machine-c /var
380 date host disk lv tape or file file part status
381 2000-11-09 machine-c /var 0 000110 9 -- OK
382 2000-11-08 machine-c /var 2 000109 2 -- OK
383 2000-11-07 machine-c /var 2 /amanda/20001107/machine-c._var.2 0 OK
384 2000-11-06 machine-c /var 2 000107 2 -- OK
385 2000-11-05 machine-c /var 2 000106 3 -- OK
386 2000-11-04 machine-c /var 2 000105 2 -- OK
387 2000-11-03 machine-c /var 2 000104 2 -- OK
388 2000-11-02 machine-c /var 2 000103 2 -- OK
389 2000-11-01 machine-c /var 1 000102 5 -- OK
390 2000-10-31 machine-c /var 1 000101 3 -- OK
393 <para>Forget about the
394 <filename>/workspace</filename>
396 <emphasis remap='I'>machine-d</emphasis>.
397 If you do not also remove the disk from the &disklist;
398 file, Amanda will treat it as a new disk during the next run.</para>
400 <programlisting remap='.nf'>
401 $ amadmin daily delete machine-d /workspace
402 amadmin: machine-d:/workspace deleted from database.
403 amadmin: NOTE: you'll have to remove these from the &disklist; yourself.
406 <para>Find the next tape Amanda will use (in this case, <literal>123456</literal>).</para>
410 The next Amanda run should go onto tape 123456 or a new tape.
413 <para>Show how well full backups are balanced across the dump cycle.
415 <emphasis remap='I'>due-date</emphasis>
416 column is the day the backups are due for a full backup.
417 <emphasis remap='I'>#fs</emphasis>
418 shows the number of filesystems doing full backups that night, and
419 <emphasis remap='I'>orig KB</emphasis>
421 <emphasis remap='I'>out KB</emphasis>
422 show the estimated total size of the backups
423 before and after any compression, respectively.</para>
426 <emphasis remap='I'>balance</emphasis>
427 column shows how far off that night's backups are from the average size
428 (shown at the bottom of the balance column).
429 Amanda tries to keep the backups within +/- 5%,
430 but since the amount of data on each filesystem is always changing,
431 and Amanda will never delay backups just to rebalance the schedule,
432 it is common for the schedule to fluctuate by larger percentages.
433 In particular, in the case of a tape or backup failure, a bump will occur the following night,
434 which will not be smoothed out until the next pass through the schedule.</para>
436 <para>The last line also shows an estimate of how many Amanda runs will be
437 made between full backups for a file system.
438 In the example, a file system will probably have a full backup done
439 every eight times Amanda is run (e.g. every eight days).</para>
442 $ amadmin daily balance
443 due-date #fs orig KB out KB balance
444 -------------------------------------------
445 11/10 Mon 21 930389 768753 +5.1%
446 11/11 Tue 29 1236272 733211 +0.2%
447 11/12 Wed 31 1552381 735796 +0.6%
448 11/13 Thu 23 1368447 684552 -6.4%
449 11/14 Fri 32 1065603 758155 +3.6%
450 11/15 Sat 14 1300535 738430 +0.9%
451 11/16 Sun 31 1362696 740365 +1.2%
452 11/17 Mon 30 1427936 773397 +5.7%
453 11/18 Tue 11 1059191 721786 -1.3%
454 11/19 Wed 19 1108737 661867 -9.5%
455 -------------------------------------------
456 TOTAL 241 12412187 7316312 731631 (estimated 8 runs per dumpcycle)
460 <refsect1><title>FILES</title>
461 <para>/usr/local/etc/amanda/<emphasis remap='I'>config</emphasis>/amanda.conf</para>
465 <manref name="amanda" vol="8"/>,
466 <manref name="amcheck" vol="8"/>,
467 <manref name="amdump" vol="8"/>,
468 <manref name="amrestore" vol="8"/>,
469 <manref name="amfetchdump" vol="8"/>