Imported Upstream version 3.2.0
[debian/amanda] / man / amanda.conf.5
1 '\" t
2 .\"     Title: amanda.conf
3 .\"    Author: James da Silva <jds@amanda.org>
4 .\" Generator: DocBook XSL Stylesheets vsnapshot_8273 <http://docbook.sf.net/>
5 .\"      Date: 10/18/2010
6 .\"    Manual: File formats and conventions
7 .\"    Source: Amanda 3.2.0
8 .\"  Language: English
9 .\"
10 .TH "AMANDA\&.CONF" "5" "10/18/2010" "Amanda 3\&.2\&.0" "File formats and conventions"
11 .\" -----------------------------------------------------------------
12 .\" * set default formatting
13 .\" -----------------------------------------------------------------
14 .\" disable hyphenation
15 .nh
16 .\" disable justification (adjust text to left margin only)
17 .ad l
18 .\" -----------------------------------------------------------------
19 .\" * MAIN CONTENT STARTS HERE *
20 .\" -----------------------------------------------------------------
21 .SH "NAME"
22 amanda.conf \- Main configuration file for Amanda, the Advanced Maryland Automatic Network Disk Archiver
23 .SH "DESCRIPTION"
24 .PP
25 \fBamanda.conf\fR(5)
26 is the main configuration file for Amanda\&. This manpage lists the relevant sections and parameters of this file for quick reference\&.
27 .PP
28 The file
29 \fB<CONFIG_DIR>/<config>/amanda\&.conf\fR
30 is loaded\&.
31 .SH "SYNTAX"
32 .PP
33 There are a number of configuration parameters that control the behavior of the Amanda programs\&. All have default values, so you need not specify the parameter in
34 \fBamanda\&.conf\fR
35 if the default is suitable\&.
36 .SS "COMMENTS"
37 .PP
38 Lines starting with # are ignored, as are blank lines\&. Comments may be placed on a line with a directive by starting the comment with a #\&. The remainder of the line is ignored\&.
39 .SS "KEYWORDS AND IDENTIFIERS"
40 .PP
41 Keywords are case insensitive, i\&.e\&.
42 \fBmailto\fR
43 and
44 \fBMailTo\fR
45 are treated the same\&. Also, the characters \'\fB\-\fR\' and \'\fB_\fR\' are interchangeable in all predefined Amanda keywords:
46 \fBdevice_property\fR
47 and
48 \fBdevice\-property\fR
49 have the same meaning\&. This manpage uses the dashed versions, but the underscored versions will be accepted for backward compatibility
50 .PP
51 Identifiers are names which are defined in the configuration itself, such as dumptypes or interfaces\&. Identifiers are are case\-insensitive, but sensitive to \'\fB\-\fR\' vs\&. \'\fB_\fR\'\&. Identifiers should be quoted in the configuration file, although For historical reasons, the quotes are optional\&.
52 .PP
53 Strings are always quoted with double quotes ("), and any double quotes or backslashes within the string are escaped with a backslash:
54 .sp
55 .nf
56 tapelist "/path/to/tapelist"
57 property "escaped\-string" "escaping: \e\e (backslash) and \e" (double\-quote)"
58 .fi
59 .PP
60 To summarize, then:
61 .sp
62 .nf
63                           # QUOTES        CASE            \-/_
64 logdir "logs"             # required      sensitive       sensitive
65 send\-amreport\-on strange  # prohibited    insensitive     insensitive
66 tapetype "EXABYTE"        # optional      insensitive     sensitive
67
68 define dumptype "dt" {    # optional      insensitive     sensitive
69   "dumptype\-common"       # optional      insensitive     sensitive
70   strategy noinc          # prohibited    insensitive     insensitive
71 }
72 .fi
73 .SS "VALUE SUFFIXES"
74 .PP
75 Integer arguments may have one of the following (case insensitive) suffixes, some of which have a multiplier effect:
76 .PP
77 \fBb byte bytes\fR
78 .RS 4
79 Some number of bytes\&.
80 .RE
81 .PP
82 \fBbps\fR
83 .RS 4
84 Some number of bytes per second\&.
85 .RE
86 .PP
87 \fBk kb kbyte kbytes kilobyte kilobytes\fR
88 .RS 4
89 Some number of kilobytes (bytes*1024)\&.
90 .RE
91 .PP
92 \fBkps kbps\fR
93 .RS 4
94 Some number of kilobytes per second (bytes*1024)\&.
95 .sp
96 It is the default multiplier for all size options\&.
97 .RE
98 .PP
99 \fBm mb meg mbyte mbytes megabyte megabytes\fR
100 .RS 4
101 Some number of megabytes (bytes*1024*1024)\&.
102 .RE
103 .PP
104 \fBmps mbps\fR
105 .RS 4
106 Some number of megabytes per second (bytes*1024*1024)\&.
107 .RE
108 .PP
109 \fBg gb gbyte gbytes gigabyte gigabytes\fR
110 .RS 4
111 Some number of gigabytes (bytes*1024*1024*1024)\&.
112 .RE
113 .PP
114 \fBt tb tbyte tbytes terabyte terabytes\fR
115 .RS 4
116 Some number of terabytes (bytes*1024*1024*1024*1024)\&.
117 .RE
118 .PP
119 \fBtape tapes\fR
120 .RS 4
121 Some number of tapes\&.
122 .RE
123 .PP
124 \fBday days\fR
125 .RS 4
126 Some number of days\&.
127 .RE
128 .PP
129 \fBweek weeks\fR
130 .RS 4
131 Some number of weeks (days*7)\&.
132 .if n \{\
133 .sp
134 .\}
135 .RS 4
136 .it 1 an-trap
137 .nr an-no-space-flag 1
138 .nr an-break-flag 1
139 .br
140 .ps +1
141 \fBNote\fR
142 .ps -1
143 .br
144 The value
145 \fBinf\fR
146 may be used in most places where an integer is expected to mean an infinite amount\&.
147 .sp
148 Boolean arguments may have any of the values
149 \fB1\fR,
150 \fBy\fR,
151 \fByes\fR,
152 \fBt\fR,
153 \fBtrue\fR
154 or
155 \fBon\fR
156 to indicate a true state, or
157 \fB0\fR,
158 \fBn\fR,
159 \fBno\fR,
160 \fBf\fR,
161 \fBfalse\fR
162 or
163 \fBoff\fR
164 to indicate a false state\&. If no argument is given,
165 \fBtrue\fR
166 is assumed\&.
167 .sp .5v
168 .RE
169 .RE
170 .SS "PARAMETER ORDER"
171 .PP
172 In general, the order in which parameters occur in the configuration file does not matter, with the exception of subsection inheritance\&. For example, if dumptype "normal\-encrypt" which inherits from dumptype "normal", then "normal" must appear first in the configuration file\&.
173 .SS "STRINGS"
174 .PP
175 Quoted strings in Amanda follow a common, C\-like syntax\&. Printable characters and whitespace are kept as\-is, except that the backslash character (\e) is used as an escape character, and a double\-quote ends the string\&. The allowed escape sequences are
176 .sp
177 .nf
178     ESCAPE SEQUENCE     BECOMES
179     \e\e                  \e
180     \e"                  "
181     \en                  (newline)
182     \et                  (tab)
183     \er                  (carriage return)
184     \ef                  (form\-feed)
185     \e1 \- \e7
186     \e01 \- \e77
187     \e001 \- \e377         (character specified in octal)
188 .fi
189 Illegally quoted strings are handled on a "best\-effort" basis, which may lead to unexpected results\&.
190 .PP
191 Examples:
192 .sp
193 .nf
194 finserver "/data/finance/XYZ Corp\'s \e"real\e" finances" finance\-high eth0 \-1
195 property "syspath" "C:\e\eWINDOWS\e\eSYSTEM"
196 .fi
197 .SS "SUBSECTIONS AND INHERITANCE"
198 .PP
199 Amanda configuration files may include various
200 \fIsubsections\fR, each defining a set of configuration directives\&. Each type of subsection is described below\&. Note that all types of subsections can
201 \fIinherit\fR
202 from other subsections of the same type by naming the "parent" section in the "child" subsection\&. For example:
203 .sp
204 .nf
205 define dumptype global {
206     record yes
207     index yes
208 }
209
210 define dumptype nocomp {
211     global      # inherit the parameters in dumptype \'global\'
212     compress none
213 }
214 .fi
215 .PP
216 Note that multiple inheritance is also supported by simply naming multiple parent sections in a child\&. Parents are implicitly expanded in place in a child, and the last occurrence of each parameter takes precedence\&. For example,
217 .sp
218 .nf
219 define tapetype par1 {
220     comment "Parent 1"
221     filemark 8k
222     speed 300bps
223     length 200M
224 }
225 define tapetype par2 {
226     comment "Parent 2"
227     filemark 16k
228     speed 400bps
229 }
230 define tapetype child {
231     par1
232     par2
233     filemark 32k
234 }
235 .fi
236 In this example, \'child\' will have a filemark of 32k, a speed of 400bps, and a length of 200M\&.
237 .SH "GLOBAL PARAMETERS"
238 .PP
239 \fBorg\fR \fIstring\fR
240 .RS 4
241 Default:
242 \fI"daily"\fR\&. A descriptive name for the configuration\&. This string appears in the Subject line of mail reports\&. Each Amanda configuration should have a different string to keep mail reports distinct\&.
243 .RE
244 .PP
245 \fBmailer\fR \fIstring\fR
246 .RS 4
247 Default found by configure\&. A mail program that can send mail with \'\fIMAILER \-s "subject" user < message_file\fR\'\&.
248 .RE
249 .PP
250 \fBmailto\fR \fIstring\fR
251 .RS 4
252 Default: none\&. A space separated list of recipients for mail reports\&. If not specified, amdump will not send any mail\&.
253 .RE
254 .PP
255 \fBsend\-amreport\-on\fR [ \fBall\fR | \fBstrange\fR | \fBerror\fR | \fBnever\fR ]
256 .RS 4
257 Default:
258 \fBall\fR\&. Specify which types of messages will trigger an email from amreport\&. amreport is used by amdump and amflush\&.
259 .PP
260 \fBall\fR
261 .RS 4
262 Send an email on any message\&.
263 .RE
264 .PP
265 \fBstrange\fR
266 .RS 4
267 Send an email on strange or error message\&. A strange message occurs when the dump succeeded, but returned one or more errors unknown to Amanda\&.
268 .RE
269 .PP
270 \fBerror\fR
271 .RS 4
272 Send an email only on error messages\&.
273 .RE
274 .PP
275 \fBnever\fR
276 .RS 4
277 Never send an email\&.
278 .RE
279 .RE
280 .PP
281 \fBdumpcycle\fR \fIint\fR
282 .RS 4
283 Default:
284 \fI10 days\fR\&. The number of days in the backup cycle\&. Each disk will get a full backup at least this often\&. Setting this to zero tries to do a full backup each run\&.
285 .if n \{\
286 .sp
287 .\}
288 .RS 4
289 .it 1 an-trap
290 .nr an-no-space-flag 1
291 .nr an-break-flag 1
292 .br
293 .ps +1
294 \fBNote\fR
295 .ps -1
296 .br
297 This parameter may also be set in a specific
298 \fBdumptype\fR
299 (see below)\&. This value sets the default for all
300 \fBdumptype\fRs so must appear in
301 \fBamanda\&.conf\fR
302 before any
303 \fBdumptype\fRs are defined\&.
304 .sp .5v
305 .RE
306 .RE
307 .PP
308 \fBrunspercycle\fR \fIint\fR
309 .RS 4
310 Default:
311 \fIsame as dumpcycle\fR\&. The number of amdump runs in
312 \fBdumpcycle\fR
313 days\&. A value of 0 means the same value as
314 \fBdumpcycle\fR\&. A value of \-1 means guess the number of runs from the
315 \fBtapelist\fR(5)
316 file, which is the number of tapes used in the last
317 \fBdumpcycle\fR
318 days /
319 \fBruntapes\fR\&.
320 .RE
321 .PP
322 \fBtapecycle\fR \fIint\fR
323 .RS 4
324 Default:
325 \fI15 tapes\fR\&. Specifies the number of "active" volumes \- volumes that Amanda will not overwrite\&. While Amanda is always willing to write to a new volume, it refuses to overwrite a volume unless at least \'\fBtapecycle\fR
326 \-1\' volumes have been written since\&.
327 .sp
328 It is considered good administrative practice to set the
329 \fBtapecycle\fR
330 parameter slightly lower than the actual number of tapes in use\&. This allows the administrator to more easily cope with damaged or misplaced tapes or schedule adjustments that call for slight adjustments in the rotation order\&.
331 .sp
332 Note: Amanda is commonly misconfigured with
333 \fBtapecycle\fR
334 equal to the number of tapes per
335 \fBdumpcycle\fR\&. In this misconfiguration, amanda may erase a full dump before a new one is completed\&. Recovery is then impossible\&. The
336 \fBtapecycle\fR
337 must be at least one tape larger than the number of tapes per dumpcycle\&.
338 .sp
339 The number of tapes per dumpcycle is calculated by multiplying the number of
340 \fBamdump\fR
341 runs per dump cycle
342 \fBrunspercycle\fR
343 (the number of
344 \fBamdump\fR
345 runs per dump cycle) and
346 \fBruntapes\fR
347 (the number of tapes used per run)\&. Typically
348 \fBtapecycle\fR
349 is set to two or four times the tapes per dumpcycle\&.
350 .RE
351 .PP
352 \fBusetimestamps\fR \fIbool\fR
353 .RS 4
354 Default:
355 \fBYes\fR\&. This option allows Amanda to track multiple runs per calendar day\&. The only reason one might disable it is that Amanda versions before 2\&.5\&.1 can\'t read logfiles written when this option was enabled\&.
356 .RE
357 .PP
358 \fBlabel\-new\-tapes\fR \fIstring\fR
359 .RS 4
360 Deprecated, use
361 \fBautolabel\fR
362 option with options
363 \fBvolume\-error empty\fR
364 to get equivalent behavior\&.
365 .sp
366 Default: not set\&. When set, this directive will cause Amanda to automatically write an Amanda tape label to any blank tape she encounters\&.
367 .RE
368 .PP
369 \fBautolabel\fR \fIstring\fR [\fBany\fR] [\fBother\-config\fR] [\fBnon\-amanda\fR] [\fBvolume\-error\fR] [\fBempty\fR]
370 .RS 4
371 Default: not set\&. When set, this directive will cause Amanda to automatically write an Amanda tape label to most volume she encounters\&. This option is DANGEROUS because when set, Amanda may erase near\-failing tapes or tapes accidentally loaded in the wrong slot\&.
372 .sp
373 When using this directive, specify the template for new tape labels\&. The template should contain some number of contiguous \'%\' characters, which will be replaced with a generated number\&. Be sure to specify enough \'%\' characters that you do not run out of tape labels\&. Example:
374 \fBautolabel "DailySet1\-%%%" empty\fR
375 .sp
376 Note that many devices cannot distinguish an empty tape from an error condition, so it may is often necessary to include
377 \fBvolume\-error\fR
378 as an autolabel condition\&.
379 .PP
380 \fBany\fR
381 .RS 4
382 equivalent to \'\fBother\-config non\-amanda volume\-error empty\fR\'
383 .RE
384 .PP
385 \fBother\-config\fR
386 .RS 4
387 Label volumes with a valid Amanda label that do not match our
388 \fBlabelstr\fR\&. Danger: this may erase volumes
389 from other Amanda configurations without warning!
390 .RE
391 .PP
392 \fBnon\-amanda\fR
393 .RS 4
394 Label volumes which do not start with data that resembles an
395 Amanda header\&. Danger: this may erase volumes from other backup applications
396 without warning!
397 .RE
398 .PP
399 \fBvolume\-error\fR
400 .RS 4
401 Label volumes where an error occurs while trying to read the label\&.
402 Danger: this may erase arbitrary volumes due to transient errors\&.
403 .RE
404 .PP
405 \fBempty\fR
406 .RS 4
407 Label volumes where a read returns 0 bytes\&.
408 .RE
409 .RE
410 .PP
411 \fBdumpuser\fR \fIstring\fR
412 .RS 4
413 Default:
414 \fI"amanda"\fR\&. The login name Amanda uses to run the backups\&. The backup client hosts must allow access from the tape server host as this user via
415 \fB\&.rhosts\fR
416 or
417 \fB\&.amandahosts\fR, depending on how the Amanda software was built\&.
418 .RE
419 .PP
420 \fBprinter\fR \fIstring\fR
421 .RS 4
422 Printer to use when doing tape labels\&. See the
423 \fBlbl\-templ\fR
424 \fBtapetype\fR
425 option\&.
426 .RE
427 .PP
428 \fBtapedev\fR \fIstring\fR
429 .RS 4
430 Default:
431 \fI"null:"\fR\&. This parameter can either specify a device (explicitly or by referencing a device definition \- see
432 \fBamanda-devices\fR(7)) or a tape changer (explicitly or by referencing a device definition \- see
433 \fBamanda-changers\fR(7))\&.
434 .RE
435 .PP
436 \fBdevice\-property\fR \fIstring\fR \fIstring\fR
437 .RS 4
438 These options can set various device properties\&. See
439 \fBamanda-devices\fR(7)
440 for more information on device properties and their syntax\&. Both strings are always quoted; the first string contains the name of the property to set, and the second contains its value\&. For example, to set a fixed block size of 128k, write:
441 .nf
442 device\-property "BLOCK_SIZE" "128k"
443 .fi
444 .RE
445 .PP
446 \fBproperty\fR [\fBappend\fR] \fIstring\fR \fIstring\fR+
447 .RS 4
448 These options can set various properties, they can be used by third party software to store information in the configuration file\&. Both strings are quoted; the first string contains the name of the property to set, and the others contains its values\&.
449 \fBappend\fR
450 keyword append the values to the list of values for that property\&.
451 .RE
452 .PP
453 \fBtpchanger\fR \fIstring\fR
454 .RS 4
455 Default: not set\&. The tape changer to use\&. In most cases, only one of
456 \fBtpchanger\fR
457 or
458 \fBtapedev\fR
459 is specified, although for backward compatibility both may be specified if
460 \fBtpchanger\fR
461 gives the name of an old changer script\&. See
462 \fBamanda-changers\fR(7)
463 for more information on configuring changers\&.
464 .RE
465 .PP
466 \fBchangerdev\fR \fIstring\fR
467 .RS 4
468 Default:
469 \fI"dev/null"\fR\&. A tape changer configuration parameter\&. Usage depends on the particular changer defined with the
470 \fBtpchanger\fR
471 option\&.
472 .RE
473 .PP
474 \fBchangerfile\fR \fIstring\fR
475 .RS 4
476 Default:
477 \fI"/usr/adm/amanda/log/changer\-status"\fR\&. A tape changer configuration parameter\&. Usage depends on the particular changer defined with the
478 \fBtpchanger\fR
479 option\&.
480 .RE
481 .PP
482 \fBruntapes\fR \fIint\fR
483 .RS 4
484 Default:
485 \fI1\fR\&. The maximum number of tapes used in a single run\&. If a tape changer is not configured, this option is not used and should be commented out of the configuration file\&.
486 .sp
487 If a tape changer is configured, this may be set larger than one to let Amanda write to more than one tape\&.
488 .sp
489 Note that this is an upper bound on the number of tapes, and Amanda may use less\&.
490 .RE
491 .PP
492 \fBmaxdumpsize\fR \fIint\fR
493 .RS 4
494 Default:
495 \fI\fBruntapes\fR\fR\fI*\fR\fI\fBtape\-length\fR\fR\&. Maximum number of bytes the planner will schedule for a run\&.
496 .sp
497 The default unit is Kbytes if it is not specified\&.
498 .RE
499 .PP
500 \fBtaperalgo\fR [ \fBfirst\fR | \fBfirstfit\fR | \fBlargest\fR | \fBlargestfit\fR | \fBsmallest\fR | \fBlast\fR ]
501 .RS 4
502 Default:
503 \fBfirst\fR\&. The algorithm used to choose which dump image to send to the taper\&.
504 .PP
505 \fBfirst\fR
506 .RS 4
507 First in, first out\&.
508 .RE
509 .PP
510 \fBfirstfit\fR
511 .RS 4
512 The first dump image that will fit on the current tape\&.
513 .RE
514 .PP
515 \fBlargest\fR
516 .RS 4
517 The largest dump image\&.
518 .RE
519 .PP
520 \fBlargestfit\fR
521 .RS 4
522 The largest dump image that will fit on the current tape\&.
523 .RE
524 .PP
525 \fBsmallest\fR
526 .RS 4
527 The smallest dump image\&.
528 .RE
529 .PP
530 \fBlast\fR
531 .RS 4
532 Last in, first out\&.
533 .RE
534 .RE
535 .PP
536 \fBtaper\-parallel\-write\fR \fIint\fR
537 .RS 4
538 .PP
539 Default:
540 \fI1\fR\&. Amanda can write simultaneously up to that number of volume at any given time\&. The changer must have as many drives\&.
541 .RE
542 .PP
543 \fBlabelstr\fR \fIstring\fR
544 .RS 4
545 Default:
546 \fI"\&.*"\fR\&. The tape label constraint regular expression\&. All tape labels generated (see
547 \fBamlabel\fR(8)) and used by this configuration must match the regular expression\&. If multiple configurations are run from the same tape server host, it is helpful to set their labels to different strings (for example, "DAILY[0\-9][0\-9]*" vs\&. "ARCHIVE[0\-9][0\-9]*") to avoid overwriting each other\'s tapes\&.
548 .RE
549 .PP
550 \fBtapetype\fR \fIstring\fR
551 .RS 4
552 Default:
553 \fIno default\fR\&. The type of tape drive associated with
554 \fBtapedev\fR
555 or
556 \fBtpchanger\fR\&. This refers to one of the defined
557 \fBtapetype\fRs in the config file (see below), which specify various tape parameters, like the
558 \fBlength\fR,
559 \fBfilemark\fR
560 size, and
561 \fBspeed\fR
562 of the tape media and device\&.
563 .RE
564 .PP
565 \fBctimeout\fR \fIint\fR
566 .RS 4
567 Default:
568 \fI30 seconds\fR\&. Maximum amount of time that
569 \fBamcheck\fR
570 will wait for each client host\&.
571 .RE
572 .PP
573 \fBdtimeout\fR \fIint\fR
574 .RS 4
575 Default:
576 \fI1800 seconds\fR\&. Amount of idle time per disk on a given client that a
577 \fBdumper\fR
578 running from within
579 \fBamdump\fR
580 will wait before it fails with a data timeout error\&.
581 .RE
582 .PP
583 \fBetimeout\fR \fIint\fR
584 .RS 4
585 Default:
586 \fI300 seconds\fR\&. Amount of time per estimate on a given client that the
587 \fBplanner\fR
588 step of
589 \fBamdump\fR
590 will wait to get the dump size estimates (note: Amanda runs up to 3 estimates for each DLE)\&. For instance, with the default of 300 seconds and four DLE\'s, each estimating level 0 and level 1 on client A,
591 \fBplanner\fR
592 will wait up to 40 minutes for that machine\&. A negative value will be interpreted as a total amount of time to wait per client instead of per disk\&.
593 .RE
594 .PP
595 \fBconnect\-tries\fR \fIint\fR
596 .RS 4
597 Default:
598 \fI3\fR\&. How many times the server will try a connection\&.
599 .RE
600 .PP
601 \fBreq\-tries\fR \fIint\fR
602 .RS 4
603 Default:
604 \fI3\fR\&. How many times the server will resend a REQ packet if it doesn\'t get the ACK packet\&.
605 .RE
606 .PP
607 \fBnetusage\fR \fIint\fR
608 .RS 4
609 Default:
610 \fI8000 Kbps\fR\&. The maximum network bandwidth allocated to Amanda, in Kbytes per second\&. See also the
611 \fBinterface\fR
612 section\&.
613 .RE
614 .PP
615 \fBinparallel\fR \fIint\fR
616 .RS 4
617 Default:
618 \fI10\fR\&. The maximum number of backups that Amanda will attempt to run in parallel\&. Amanda will stay within the constraints of network bandwidth and holding disk space available, so it doesn\'t hurt to set this number a bit high\&. Some contention can occur with larger numbers of backups, but this effect is relatively small on most systems\&.
619 .RE
620 .PP
621 \fBdisplayunit\fR "k|m|g|t"
622 .RS 4
623 Default:
624 \fI"k"\fR\&. The unit used to print many numbers, k=kilo, m=mega, g=giga, t=tera\&.
625 .RE
626 .PP
627 \fBdumporder\fR \fIstring\fR
628 .RS 4
629 Default:
630 \fI"tttTTTTTTT"\fR\&. The priority order of each dumper:
631 .sp
632 .nf
633 s: smallest size
634 S: largest size
635 t: smallest time
636 T: largest time
637 b: smallest bandwidth
638 B: largest bandwidth
639 .fi
640 .RE
641 .PP
642 \fBmaxdumps\fR \fIint\fR
643 .RS 4
644 Default:
645 \fI1\fR\&. The maximum number of backups from a single host that Amanda will attempt to run in parallel\&. See also the
646 \fBinparallel\fR
647 option\&.
648 .sp
649 Note that this parameter may also be set in a specific
650 \fBdumptype\fR
651 (see below)\&. This value sets the default for all
652 \fBdumptype\fRs so must appear in
653 \fBamanda\&.conf\fR
654 before any
655 \fBdumptype\fRs are defined\&.
656 .RE
657 .PP
658 \fBbumpsize\fR \fIint\fR
659 .RS 4
660 Default:
661 \fI10 Mbytes\fR\&. The minimum savings required to trigger an automatic bump from one incremental level to the next, expressed as size\&. If Amanda determines that the next higher backup level will be this much smaller than the current level, it will do the next level\&. The value of this parameter is used only if the parameter
662 \fIbumppercent\fR
663 is set to 0\&.
664 .sp
665 The default unit is Kbytes if it is not specified\&.
666 .sp
667 The global setting of this parameter can be overwritten inside of a dumptype\-definition\&.
668 .sp
669 See also the options
670 \fBbumppercent\fR,
671 \fBbumpmult\fR
672 and
673 \fBbumpdays\fR\&.
674 .RE
675 .PP
676 \fBbumppercent\fR \fIint\fR
677 .RS 4
678 Default:
679 \fI0\fR\&. The minimum savings required to trigger an automatic bump from one incremental level to the next, expressed as percentage of the current size of the DLE (size of current level 0)\&. If Amanda determines that the next higher backup level will be this much smaller than the current level, it will do the next level\&.
680 .sp
681 If this parameter is set to 0, the value of the parameter
682 \fIbumpsize\fR
683 is used to trigger bumping\&.
684 .sp
685 The global setting of this parameter can be overwritten inside of a dumptype\-definition\&.
686 .sp
687 See also the options
688 \fBbumpsize\fR,
689 \fBbumpmult\fR
690 and
691 \fBbumpdays\fR\&.
692 .RE
693 .PP
694 \fBbumpmult\fR \fIfloat\fR
695 .RS 4
696 Default:
697 \fI1\&.5\fR\&. The bump size multiplier\&. Amanda multiplies
698 \fBbumpsize\fR
699 by this factor for each level\&. This prevents active filesystems from bumping too much by making it harder to bump to the next level\&. For example, with the default
700 \fBbumpsize\fR
701 and
702 \fBbumpmult\fR
703 set to 2\&.0, the bump threshold will be 10 Mbytes for level one, 20 Mbytes for level two, 40 Mbytes for level three, and so on\&.
704 .sp
705 The global setting of this parameter can be overwritten inside of a dumptype\-definition\&.
706 .RE
707 .PP
708 \fBbumpdays\fR \fIint\fR
709 .RS 4
710 Default:
711 \fI2 days\fR\&. To insure redundancy in the dumps, Amanda keeps filesystems at the same incremental level for at least
712 \fBbumpdays\fR
713 days, even if the other bump threshold criteria are met\&.
714 .sp
715 The global setting of this parameter can be overwritten inside of a dumptype\-definition\&.
716 .RE
717 .PP
718 \fBdiskfile\fR \fIstring\fR
719 .RS 4
720 Default:
721 \fI"disklist"\fR\&. The file name for the
722 \fIdisklist\fR
723 file holding client hosts, disks and other client dumping information\&.
724 .RE
725 .PP
726 \fBinfofile\fR \fIstring\fR
727 .RS 4
728 Default:
729 \fI"/usr/adm/amanda/curinfo"\fR\&. The file or directory name for the historical information database\&. If Amanda was configured to use DBM databases, this is the base file name for them\&. If it was configured to use text formated databases (the default), this is the base directory and within here will be a directory per client, then a directory per disk, then a text file of data\&.
730 .RE
731 .PP
732 \fBlogdir\fR \fIstring\fR
733 .RS 4
734 Default:
735 \fI"/usr/adm/amanda"\fR\&. The directory for the
736 \fBamdump\fR
737 and
738 \fBlog\fR
739 files\&.
740 .RE
741 .PP
742 \fBindexdir\fR \fIstring\fR
743 .RS 4
744 Default
745 \fI"/usr/adm/amanda/index"\fR\&. The directory where index files (backup image catalogues) are stored\&. Index files are only generated for filesystems whose
746 \fBdumptype\fR
747 has the
748 \fBindex\fR
749 option enabled\&.
750 .RE
751 .PP
752 \fBtapelist\fR \fIstring\fR
753 .RS 4
754 Default:
755 \fI"tapelist"\fR\&. The file name for the active
756 \fBtapelist\fR(5)\&. Amanda maintains this file with information about the active set of tapes\&.
757 .RE
758 .PP
759 \fBdevice\-output\-buffer\-size\fR \fIint\fR
760 .RS 4
761 Default:
762 \fI1280k\fR\&. Controls the amount of memory used by Amanda to hold data as it is read from the network or disk before it is written to the output device\&. Higher values may be useful on fast tape drives and optical media\&.
763 .sp
764 The default unit is bytes if it is not specified\&.
765 .RE
766 .PP
767 \fBtapebufs\fR \fIint\fR
768 .RS 4
769 Default:
770 \fI20\fR\&. This option is deprecated; use the
771 \fBdevice\-output\-buffer\-size\fR
772 directive instead\&.
773 \fBtapebufs\fR
774 works the same way, but the number specified is multiplied by the device blocksize prior to use\&.
775 .RE
776 .PP
777 \fBreserve\fR \fIint\fR
778 .RS 4
779 Default:
780 \fI100\fR\&. The part of holding\-disk space that should be reserved for incremental backups if no tape is available, expressed as a percentage of the available holding\-disk space (0\-100)\&. By default, when there is no tape to write to, degraded mode (incremental) backups will be performed to the holding disk\&. If full backups should also be allowed in this case, the amount of holding disk space reserved for incrementals should be lowered\&.
781 .RE
782 .PP
783 \fBautoflush\fR \fIbool\fR
784 .RS 4
785 Default:
786 \fBoff\fR\&. Whether an amdump run will flush the dumps from holding disk to tape\&.
787 .RE
788 .PP
789 \fBamrecover\-do\-fsf\fR \fIbool\fR
790 .RS 4
791 Deprecated; amrecover always uses fsf, and does not invoke amrestore\&.
792 .sp
793 Default:
794 \fBon\fR\&. Amrecover will call amrestore with the \-f flag for faster positioning of the tape\&.
795 .RE
796 .PP
797 \fBamrecover\-check\-label\fR \fIbool\fR
798 .RS 4
799 Deprecated; amrecover always checks the label, and does not invoke amrestore\&.
800 .sp
801 Default:
802 \fBon\fR\&. Amrecover will call amrestore with the \-l flag to check the label\&.
803 .RE
804 .PP
805 \fBamrecover\-changer\fR \fIstring\fR
806 .RS 4
807 Default: not set\&. Amrecover will use the changer if you use \'settape <string>\' and that string is the same as the
808 \fBamrecover\-changer\fR
809 setting\&.
810 .RE
811 .PP
812 \fBcolumnspec\fR \fIstring\fR
813 .RS 4
814 default: "HostName=0:12:12,Disk=1:11:11,Level=1:1:1,OrigKB=1:\-7:0,OutKB=1:\-7:0,Compress=1:\-6:1,DumpTime=1:\-7:7,Dumprate=1:\-6:1,TapeTime=1:\-6:6,TapeRate=1:\-6:1"
815 .sp
816 Defines the width of columns
817 \fBamreport\fR
818 should use\&.
819 \fIString\fR
820 is a comma (\',\') separated list of triples\&. Each triple consists of three parts which are separated by a equal sign (\'=\') and a colon (\':\') (see the example)\&. These four parts specify:
821 .sp
822 .RS 4
823 .ie n \{\
824 \h'-04' 1.\h'+01'\c
825 .\}
826 .el \{\
827 .sp -1
828 .IP "  1." 4.2
829 .\}
830 the name of the column, which may be:
831 .sp
832 .nf
833         Compress (compression ratio)
834         Disk (client disk name)
835         DumpRate (dump rate in KBytes/sec)
836         DumpTime (total dump time in hours:minutes)
837         HostName (client host name)
838         Level (dump level)
839         OrigKB (original image size in KBytes)
840         OutKB (output image size in KBytes)
841         TapeRate (tape writing rate in KBytes/sec)
842         TapeTime (total tape time in hours:minutes)
843 .fi
844 .RE
845 .sp
846 .RS 4
847 .ie n \{\
848 \h'-04' 2.\h'+01'\c
849 .\}
850 .el \{\
851 .sp -1
852 .IP "  2." 4.2
853 .\}
854 the amount of space to display before the column (used to get whitespace between columns)\&.
855 .RE
856 .sp
857 .RS 4
858 .ie n \{\
859 \h'-04' 3.\h'+01'\c
860 .\}
861 .el \{\
862 .sp -1
863 .IP "  3." 4.2
864 .\}
865 the width of the column itself\&. If set to a negative value, the width will be calculated on demand to fit the largest entry in this column\&.
866 .RE
867 .sp
868 .RS 4
869 .ie n \{\
870 \h'-04' 4.\h'+01'\c
871 .\}
872 .el \{\
873 .sp -1
874 .IP "  4." 4.2
875 .\}
876 the precision of the column, number of digit after the decimal point for number\&.
877 .RE
878 .sp
879 Here is an example:
880 .sp
881 .nf
882 columnspec "Disk=1:18,HostName=0:10,OrigKB=::2,OutKB=1:7"
883 .fi
884 .sp
885 The above will display the disk information in 18 characters and put one space before it\&. The hostname column will be 10 characters wide with no space to the left\&. The Original KBytes print 2 decimal digit\&. The output KBytes column is seven characters wide with one space before it\&.
886 .RE
887 .PP
888 \fBincludefile\fR \fIstring\fR
889 .RS 4
890 Default:
891 \fIno default\fR\&. The name of an Amanda configuration file to include within the current file\&. Useful for sharing dumptypes, tapetypes and interface definitions among several configurations\&. Relative pathnames are relative to the configuration directory\&.
892 .RE
893 .PP
894 \fBdebug\-days\fR \fIint\fR
895 .RS 4
896 Default:
897 \fI3\fR\&. The number of days the debug files are kept\&.
898 .RE
899 .PP
900 \fBdebug\-auth\fR \fIint\fR
901 .RS 4
902 Default:
903 \fI0\fR\&. Debug level of the auth module
904 .RE
905 .PP
906 \fBdebug\-event\fR \fIint\fR
907 .RS 4
908 Default:
909 \fI0\fR\&. Debug level of the event module
910 .RE
911 .PP
912 \fBdebug\-holding\fR \fIint\fR
913 .RS 4
914 Default:
915 \fI0\fR\&. Debug level of the holdingdisk module
916 .RE
917 .PP
918 \fBdebug\-protocol\fR \fIint\fR
919 .RS 4
920 Default:
921 \fI0\fR\&. Debug level of the protocol module
922 .RE
923 .PP
924 \fBdebug\-planner\fR \fIint\fR
925 .RS 4
926 Default:
927 \fI0\fR\&. Debug level of the planner process
928 .RE
929 .PP
930 \fBdebug\-driver\fR \fIint\fR
931 .RS 4
932 Default:
933 \fI0\fR\&. Debug level of the driver process
934 .RE
935 .PP
936 \fBdebug\-dumper\fR \fIint\fR
937 .RS 4
938 Default:
939 \fI0\fR\&. Debug level of the dumper process
940 .RE
941 .PP
942 \fBdebug\-chunker\fR \fIint\fR
943 .RS 4
944 Default:
945 \fI0\fR\&. Debug level of the chunker process
946 .RE
947 .PP
948 \fBdebug\-taper\fR \fIint\fR
949 .RS 4
950 Default:
951 \fI0\fR\&. Debug level of the taper process
952 .RE
953 .PP
954 \fBflush\-threshold\-dumped\fR \fIint\fR
955 .RS 4
956 Default:
957 \fI0\fR\&. Amanda will not begin writing data to a new volume until the amount of data on the holding disk is at least this percentage of the volume size\&. In other words, Amanda will not begin until the amount of data on the holding disk is greater than the tape length times this parameter\&. This parameter may be larger than 100%, for example to keep more recent dumps on the holding disk for faster recovery\&.
958 .sp
959 Needless to say, your holding disk must be big enough that this criterion could be satisfied\&. If the holding disk cannot be used for a particular dump (because, for example, there is no remaining holding space) then Amanda will disregard the constraint specified by this setting and start a new volume anyway\&. Once writing to a volume has begun, this constraint is not applied unless and until a new volume is needed\&.
960 .sp
961 The value of this parameter may not exceed than that of the
962 \fBflush\-threshold\-scheduled\fR
963 parameter\&.
964 .RE
965 .PP
966 \fBflush\-threshold\-scheduled\fR \fIint\fR
967 .RS 4
968 Default:
969 \fI0\fR\&. Amanda will not begin writing data to a new volume until the sum of the amount of data on the holding disk and the estimated amount of data remaining to be dumped during this run is at least this percentage of the volume size\&. In other words, Amanda will not begin until the inequality
970 h + s > t \(mu d
971 is satisfied, where
972 h
973 is the amount of data on the holding disk,
974 s
975 is the total amount of data scheduled for this run but not dumped yet,
976 t
977 is the capacity of a volume, and
978 d
979 is this parameter, expressed as a percentage\&. This parameter may be larger than 100%\&.
980 .sp
981 Needless to say, your holding disk must be big enough that this criterion could be satisfied\&. If the holding disk cannot be used for a particular dump (because, for example, there is no remaining holding space) then Amanda will disregard the constraint specified by this setting and start a new volume anyway\&. Once writing to a volume has begun, this constraint is not applied unless and until a new volume is needed\&.
982 .sp
983 The value of this parameter may not be less than that of the
984 \fBflush\-threshold\-dumped\fR
985 or
986 \fBtaperflush\fR
987 parameters\&.
988 .RE
989 .PP
990 \fBtaperflush\fR \fIint\fR
991 .RS 4
992 Default:
993 \fI0\fR\&. At the end of a run, Amanda will start a new tape to flush remaining data if there is more data on the holding disk at the end of a run than this setting allows; the amount is specified as a percentage of the capacity of a single volume\&. In other words, at the end of a run, Amanda will begin a new tape if the inequality
994 h > t \(mu f
995 is satisfied, where
996 h
997 is the amount of data remaining on the holding disk from this or previous runs,
998 t
999 is the capacity of a volume, and
1000 f
1001 is this parameter, expressed as a percentage\&. This parameter may be greater than 100%\&.
1002 .sp
1003 The value of this parameter may not exceed that of the
1004 \fBflush\-threshold\-scheduled\fR
1005 parameter\&.;
1006 \fBautoflush\fR
1007 must be set to \'yes\' if
1008 \fBtaperflush\fR
1009 is greater than 0\&.
1010 .RE
1011 .PP
1012 \fBreserved\-udp\-port\fR \fIint\fR,\fIint\fR
1013 .RS 4
1014 Default: \-\-with\-udpportrange or
1015 \fI512,1023\fR\&. Reserved udp port that will be used (bsd, bsdudp)\&. Range is inclusive\&.
1016 .RE
1017 .PP
1018 \fBreserved\-tcp\-port\fR \fIint\fR,\fIint\fR
1019 .RS 4
1020 Default: \-\-with\-low\-tcpportrange or
1021 \fI512,1023\fR\&. Reserved tcp port that will be used (bsdtcp)\&. Range is inclusive\&.
1022 .RE
1023 .PP
1024 \fBunreserved\-tcp\-port\fR \fIint\fR,\fIint\fR
1025 .RS 4
1026 Default: \-\-with\-tcpportrange or
1027 \fI1024,65535\fR\&. Unreserved tcp port that will be used (bsd, bsdudp)\&. Range is inclusive\&.
1028 .RE
1029 .PP
1030 \fBrecovery\-limit\fR [ \fIstring\fR | \fBsame\-host\fR ]
1031 .RS 4
1032 Default: none (no limitations)\&. This parameter limits the hosts that may do remote recoveries\&. Hosts are identified by their authenticated peer name, as described in
1033 \fBamanda-auth\fR(7); if this is not available and the recovery\-limit parameter is present, recovery will be denied\&. The arguments to the parameter are strings giving host match expressions (see
1034 \fBamanda-match\fR(7)) or the special keyword same\-host, which requires an exact match to the hostname of the DLE being recovered\&. Specifying no arguments at all will disable all recoveries from any host\&.
1035 .sp
1036 Note that match expressions can be constructed to be forgiving of e\&.g\&., fully\-qualified vs\&. unqualified hostnames, but
1037 \fBsame\-host\fR
1038 requires an exact match\&.
1039 .sp
1040 The error messages that appear in amrecover are intentionally vague to avoid information leakage\&. Consult the amindexd debug log for more details on the reasons a recovery was rejected\&.
1041 .sp
1042 Recovery limits can be refined on a per\-DLE basis using the dumptype parameter of the same name\&. Note that the default value will apply to any dumpfiles for disks which no longer appear in the disklist; thus leaving the global parameter at its default value but setting it for all DLEs is not sufficient to maintain secure backups\&.
1043 .RE
1044 .SH "HOLDINGDISK SECTION"
1045 .PP
1046 The
1047 \fBamanda\&.conf\fR
1048 file may define one or more holding disks used as buffers to hold backup images before they are written to tape\&. The syntax is:
1049 .nf
1050 define holdingdisk \fIname\fR {
1051     \fIholdingdisk\-option\fR \fIholdingdisk\-value\fR
1052     \&.\&.\&.
1053 }
1054 .fi
1055 .PP
1056 The { must appear at the end of a line, and the } on its own line\&.
1057 .PP
1058 \fIName\fR
1059 is a logical name for this holding disk\&.
1060 .PP
1061 The options and values are:
1062 .PP
1063 \fBcomment\fR \fIstring\fR
1064 .RS 4
1065 Default: not set\&. A comment string describing this holding disk\&.
1066 .RE
1067 .PP
1068 \fBdirectory\fR \fIstring\fR
1069 .RS 4
1070 Default:
1071 \fI"/dumps/amanda"\fR\&. The path to this holding area\&.
1072 .RE
1073 .PP
1074 \fBuse\fR \fIint\fR
1075 .RS 4
1076 Default:
1077 \fI0 Gb\fR\&. Amount of space that can be used in this holding disk area\&. If the value is zero, all available space on the file system is used\&. If the value is negative, Amanda will use all available space minus that value\&.
1078 .RE
1079 .PP
1080 \fBchunksize\fR \fIint\fR
1081 .RS 4
1082 Default:
1083 \fI1 Gb\fR\&. Holding disk chunk size\&. Dumps larger than the specified size will be stored in multiple holding disk files\&. The size of each chunk will not exceed the specified value\&. However, even though dump images are split in the holding disk, they are concatenated as they are written to tape, so each dump image still corresponds to a single continuous tape section\&.
1084 .sp
1085 The default unit is Kbytes if it is not specified\&.
1086 .sp
1087 If 0 is specified, Amanda will create holding disk chunks as large as ((INT_MAX/1024)\-64) Kbytes\&.
1088 .sp
1089 Each holding disk chunk includes a 32 Kbyte header, so the minimum chunk size is 64 Kbytes (but that would be really silly)\&.
1090 .sp
1091 Operating systems that are limited to a maximum file size of 2 Gbytes actually cannot handle files that large\&. They must be at least one byte less than 2 Gbytes\&. Since Amanda works with 32 Kbyte blocks, and to handle the final read at the end of the chunk, the chunk size should be at least 64 Kbytes (2 * 32 Kbytes) smaller than the maximum file size, e\&.g\&. 2047 Mbytes\&.
1092 .RE
1093 .SH "DUMPTYPE SECTION"
1094 .PP
1095 The
1096 \fBamanda.conf\fR(5)
1097 file may define multiple sets of backup options and refer to them by name from the
1098 \fBdisklist\fR(5)
1099 file\&. For instance, one set of options might be defined for file systems that can benefit from high compression, another set that does not compress well, another set for file systems that should always get a full backup and so on\&.
1100 .PP
1101 A set of backup options are entered in a
1102 \fBdumptype\fR
1103 section, which looks like this:
1104 .nf
1105 define dumptype "\fIname\fR" {
1106     \fIdumptype\-option\fR \fIdumptype\-value\fR
1107     \&.\&.\&.
1108 }
1109 .fi
1110 .PP
1111 The { must appear at the end of a line, and the } on its own line\&.
1112 .PP
1113 \fIName\fR
1114 is the name of this set of backup options\&. It is referenced from the
1115 \fBdisklist\fR(5)
1116 file\&.
1117 .PP
1118 Some of the options in a
1119 \fBdumptype\fR
1120 section are the same as those in the main part of
1121 \fBamanda.conf\fR(5)\&. The main option value is used to set the default for all
1122 \fBdumptype\fR
1123 sections\&. For instance, setting
1124 \fBdumpcycle\fR
1125 to 50 in the main part of the config file causes all following
1126 \fBdumptype\fR
1127 sections to start with that value, but the value may be changed on a section by section basis\&. Changes to variables in the main part of the config file must be done before (earlier in the file) any
1128 \fBdumptype\fRs are defined\&.
1129 .PP
1130 The dumptype options and values are:
1131 .PP
1132 \fBauth\fR \fIstring\fR
1133 .RS 4
1134 Default:
1135 \fI"bsd"\fR\&. Type of authorization to perform between tape server and backup client hosts\&. See
1136 \fBamanda-auth\fR(7)
1137 for more detail\&.
1138 .RE
1139 .PP
1140 \fBamandad\-path\fR \fIstring\fR
1141 .RS 4
1142 Default:
1143 \fI"$libexec/amandad"\fR\&. Specify the amandad path of the client, only use with rsh/ssh authentification\&.
1144 .RE
1145 .PP
1146 \fBclient\-username\fR \fIstring\fR
1147 .RS 4
1148 Default:
1149 \fICLIENT_LOGIN\fR\&. Specify the username to connect on the client, only use with rsh/ssh authentification\&.
1150 .RE
1151 .PP
1152 \fBclient\-port\fR [ \fIint\fR | \fIstring\fR ]
1153 .RS 4
1154 Default:
1155 \fI"amanda"\fR\&. Specifies the port to connect to on the client\&. It can be a service name or a numeric port number\&.
1156 .RE
1157 .PP
1158 \fBbumpsize\fR \fIint\fR
1159 .RS 4
1160 Default:
1161 \fI10 Mbytes\fR\&. The minimum savings required to trigger an automatic bump from one incremental level to the next, expressed as size\&. If Amanda determines that the next higher backup level will be this much smaller than the current level, it will do the next level\&. The value of this parameter is used only if the parameter
1162 \fIbumppercent\fR
1163 is set to 0\&.
1164 .sp
1165 The default unit is Kbytes if it is not specified\&.
1166 .sp
1167 See also the options
1168 \fBbumppercent\fR,
1169 \fBbumpmult\fR
1170 and
1171 \fBbumpdays\fR\&.
1172 .RE
1173 .PP
1174 \fBbumppercent\fR \fIint\fR
1175 .RS 4
1176 Default:
1177 \fI0\fR\&. The minimum savings required to trigger an automatic bump from one incremental level to the next, expressed as percentage of the current size of the DLE (size of current level 0)\&. If Amanda determines that the next higher backup level will be this much smaller than the current level, it will do the next level\&.
1178 .sp
1179 If this parameter is set to 0, the value of the parameter
1180 \fIbumpsize\fR
1181 is used to trigger bumping\&.
1182 .sp
1183 See also the options
1184 \fBbumpsize\fR,
1185 \fBbumpmult\fR
1186 and
1187 \fBbumpdays\fR\&.
1188 .RE
1189 .PP
1190 \fBbumpmult\fR \fIfloat\fR
1191 .RS 4
1192 Default:
1193 \fI1\&.5\fR\&. The bump size multiplier\&. Amanda multiplies
1194 \fBbumpsize\fR
1195 by this factor for each level\&. This prevents active filesystems from bumping too much by making it harder to bump to the next level\&. For example, with the default
1196 \fBbumpsize\fR
1197 and
1198 \fBbumpmult\fR
1199 set to 2\&.0, the bump threshold will be 10 Mbytes for level one, 20 Mbytes for level two, 40 Mbytes for level three, and so on\&.
1200 .RE
1201 .PP
1202 \fBbumpdays\fR \fIint\fR
1203 .RS 4
1204 Default:
1205 \fI2 days\fR\&. To insure redundancy in the dumps, Amanda keeps filesystems at the same incremental level for at least
1206 \fBbumpdays\fR
1207 days, even if the other bump threshold criteria are met\&.
1208 .RE
1209 .PP
1210 \fBcomment\fR \fIstring\fR
1211 .RS 4
1212 Default: not set\&. A comment string describing this set of backup options\&.
1213 .RE
1214 .PP
1215 \fBcomprate\fR \fIfloat\fR [, \fIfloat\fR ]
1216 .RS 4
1217 Default:
1218 \fI0\&.50, 0\&.50\fR\&. The expected full and incremental compression factor for dumps\&. It is only used if Amanda does not have any history information on compression rates for a filesystem, so should not usually need to be set\&. However, it may be useful for the first time a very large filesystem that compresses very little is backed up\&.
1219 .RE
1220 .PP
1221 \fBcompress\fR [ \fBnone\fR | \fBclient\fR | \fBserver\fR ] [ \fBbest\fR | \fBfast\fR | \fBcustom\fR ]
1222 .RS 4
1223 Default:
1224 \fBclient fast\fR\&. If Amanda does compression of the backup images, it can do so either on the backup client host before it crosses the network or on the tape server host as it goes from the network into the holding disk or to tape\&. Which place to do compression (if at all) depends on how well the dump image usually compresses, the speed and load on the client or server, network capacity, holding disk capacity, availability of tape hardware compression, etc\&.
1225 .sp
1226 For either type of compression, Amanda also allows the selection of three styles of compression\&.
1227 \fBbest\fR
1228 is the best compression available, often at the expense of CPU overhead\&.
1229 \fBfast\fR
1230 is often not as good a compression as
1231 \fBbest\fR, but usually less CPU overhead\&. Or to specify
1232 \fBcustom\fR
1233 to use your own compression method\&. (See dumptype custom\-compress in example/amanda\&.conf for reference)
1234 .sp
1235 So the
1236 \fBcompress\fR
1237 options line may be one of:
1238 .PP
1239 compress none
1240 .RS 4
1241 .RE
1242 .PP
1243 compress client fast
1244 .RS 4
1245 .RE
1246 .PP
1247 compress client best
1248 .RS 4
1249 .RE
1250 .PP
1251 compress client custom
1252 .RS 4
1253 Specify
1254 \fBclient\-custom\-compress\fR
1255 "PROG"
1256 .sp
1257 PROG must not contain white space and it must accept \-d for uncompress\&.
1258 .RE
1259 .PP
1260 compress server fast
1261 .RS 4
1262 .RE
1263 .PP
1264 compress server best
1265 .RS 4
1266 .RE
1267 .PP
1268 compress server custom
1269 .RS 4
1270 Specify
1271 \fBserver\-custom\-compress\fR
1272 "PROG"
1273 .sp
1274 PROG must not contain white space and it must accept \-d for uncompress\&.
1275 .RE
1276 .sp
1277 Note that some tape devices do compression and this option has nothing to do with whether that is used\&. If hardware compression is used (usually via a particular tape device name or
1278 \fBmt\fR
1279 option), Amanda (software) compression should be disabled\&.
1280 .RE
1281 .PP
1282 \fBclient\-custom\-compress\fR \fIstring\fR
1283 .RS 4
1284 Default: none\&. The program to use to perform compression/decompression on the client; used with "compress client custom"\&. Must not contain whitespace\&. Must accept \-d to uncompress\&.
1285 .RE
1286 .PP
1287 \fBserver\-custom\-compress\fR \fIstring\fR
1288 .RS 4
1289 Default: none\&. The program to use to perform compression/decompression on the server; used with "compress server custom"\&. Must not contain whitespace\&. Must accept \-d to uncompress\&.
1290 .RE
1291 .PP
1292 \fBdumpcycle\fR \fIint\fR
1293 .RS 4
1294 Default:
1295 \fI10 days\fR\&. The number of days in the backup cycle\&. Each disk using this set of options will get a full backup at least this of ten\&. Setting this to zero tries to do a full backup each run\&.
1296 .RE
1297 .PP
1298 \fBencrypt\fR [ \fBnone\fR | \fBclient\fR | \fBserver\fR ]
1299 .RS 4
1300 Default: not set\&. To encrypt backup images, it can do so either on the backup client host before it crosses the network or on the tape server host as it goes from the network into the holding disk or to tape\&.
1301 .sp
1302 So the
1303 \fBencrypt\fR
1304 options line may be one of:
1305 .PP
1306 encrypt none
1307 .RS 4
1308 .RE
1309 .PP
1310 encrypt client
1311 .RS 4
1312 Specify client\-encrypt "PROG"
1313 .sp
1314 PROG must not contain white space\&.
1315 .sp
1316 Specify client\-decrypt\-option "decryption\-parameter" Default: "\-d"
1317 .sp
1318 decryption\-parameter must not contain white space\&.
1319 .sp
1320 (See dumptype client\-encrypt\-nocomp in example/amanda\&.conf for reference)
1321 .RE
1322 .PP
1323 encrypt server
1324 .RS 4
1325 Specify server\-encrypt "PROG"
1326 .sp
1327 PROG must not contain white space\&.
1328 .sp
1329 Specify server\-decrypt\-option "decryption\-parameter" Default: "\-d"
1330 .sp
1331 decryption\-parameter must not contain white space\&.
1332 .sp
1333 (See dumptype server\-encrypt\-fast in example/amanda\&.conf for reference)
1334 .RE
1335 .sp
1336 Note that current logic assumes compression then encryption during backup(thus decrypt then uncompress during restore)\&. So specifying client\-encryption AND server\-compression is not supported\&.
1337 \fIamcrypt\fR
1338 which is a wrapper of
1339 \fIaespipe\fR
1340 is provided as a reference symmetric encryption program\&.
1341 .RE
1342 .PP
1343 \fBclient\-encrypt\fR \fIstring\fR
1344 .RS 4
1345 Default: none\&. The program to use to perform encryption/decryption on the client; used with "encrypt client"\&. Must not contain whitespace\&.
1346 .RE
1347 .PP
1348 \fBclient\-decrypt\-option\fR \fIstring\fR
1349 .RS 4
1350 Default: \-d\&. The option that can be passed to client\-encrypt to make it decrypt instead\&. Must not contain whitespace\&.
1351 .RE
1352 .PP
1353 \fBserver\-encrypt\fR \fIstring\fR
1354 .RS 4
1355 Default: none\&. The program to use to perform encryption/decryption on the server; used with "encrypt server"\&. Must not contain whitespace\&.
1356 .RE
1357 .PP
1358 \fBserver\-decrypt\-option\fR \fIstring\fR
1359 .RS 4
1360 Default: \-d\&. The option that can be passed to server\-encrypt to make it decrypt instead\&. Must not contain whitespace\&.
1361 .RE
1362 .PP
1363 \fBestimate\fR [ \fBclient\fR | \fBcalcsize\fR | \fBserver\fR ]+
1364 .RS 4
1365 Default:
1366 \fBclient\fR\&. Determine the way Amanda estimates the size of each DLE before beginning a backup\&. This is a list of acceptable estimate methods, and Amanda applies the first method supported by the application\&. The methods are:
1367 .PP
1368 client
1369 .RS 4
1370 Use the same program as the dumping program\&. This is the most accurate method to do estimates, but it can take a long time\&.
1371 .RE
1372 .PP
1373 calcsize
1374 .RS 4
1375 Use a faster program to do estimates, but the result is less accurate\&.
1376 .RE
1377 .PP
1378 server
1379 .RS 4
1380 Use only statistics from the previous few runs to give an estimate\&. This very quick, but the result is not accurate if your disk usage changes from day to day\&. If this method is specified, but the server does not have enough data to make an estimate, then the option is internally moved to the end of the list, thereby preferring \'client\' or \'calcsize\' in this case\&.
1381 .RE
1382 .RE
1383 .PP
1384 \fBexclude\fR [ \fBlist\fR | \fBfile\fR ][[\fBoptional\fR][\fBappend\fR][ \fIstring\fR ]+]
1385 .RS 4
1386 Default:
1387 \fBfile\fR\&. Exclude is the opposite of
1388 \fBinclude\fR
1389 and specifies files that will be excluded from the backup\&. The format of the exclude expressions depends on the application, and some applications do not support excluding files at all\&.
1390 .sp
1391 There are two exclude parameters,
1392 \fBexclude\fR
1393 \fBfile\fR
1394 and
1395 \fBexclude\fR
1396 \fBlist\&.\fR
1397 With
1398 \fBexclude\fR
1399 \fBfile\fR, the
1400 \fIstring\fR
1401 is an exclude expression\&. With
1402 \fBexclude\fR
1403 \fBlist\fR
1404 , the
1405 \fIstring\fR
1406 is a file name on the client containing
1407 \fBGNU\-tar\fR
1408 exclude expressions\&. The path to the specified exclude list file, if present (see description of \'optional\' below), must be readable by the Amanda user\&.
1409 .sp
1410 All exclude expressions are concatenated in one file and passed to the application as an
1411 \fB\-\-exclude\-from\fR
1412 argument\&.
1413 .sp
1414 For
1415 \fBGNU\-tar\fR, exclude expressions must always be specified as relative to the top\-level directory of the DLE, and must start with "\&./"\&. See the manpages for individual applications for more information on supported exclude expressions\&.
1416 .sp
1417 With the
1418 \fBappend\fR
1419 keyword, the
1420 \fIstring\fR
1421 is appended to the current list, without it, the
1422 \fIstring\fR
1423 overwrites the list\&.
1424 .sp
1425 If
1426 \fBoptional\fR
1427 is specified for
1428 \fBexclude\fR
1429 \fBlist\fR, then amcheck will not complain if the file doesn\'t exist or is not readable\&.
1430 .sp
1431 For
1432 \fBexclude\fR
1433 \fBlist\fR, if the file name is relative, the disk name being backed up is prepended\&. So if this is entered:
1434 .nf
1435     exclude list "\&.amanda\&.excludes"
1436 .fi
1437 the actual file used would be
1438 /var/\&.amanda\&.excludes
1439 for a backup of
1440 /var,
1441 /usr/local/\&.amanda\&.excludes
1442 for a backup of
1443 /usr/local, and so on\&.
1444 .RE
1445 .PP
1446 \fBholdingdisk\fR [ \fBnever\fR | \fBauto\fR | \fBrequired\fR ]
1447 .RS 4
1448 Default:
1449 \fBauto\fR\&. Whether a holding disk should be used for these backups or whether they should go directly to tape\&. If the holding disk is a portion of another file system that Amanda is backing up, that file system should refer to a dumptype with
1450 \fBholdingdisk\fR
1451 set to
1452 \fInever\fR
1453 to avoid backing up the holding disk into itself\&.
1454 .PP
1455 \fBnever\fR|no|false|off
1456 .RS 4
1457 Never use a holdingdisk, the dump will always go directly to tape\&. There will be no dump if you have a tape error\&.
1458 .RE
1459 .PP
1460 \fBauto\fR|yes|true|on
1461 .RS 4
1462 Use the holding disk, unless there is a problem with the holding disk, the dump won\'t fit there or the medium doesn\'t require spooling (e\&.g\&., VFS device)
1463 .RE
1464 .PP
1465 \fBrequired\fR
1466 .RS 4
1467 Always dump to holdingdisk, never directly to tape\&. There will be no dump if it doesn\'t fit on holdingdisk
1468 .RE
1469 .RE
1470 .PP
1471 \fBignore\fR \fIboolean\fR
1472 .RS 4
1473 Default:
1474 \fBno\fR\&. Whether disks associated with this backup type should be backed up or not\&. This option is useful when the
1475 \fIdisklist\fR
1476 file is shared among several configurations, some of which should not back up all the listed file systems\&.
1477 .RE
1478 .PP
1479 \fBinclude\fR [ \fBlist\fR | \fBfile\fR ][[\fBoptional\fR][\fBappend\fR][ \fIstring\fR ]+]
1480 .RS 4
1481 Default:
1482 \fBfile\fR
1483 "\&."\&. There are two include lists,
1484 \fBinclude file\fR
1485 and
1486 \fBinclude list\&.\fR
1487 With
1488 \fBinclude file\fR
1489 , the
1490 \fIstring\fR
1491 is a glob expression\&. With
1492 \fBinclude list\fR
1493 , the
1494 \fIstring\fR
1495 is a file name on the client containing glob expressions\&.
1496 .sp
1497 All include expressions are expanded by Amanda, concatenated in one file and passed to
1498 \fBGNU\-tar\fR
1499 as a
1500 \fB\-\-files\-from\fR
1501 argument\&. They must start with "\&./" and contain no other "/"\&.
1502 .sp
1503 Include expressions must always be specified as relative to the head directory of the DLE\&.
1504 .if n \{\
1505 .sp
1506 .\}
1507 .RS 4
1508 .it 1 an-trap
1509 .nr an-no-space-flag 1
1510 .nr an-break-flag 1
1511 .br
1512 .ps +1
1513 \fBNote\fR
1514 .ps -1
1515 .br
1516 For globbing to work at all, even the limited single level, the top level directory of the DLE must be readable by the Amanda user\&.
1517 .sp .5v
1518 .RE
1519 With the
1520 \fBappend\fR
1521 keyword, the
1522 \fIstring\fR
1523 is appended to the current list, without it, the
1524 \fIstring\fR
1525 overwrites the list\&.
1526 .sp
1527 If
1528 \fBoptional\fR
1529 is specified for
1530 \fBinclude list\fR, then amcheck will not complain if the file doesn\'t exist or is not readable\&.
1531 .sp
1532 For
1533 \fBinclude list\fR, If the file name is relative, the disk name being backed up is prepended\&.
1534 .RE
1535 .PP
1536 \fBindex\fR \fIboolean\fR
1537 .RS 4
1538 Default:
1539 \fBno\fR\&. Whether an index (catalogue) of the backup should be generated and saved in
1540 \fBindexdir\fR\&. These catalogues are used by the
1541 \fBamrecover\fR
1542 utility\&.
1543 .RE
1544 .PP
1545 \fBkencrypt\fR \fIboolean\fR
1546 .RS 4
1547 Default:
1548 \fBno\fR\&. Whether the backup image should be encrypted by Kerberos as it is sent across the network from the backup client host to the tape server host\&.
1549 .RE
1550 .PP
1551 \fBmaxdumps\fR \fIint\fR
1552 .RS 4
1553 Default:
1554 \fI1\fR\&. The maximum number of backups from a single host that Amanda will attempt to run in parallel\&. See also the main section parameter
1555 \fBinparallel\fR\&.
1556 .RE
1557 .PP
1558 \fBmaxpromoteday\fR \fIint\fR
1559 .RS 4
1560 Default:
1561 \fI10000\fR\&. The maximum number of day for a promotion, set it 0 if you don\'t want promotion, set it to 1 or 2 if your disks get overpromoted\&.
1562 .RE
1563 .PP
1564 \fBpriority\fR [ \fBlow\fR | \fBmedium\fR | \fBhigh\fR ]
1565 .RS 4
1566 Default:
1567 \fBmedium\fR\&. When there is no tape to write to, Amanda will do incremental backups in priority order to the holding disk\&. The priority may be high (2), medium (1), low (0) or a number of your choice\&.
1568 .RE
1569 .PP
1570 \fBprogram\fR [ \fB"DUMP"\fR | \fB"GNUTAR"\fR | \fB"APPLICATION"\fR ]
1571 .RS 4
1572 Default:
1573 \fI"DUMP"\fR\&. The type of backup to perform\&. Valid values are:
1574 .PP
1575 \fB"DUMP"\fR
1576 .RS 4
1577 The native operating system backup program\&.
1578 .RE
1579 .PP
1580 \fB"GNUTAR"\fR
1581 .RS 4
1582 To use GNU\-tar or to do PC backups using Samba\&.
1583 .RE
1584 .PP
1585 \fB"APPLICATION"\fR
1586 .RS 4
1587 To use an application, see the
1588 \fIapplication\fR
1589 option\&.
1590 .RE
1591 .RE
1592 .PP
1593 \fBapplication\fR \fIstring\fR
1594 .RS 4
1595 No default\&. Must be the name of an application if
1596 \fIprogram\fR
1597 is set to
1598 \fIAPPLICATION\fR\&. See APPLICATION SECTION below\&.
1599 .RE
1600 .PP
1601 \fBscript\fR \fIstring\fR
1602 .RS 4
1603 No default\&. Must be the name of a script\&. You can have many script\&. See SCRIPT SECTION below\&.
1604 .RE
1605 .PP
1606 \fBproperty\fR [\fBappend\fR] \fIstring\fR \fIstring\fR+
1607 .RS 4
1608 These options can set various properties, they can be used by third party software to store information in the configuration file\&. Both strings are quoted; the first string contains the name of the property to set, and the others contains its values\&.
1609 \fBappend\fR
1610 keyword append the values to the list of values for that property\&.
1611 .RE
1612 .PP
1613 \fBrecord\fR \fIboolean\fR
1614 .RS 4
1615 Default:
1616 \fByes\fR\&. Whether to ask the backup program to update its database (e\&.g\&.
1617 /etc/dumpdates
1618 for DUMP or
1619 /usr/local/var/amanda/gnutar\-lists
1620 for GNUTAR) of time stamps\&. This is normally enabled for daily backups and turned off for periodic archival runs\&.
1621 .RE
1622 .PP
1623 \fBskip\-full\fR \fIboolean\fR
1624 .RS 4
1625 Default:
1626 \fBno\fR\&. If
1627 \fBtrue\fR
1628 and
1629 \fBplanner\fR
1630 has scheduled a full backup, these disks will be skipped, and full backups should be run off\-line on these days\&. It was reported that Amanda only schedules level 1 incrementals in this configuration; this is probably a bug\&.
1631 .RE
1632 .PP
1633 \fBskip\-incr\fR \fIboolean\fR
1634 .RS 4
1635 Default:
1636 \fBno\fR\&. If
1637 \fBtrue\fR
1638 and
1639 \fBplanner\fR
1640 has scheduled an incremental backup, these disks will be skipped\&.
1641 .RE
1642 .PP
1643 \fBssh\-keys\fR \fIstring\fR
1644 .RS 4
1645 Default: not set\&. The key file the ssh auth will use, it must be the private key\&. If this parameter is not specified, then the default ssh key will be used\&.
1646 .RE
1647 .PP
1648 \fBstarttime\fR \fIint\fR
1649 .RS 4
1650 Default: not set\&. Backup of these disks will not start until after this time of day\&. The value should be hh*100+mm, e\&.g\&. 6:30PM (18:30) would be entered as
1651 1830\&.
1652 .RE
1653 .PP
1654 \fBstrategy\fR [ \fBstandard\fR | \fBnofull\fR | \fBnoinc\fR | \fBskip\fR | \fBincronly\fR ]
1655 .RS 4
1656 Default:
1657 \fBstandard\fR\&. Strategy to use when planning what level of backup to run next\&. Values are:
1658 .PP
1659 \fBstandard\fR
1660 .RS 4
1661 The standard Amanda schedule\&.
1662 .RE
1663 .PP
1664 \fBnofull\fR
1665 .RS 4
1666 Never do full backups, only level 1 incrementals\&.
1667 .RE
1668 .PP
1669 \fBnoinc\fR
1670 .RS 4
1671 Never do incremental backups, only full dumps\&.
1672 .RE
1673 .PP
1674 \fBskip\fR
1675 .RS 4
1676 Treat this DLE as if it doesn\'t exist (useful to disable DLEs when sharing the
1677 \fIdisklist\fR
1678 file between multiple configurations)\&. Skipped DLEs will not be checked or dumped, and will not be matched by disklist expressions\&.
1679 .RE
1680 .PP
1681 \fBincronly\fR
1682 .RS 4
1683 Only do incremental dumps\&.
1684 \fBamadmin force\fR
1685 should be used to tell Amanda that a full dump has been performed off\-line, so that it resets to level 1\&.
1686 .RE
1687 .RE
1688 .PP
1689 \fBallow\-split\fR \fIbool\fR
1690 .RS 4
1691 Default: true\&. If true, then dumps with this dumptype can be split on the storage media\&. If false, then the dump will be written in a single file on the media\&. See "Dump Splitting Configuration" below\&.
1692 .RE
1693 .PP
1694 \fBtape\-splitsize\fR \fIint\fR
1695 .RS 4
1696 Deprecated\&. See "Dump Splitting Configuration" below\&.
1697 .sp
1698 Default: not set\&. Split dump file on tape into pieces of a specified size\&. The default unit is Kbytes if it is not specified\&.
1699 .RE
1700 .PP
1701 \fBsplit\-diskbuffer\fR \fIstring\fR
1702 .RS 4
1703 .PP
1704 Deprecated\&. See "Dump Splitting Configuration" below\&.
1705 Default: not set\&. When dumping a split dump in PORT\-WRITE mode (usually meaning "no holding disk"), buffer the split chunks to a file in the directory specified by this option\&.
1706 .RE
1707 .PP
1708 \fBfallback\-splitsize\fR \fIint\fR
1709 .RS 4
1710 Deprecated\&. See "Dump Splitting Configuration" below\&.
1711 .sp
1712 Default:
1713 \fI10M\fR\&. This specifies the part size used when no
1714 \fBsplit\-diskbuffer\fR
1715 is specified, or when it is too small or does not exist, and thus the maximum amount of memory consumed for in\-memory splitting\&. The default unit is Kbytes if it is not specified\&.
1716 .RE
1717 .PP
1718 \fBrecovery\-limit\fR [ \fBsame\-host\fR | \fIstring\fR ]*
1719 .RS 4
1720 Default: global value\&. This parameter overrides the global
1721 \fBrecovery\-limit\fR
1722 parameter for DLEs of this dumptype\&.
1723 .RE
1724 .PP
1725 The following
1726 \fBdumptype\fR
1727 entries are predefined by Amanda:
1728 .nf
1729 define dumptype "no\-compress" {
1730     compress none
1731 }
1732 define dumptype "compress\-fast" {
1733     compress client fast
1734 }
1735 define dumptype "compress\-best" {
1736     compress client best
1737 }
1738 define dumptype "srvcompress" {
1739     compress server fast
1740 }
1741 define dumptype "bsd\-auth" {
1742     auth bsd
1743 }
1744 define dumptype "no\-record" {
1745     record no
1746 }
1747 define dumptype "no\-hold" {
1748     holdingdisk no
1749 }
1750 define dumptype "no\-full" {
1751     skip\-full yes
1752
1753 .fi
1754 .PP
1755 In addition to options in a
1756 \fBdumptype\fR
1757 section, one or more other
1758 \fBdumptype\fR
1759 names may be supplied as identifiers, which make this
1760 \fBdumptype\fR
1761 inherit options from other previously defined
1762 \fBdumptype\fRs\&. For instance, two sections might be the same except for the
1763 \fBrecord\fR
1764 option:
1765 .nf
1766 define dumptype "normal" {
1767     comment "Normal backup, no compression, do indexing"
1768     no\-compress
1769     index yes
1770     maxdumps 2
1771 }
1772 define dumptype "testing" {
1773     comment "Test backup, no compression, do indexing, no recording"
1774     "normal"
1775     record no
1776 }
1777 .fi
1778 .PP
1779 Amanda provides a
1780 \fBdumptype\fR
1781 named
1782 \fIglobal\fR
1783 in the sample
1784 \fBamanda\&.conf\fR
1785 file that all
1786 \fBdumptype\fRs should reference\&. This provides an easy place to make changes that will affect every
1787 \fBdumptype\fR, although you must be careful that every dumptype explicitly inherits from the
1788 \fIglobal\fR
1789 dumptype \- Amanda does not do so automatically\&.
1790 .SH "TAPETYPE SECTION"
1791 .PP
1792 The
1793 \fBamanda\&.conf\fR
1794 file may define multiple types of tape media and devices\&. The information is entered in a
1795 \fBtapetype\fR
1796 section, which looks like this in the config file:
1797 .nf
1798 define tapetype "\fIname\fR" {
1799     \fItapetype\-option\fR \fItapetype\-value\fR
1800     \&.\&.\&.
1801 }
1802 .fi
1803 .PP
1804 The { must appear at the end of a line, and the } on its own line\&.
1805 .PP
1806 \fIName\fR
1807 is the name of this type of tape medium/device\&. It is referenced from the
1808 \fBtapetype\fR
1809 option in the main part of the config file\&.
1810 .PP
1811 The tapetype options and values are:
1812 .PP
1813 \fBcomment\fR \fIstring\fR
1814 .RS 4
1815 Default: not set\&. A comment string describing this set of tape information\&.
1816 .RE
1817 .PP
1818 \fBfilemark\fR \fIint\fR
1819 .RS 4
1820 Default:
1821 \fI1 kbytes\fR\&. How large a file mark (tape mark) is, measured in kbytes\&. If the size is only known in some linear measurement (e\&.g\&. inches), convert it to kbytes using the device density\&.
1822 .RE
1823 .PP
1824 \fBlength\fR \fIint\fR
1825 .RS 4
1826 Default:
1827 \fI2000 kbytes\fR\&. How much data will fit on a tape, expressed in kbytes\&.
1828 .sp
1829 Note that this value is only used by Amanda to schedule which backups will be run\&. Once the backups start, Amanda will continue to write to a tape until it gets an error, regardless of what value is entered for
1830 \fBlength\fR
1831 (but see
1832 \fBamanda-devices\fR(7)
1833 for exceptions)\&.
1834 .RE
1835 .PP
1836 \fBblocksize\fR \fIint\fR
1837 .RS 4
1838 Default:
1839 \fI32 kbytes\fR\&. How much data will be written in each tape record, expressed in kbytes\&. This is similar to the
1840 \fIBLOCK_SIZE\fR
1841 device property, but if the blocksize is not a multiple of 1024 bytes, then this parameter cannot be used to specify it, and the property must be used instead\&.
1842 .RE
1843 .PP
1844 \fBreadblocksize\fR \fIint\fR
1845 .RS 4
1846 Default:
1847 \fI32 kytes\fR
1848 How much data will be read in each tape record\&. This can be used to override a device\'s block size for reads only\&. This may be useful, for example, in reading a tape written with a 256k block size when Amanda is configured to use 128k blocks\&. This unusual feature is not supported by all operating systems and tape devices\&.
1849 .sp
1850 The default unit is Kbytes if it is not specified\&.
1851 .RE
1852 .PP
1853 \fBpart\-size\fR \fIint\fR
1854 .RS 4
1855 Default: none\&. This is the size (in KB if no units are specified) of each split part written to the volume\&. It is reduced to
1856 \fBpart\-cache\-max\-size\fR
1857 when part caching is required\&. If this is set to zero, then no splitting will take place; in this case, some devices can span dumps from volume to volume, while others will cause the entire dump to fail if they encounter end\-of\-medium before the dump is complete\&. See "Dump Splitting Configuration" below\&.
1858 .RE
1859 .PP
1860 \fBpart\-cache\-type\fR [ \fBnone\fR | \fBdisk\fR | \fBmemory\fR ]
1861 .RS 4
1862 Default: none\&. When part caching is required, this parameter specifies the type of caching that will be used\&. The options include no caching (\fBnone\fR), in which case a failed part will cause the entire dump to fail; on\-disk caching (\fBdisk\fR), for which
1863 \fBpart\-cache\-dir\fR
1864 must be set properly; and in\-memory caching (\fBmemory\fR), which on most systems severely restrains the size of the part that can be written\&. See "Dump Splitting Configuration" below\&.
1865 .RE
1866 .PP
1867 \fBpart\-cache\-dir\fR \fIstring\fR
1868 .RS 4
1869 Default: none\&. The directory in which part\-cache files can be written when caching on disk\&. See "Dump Splitting Configuration" below\&.
1870 .RE
1871 .PP
1872 \fBpart\-cache\-max\-size\fR \fIint\fR
1873 .RS 4
1874 Default: none\&. The maximum part size to use when caching is in effect\&. This is used to limit the part size when disk or memory space for caching is constrained\&. This value must be greater than zero\&.
1875 .RE
1876 .PP
1877 \fBspeed\fR \fIint\fR
1878 .RS 4
1879 Default:
1880 \fI200 bps\fR\&. How fast the drive will accept data, in bytes per second\&. This parameter is NOT currently used by Amanda\&.
1881 .RE
1882 .PP
1883 \fBlbl\-templ\fR \fIstring\fR
1884 .RS 4
1885 Default: not set\&. A PostScript template file used by
1886 \fBamreport\fR
1887 to generate labels\&. Several sample files are provided with the Amanda sources in the
1888 \fIexample\fR
1889 directory\&. See the
1890 \fBamreport\fR(8)
1891 man page for more information\&.
1892 .RE
1893 .PP
1894 In addition to options, another
1895 \fBtapetype\fR
1896 name may be supplied as an identifier, which makes this
1897 \fBtapetype\fR
1898 inherit options from another
1899 \fBtapetype\fR\&. For instance, the only difference between a DLT4000 tape drive using Compact\-III tapes and one using Compact\-IV tapes is the length of the tape\&. So they could be entered as:
1900 .nf
1901 define tapetype "DLT4000\-III" {
1902     comment "DLT4000 tape drives with Compact\-III tapes"
1903     length 12500 mbytes         # 10 Gig tapes with some compression
1904     filemark 2000 kbytes
1905     speed 1536 kps
1906 }
1907 define tapetype "DLT4000\-IV" {
1908     "DLT4000\-III"
1909     comment "DLT4000 tape drives with Compact\-IV tapes"
1910     length 25000 mbytes         # 20 Gig tapes with some compression
1911 }
1912 .fi
1913 .SH "INTERFACE SECTION"
1914 .PP
1915 The
1916 \fBamanda\&.conf\fR
1917 file may define multiple types of network interfaces\&. The information is entered in an
1918 \fBinterface\fR
1919 section, which looks like this:
1920 .nf
1921 define interface "\fIname\fR" {
1922     \fIinterface\-option\fR \fIinterface\-value\fR
1923     \&.\&.\&.
1924 }
1925 .fi
1926 .PP
1927 The { must appear at the end of a line, and the } on its own line\&.
1928 .PP
1929 \fIname\fR
1930 is the name of this type of network interface\&. It is referenced from the
1931 \fIdisklist\fR
1932 file\&.
1933 .PP
1934 Note that these sections define network interface characteristics, not the actual interface that will be used\&. Nor do they impose limits on the bandwidth that will actually be taken up by Amanda\&. Amanda computes the estimated bandwidth each file system backup will take based on the estimated size and time, then compares that plus any other running backups with the limit as another of the criteria when deciding whether to start the backup\&. Once a backup starts, Amanda will use as much of the network as it can leaving throttling up to the operating system and network hardware\&.
1935 .PP
1936 The interface options and values are:
1937 .PP
1938 \fBcomment\fR \fIstring\fR
1939 .RS 4
1940 Default: not set\&. A comment string describing this set of network information\&.
1941 .RE
1942 .PP
1943 \fBuse\fR \fIint\fR
1944 .RS 4
1945 Default:
1946 \fI8000 Kbps\fR\&. The speed of the interface in Kbytes per second\&.
1947 .RE
1948 .PP
1949 In addition to options, another
1950 \fBinterface\fR
1951 name may be supplied as an identifier, which makes this
1952 \fBinterface\fR
1953 inherit options from another
1954 \fBinterface\fR\&. At the moment, this is of little use\&.
1955 .SH "APPLICATION SECTION"
1956 .PP
1957 The
1958 \fBamanda\&.conf\fR
1959 file may define multiple types of application\&. The information is entered in a
1960 \fBapplication\fR
1961 section, which looks like this:
1962 .nf
1963 define application "\fIname\fR" {
1964     \fIapplication\-option\fR \fIapplication\-value\fR
1965     \&.\&.\&.
1966 }
1967 .fi
1968 .PP
1969 The { must appear at the end of a line, and the } on its own line\&.
1970 .PP
1971 \fIname\fR
1972 is the name of this type of application\&. It is referenced from the
1973 \fIdumptype\fR
1974 .PP
1975 The application options and values are:
1976 .PP
1977 \fBcomment\fR \fIstring\fR
1978 .RS 4
1979 Default: not set\&. A comment string describing this application\&.
1980 .RE
1981 .PP
1982 \fBplugin\fR \fIstring\fR
1983 .RS 4
1984 No default\&. Must be set to the name of the program\&. This program must be in the
1985 \fI$libexecdir/amanda/application\fR
1986 directory on the client\&.
1987 .RE
1988 .PP
1989 \fBproperty\fR [\fBappend\fR] [\fBpriority\fR] \fIstring\fR \fIstring\fR+
1990 .RS 4
1991 No default\&. You can set property for the application, each application have a different set of property\&. Both strings are quoted; the first string contains the name of the property to set, and the others contains its values\&.
1992 \fBappend\fR
1993 keyword append the values to the list of values for that property\&.
1994 \fBpriority\fR
1995 keyword disallow the setting of that property on the client\&.
1996 .RE
1997 .SH "SCRIPT SECTION"
1998 .PP
1999 The
2000 \fBamanda\&.conf\fR
2001 file may define multiple types of script\&. The information is entered in a
2002 \fBscript\fR
2003 section, which looks like this:
2004 .nf
2005 define script "\fIname\fR" {
2006     \fIscript\-option\fR \fIscript\-value\fR
2007     \&.\&.\&.
2008 }
2009 .fi
2010 .PP
2011 The { must appear at the end of a line, and the } on its own line\&.
2012 .PP
2013 \fIname\fR
2014 is the name of this type of script\&. It is referenced from the
2015 \fIdumptype\fR
2016 .PP
2017 The script options and values are:
2018 .PP
2019 \fBcomment\fR \fIstring\fR
2020 .RS 4
2021 Default: not set\&. A comment string describing this script\&.
2022 .RE
2023 .PP
2024 \fBplugin\fR \fIstring\fR
2025 .RS 4
2026 No default\&. Must be set to the name of the program\&. This program must be in the
2027 \fI$libexecdir/amanda/application\fR
2028 directory on the client and/or server\&.
2029 .RE
2030 .PP
2031 \fBorder\fR \fIint\fR
2032 .RS 4
2033 Default:
2034 \fI5000\fR\&. Scripts are executed in that order, it is useful if you have many scripts and they must be executed in a spefific order\&.
2035 .RE
2036 .PP
2037 \fBexecute\-where\fR [ \fBclient\fR | \fBserver\fR ]
2038 .RS 4
2039 Default:
2040 \fBclient\fR\&. Where the script must be executed, on the client or server\&.
2041 .RE
2042 .PP
2043 \fBexecute\-on\fR \fIexecute_on\fR [,\fIexecute_on\fR]*
2044 .RS 4
2045 No default\&. When the script must be executed, you can specify many of them:
2046 .PP
2047 \fBpre\-dle\-amcheck\fR
2048 .RS 4
2049 Execute before the amcheck command for the dle\&.
2050 .RE
2051 .PP
2052 \fBpre\-host\-amcheck\fR
2053 .RS 4
2054 Execute before the amcheck command for all dle for the client\&.
2055 .RE
2056 .PP
2057 \fBpost\-dle\-amcheck\fR
2058 .RS 4
2059 Execute after the amcheck command for the dle\&.
2060 .RE
2061 .PP
2062 \fBpost\-host\-amcheck\fR
2063 .RS 4
2064 Execute after the amcheck command for all dle for the client\&.
2065 .RE
2066 .PP
2067 \fBpre\-dle\-estimate\fR
2068 .RS 4
2069 Execute before the estimate command for the dle\&.
2070 .RE
2071 .PP
2072 \fBpre\-host\-estimate\fR
2073 .RS 4
2074 Execute before the estimate command for all dle for the client\&.
2075 .RE
2076 .PP
2077 \fBpost\-dle\-estimate\fR
2078 .RS 4
2079 Execute after the estimate command for the dle\&.
2080 .RE
2081 .PP
2082 \fBpost\-host\-estimate\fR
2083 .RS 4
2084 Execute after the estimate command for all dle for the client\&.
2085 .RE
2086 .PP
2087 \fBpre\-dle\-backup\fR
2088 .RS 4
2089 Execute before the backup command for the dle\&.
2090 .RE
2091 .PP
2092 \fBpre\-host\-backup\fR
2093 .RS 4
2094 Execute before the backup command for all dle for the client\&. It can\'t be run on client, it must be run on server
2095 .RE
2096 .PP
2097 \fBpost\-dle\-backup\fR
2098 .RS 4
2099 Execute after the backup command for the dle\&.
2100 .RE
2101 .PP
2102 \fBpost\-host\-backup\fR
2103 .RS 4
2104 Execute after the backup command for all dle for the client\&. It can\'t be run on client, it must be run on server
2105 .RE
2106 .PP
2107 \fBpre\-recover\fR
2108 .RS 4
2109 Execute before any level is recovered\&.
2110 .RE
2111 .PP
2112 \fBpost\-recover\fR
2113 .RS 4
2114 Execute after all levels are recovered\&.
2115 .RE
2116 .PP
2117 \fBpre\-level\-recover\fR
2118 .RS 4
2119 Execute before each level recovery\&.
2120 .RE
2121 .PP
2122 \fBpost\-level\-recover\fR
2123 .RS 4
2124 Execute after each level recovery\&.
2125 .RE
2126 .PP
2127 \fBinter\-level\-recover\fR
2128 .RS 4
2129 Execute between two levels of recovery\&.
2130 .RE
2131 .sp
2132 If you recover level 0 and 2 of the disk /usr with amrecover, it will execute:
2133 .nf
2134 script \-\-pre\-recover
2135 script \-\-pre\-level\-recover \-\-level 0
2136 #recovering level 0
2137 script \-\-post\-level\-recover \-\-level 0
2138 script \-\-inter\-level\-recover \-\-level 0 \-\-level 2
2139 script \-\-pre\-level\-recover \-\-level 2
2140 #recovering level 2
2141 script \-\-post\-level\-recover \-\-level 2
2142 script \-\-post\-recover
2143 .fi
2144 .RE
2145 .PP
2146 \fBproperty\fR [\fBappend\fR] [\fBpriority\fR] \fIstring\fR \fIstring\fR+
2147 .RS 4
2148 No default\&. You can set property for the script, each script have a different set of property\&. Both strings are quoted; the first string contains the name of the property to set, and the others contains its values\&.
2149 \fBappend\fR
2150 keyword append the values to the list of values for that property\&.
2151 \fBpriority\fR
2152 keyword disallow the setting of that property on the client\&.
2153 .RE
2154 .SH "DEVICE SECTION"
2155 .PP
2156 Backend storage devices are specified in
2157 \fBamanda\&.conf\fR
2158 in the form of "device" sections, which look like this:
2159 .nf
2160 define device \fIname\fR {
2161     commend "\fIcomment (optional)\fR"
2162     tapedev "\fIdevice\-specifier\fR"
2163     device\-property "\fIprop\-name\fR" "\fIprop\-value\fR"
2164     \&.\&.\&.
2165 }
2166 .fi
2167 .PP
2168 The { must appear at the end of a line, and the } on its own line\&.
2169 .PP
2170 \fIname\fR
2171 is the user\-specified name of this device\&. It is referenced from the global
2172 \fItapedev\fR
2173 parameter\&. The
2174 \fIdevice\-specifier\fR
2175 specifies the device name to use; see
2176 \fBamanda-devices\fR(7)\&. As with most sections, the
2177 \fIcomment\fR
2178 parmeter is optional and only for the user\'s convenience\&.
2179 .PP
2180 An arbitrary number of
2181 \fIdevice\-property\fR
2182 parameters can be specified\&. Again, see
2183 \fBamanda-devices\fR(7)
2184 for information on device properties\&.
2185 .SH "CHANGER SECTION"
2186 .PP
2187 Changers are described in
2188 \fBamanda\&.conf\fR
2189 in the form of "changer" sections, which look like this:
2190 .nf
2191 define changer \fIname\fR {
2192     comment "\fIcomment (optional)\fR"
2193     tpchanger "\fIchanger\-spec\fR"
2194     changerdev "\fIdevice\-name\fR"
2195     changerfile "\fIstate\-file\fR"
2196     \&.\&.\&.
2197 }
2198 .fi
2199 .PP
2200 The { must appear at the end of a line, and the } on its own line\&.
2201 .PP
2202 \fIname\fR
2203 is the user\-specified name of this device\&. The remaining parameters are specific to the changer type selected\&.
2204 .PP
2205 See
2206 \fBamanda-changers\fR(7)
2207 for more information on configuring changers\&.
2208 .SH "DUMP SPLITTING CONFIGURATION"
2209 .PP
2210 Amanda can "split" dumps into parts while writing them to storage media\&. This allows Amanda to recover gracefully from a failure while writing a part to a volume, by simply selecting a new volume and re\-writing the dump from the beginning of the failed part\&. Parts also allow Amanda to seek directly to the required data, although this functionality is not yet used\&.
2211 .PP
2212 In order to support re\-writing from the beginning of a failed part, Amanda must have access to the contents of the part after it has been partially written\&. If the dump is being read from holding disk, then the part contents are availble there\&. Otherwise, the part must be cached, and this can be done memory or on disk\&. In either of the latter cases, the cache must have enough space to hold an entire part\&.
2213 .PP
2214 Because it is common for a single Amanda configuration to use both holding\-disk (FILE\-WRITE) and direct (known as PORT\-WRITE) dumps, Amanda allows the configuration of different split sizes for the two cases\&. This allows, for example, for a part size appropriate to large tapes when performing FILE\-WRITE dumps, with a part size limited by available disk or memory when performing PORT\-WRITE dumps\&.
2215 .PP
2216 Selecting a proper split size is a delicate matter\&. If the parts are too large, substantial storage space may be wasted in failed parts\&. If too small, large dumps will be split into innumerable tiny dumpfiles, adding to restoration complexity; furthermore, an excess of filemarks will cause slower tape drive operation and reduce the usable space on tape\&. A good rule of thumb is 1/10 of the size of a volume of storage media\&.
2217 .PP
2218 In versions of Amanda through 3\&.1\&.*, splitting was controlled by the dumptype parameters
2219 \fBtape\-splitsize\fR,
2220 \fBsplit\-diskbuffer\fR, and
2221 \fBfallback\-splitsize\fR\&. These keywords had confusing and non\-intuitive interactions, and have since been deprecated\&.
2222 .PP
2223 If the deprecated keywords are not present, subsequent versions of Amanda use the dumptype parameter
2224 \fBallow\-split\fR
2225 to control whether a DLE can be split, and the
2226 \fItapetype\fR
2227 parameters
2228 \fBpart\-size\fR,
2229 \fBpart\-cache\-type\fR,
2230 \fBpart\-cache\-dir\fR, and
2231 \fBpart\-cache\-max\-size\fR\&. The
2232 \fBpart\-size\fR
2233 specifies the "normal" part size, while the
2234 \fBpart\-cache\-*\fR
2235 parameters describe how to behave when caching is required (on PORT\-WRITE)\&. Full details on these parameters are given above\&.
2236 .SH "SEE ALSO"
2237 .PP
2238 \fBamanda\fR(8),
2239 \fBamanda-client.conf\fR(5),
2240 \fBamanda-applications\fR(7),
2241 \fBamanda-auth\fR(7),
2242 \fBamanda-changers\fR(7),
2243 \fBamanda-devices\fR(7),
2244 \fBamanda-scripts\fR(7)
2245 .PP
2246 The Amanda Wiki:
2247 : http://wiki.zmanda.com/
2248 .SH "AUTHORS"
2249 .PP
2250 \fBJames da Silva\fR <\&jds@amanda\&.org\&>
2251 .PP
2252 \fBStefan G\&. Weichinger\fR <\&sgw@amanda\&.org\&>