Imported Upstream version 3.2.1
[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: 12/14/2010
6 .\"    Manual: File formats and conventions
7 .\"    Source: Amanda 3.2.1
8 .\"  Language: English
9 .\"
10 .TH "AMANDA\&.CONF" "5" "12/14/2010" "Amanda 3\&.2\&.1" "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 \fBdebug\-recovery\fR \fIint\fR
955 .RS 4
956 Default:
957 \fI1\fR\&. Debug level of all recovery process
958 .RE
959 .PP
960 \fBflush\-threshold\-dumped\fR \fIint\fR
961 .RS 4
962 Default:
963 \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\&.
964 .sp
965 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\&.
966 .sp
967 The value of this parameter may not exceed than that of the
968 \fBflush\-threshold\-scheduled\fR
969 parameter\&.
970 .RE
971 .PP
972 \fBflush\-threshold\-scheduled\fR \fIint\fR
973 .RS 4
974 Default:
975 \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
976 h + s > t \(mu d
977 is satisfied, where
978 h
979 is the amount of data on the holding disk,
980 s
981 is the total amount of data scheduled for this run but not dumped yet,
982 t
983 is the capacity of a volume, and
984 d
985 is this parameter, expressed as a percentage\&. This parameter may be larger than 100%\&.
986 .sp
987 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\&.
988 .sp
989 The value of this parameter may not be less than that of the
990 \fBflush\-threshold\-dumped\fR
991 or
992 \fBtaperflush\fR
993 parameters\&.
994 .RE
995 .PP
996 \fBtaperflush\fR \fIint\fR
997 .RS 4
998 Default:
999 \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
1000 h > t \(mu f
1001 is satisfied, where
1002 h
1003 is the amount of data remaining on the holding disk from this or previous runs,
1004 t
1005 is the capacity of a volume, and
1006 f
1007 is this parameter, expressed as a percentage\&. This parameter may be greater than 100%\&.
1008 .sp
1009 The value of this parameter may not exceed that of the
1010 \fBflush\-threshold\-scheduled\fR
1011 parameter\&.;
1012 \fBautoflush\fR
1013 must be set to \'yes\' if
1014 \fBtaperflush\fR
1015 is greater than 0\&.
1016 .RE
1017 .PP
1018 \fBreserved\-udp\-port\fR \fIint\fR,\fIint\fR
1019 .RS 4
1020 Default: \-\-with\-udpportrange or
1021 \fI512,1023\fR\&. Reserved udp port that will be used (bsd, bsdudp)\&. Range is inclusive\&.
1022 .RE
1023 .PP
1024 \fBreserved\-tcp\-port\fR \fIint\fR,\fIint\fR
1025 .RS 4
1026 Default: \-\-with\-low\-tcpportrange or
1027 \fI512,1023\fR\&. Reserved tcp port that will be used (bsdtcp)\&. Range is inclusive\&.
1028 .RE
1029 .PP
1030 \fBunreserved\-tcp\-port\fR \fIint\fR,\fIint\fR
1031 .RS 4
1032 Default: \-\-with\-tcpportrange or
1033 \fI1024,65535\fR\&. Unreserved tcp port that will be used (bsd, bsdudp)\&. Range is inclusive\&.
1034 .RE
1035 .PP
1036 \fBrecovery\-limit\fR [ \fIstring\fR | \fBsame\-host\fR ]
1037 .RS 4
1038 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
1039 \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
1040 \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\&.
1041 .sp
1042 Note that match expressions can be constructed to be forgiving of e\&.g\&., fully\-qualified vs\&. unqualified hostnames, but
1043 \fBsame\-host\fR
1044 requires an exact match\&.
1045 .sp
1046 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\&.
1047 .sp
1048 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\&.
1049 .RE
1050 .SH "HOLDINGDISK SECTION"
1051 .PP
1052 The
1053 \fBamanda\&.conf\fR
1054 file may define one or more holding disks used as buffers to hold backup images before they are written to tape\&. The syntax is:
1055 .nf
1056 define holdingdisk \fIname\fR {
1057     \fIholdingdisk\-option\fR \fIholdingdisk\-value\fR
1058     \&.\&.\&.
1059 }
1060 .fi
1061 .PP
1062 The { must appear at the end of a line, and the } on its own line\&.
1063 .PP
1064 \fIName\fR
1065 is a logical name for this holding disk\&.
1066 .PP
1067 The options and values are:
1068 .PP
1069 \fBcomment\fR \fIstring\fR
1070 .RS 4
1071 Default: not set\&. A comment string describing this holding disk\&.
1072 .RE
1073 .PP
1074 \fBdirectory\fR \fIstring\fR
1075 .RS 4
1076 Default:
1077 \fI"/dumps/amanda"\fR\&. The path to this holding area\&.
1078 .RE
1079 .PP
1080 \fBuse\fR \fIint\fR
1081 .RS 4
1082 Default:
1083 \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\&.
1084 .RE
1085 .PP
1086 \fBchunksize\fR \fIint\fR
1087 .RS 4
1088 Default:
1089 \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\&.
1090 .sp
1091 The default unit is Kbytes if it is not specified\&.
1092 .sp
1093 If 0 is specified, Amanda will create holding disk chunks as large as ((INT_MAX/1024)\-64) Kbytes\&.
1094 .sp
1095 Each holding disk chunk includes a 32 Kbyte header, so the minimum chunk size is 64 Kbytes (but that would be really silly)\&.
1096 .sp
1097 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\&.
1098 .RE
1099 .SH "DUMPTYPE SECTION"
1100 .PP
1101 The
1102 \fBamanda.conf\fR(5)
1103 file may define multiple sets of backup options and refer to them by name from the
1104 \fBdisklist\fR(5)
1105 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\&.
1106 .PP
1107 A set of backup options are entered in a
1108 \fBdumptype\fR
1109 section, which looks like this:
1110 .nf
1111 define dumptype "\fIname\fR" {
1112     \fIdumptype\-option\fR \fIdumptype\-value\fR
1113     \&.\&.\&.
1114 }
1115 .fi
1116 .PP
1117 The { must appear at the end of a line, and the } on its own line\&.
1118 .PP
1119 \fIName\fR
1120 is the name of this set of backup options\&. It is referenced from the
1121 \fBdisklist\fR(5)
1122 file\&.
1123 .PP
1124 Some of the options in a
1125 \fBdumptype\fR
1126 section are the same as those in the main part of
1127 \fBamanda.conf\fR(5)\&. The main option value is used to set the default for all
1128 \fBdumptype\fR
1129 sections\&. For instance, setting
1130 \fBdumpcycle\fR
1131 to 50 in the main part of the config file causes all following
1132 \fBdumptype\fR
1133 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
1134 \fBdumptype\fRs are defined\&.
1135 .PP
1136 The dumptype options and values are:
1137 .PP
1138 \fBauth\fR \fIstring\fR
1139 .RS 4
1140 Default:
1141 \fI"bsd"\fR\&. Type of authorization to perform between tape server and backup client hosts\&. See
1142 \fBamanda-auth\fR(7)
1143 for more detail\&.
1144 .RE
1145 .PP
1146 \fBamandad\-path\fR \fIstring\fR
1147 .RS 4
1148 Default:
1149 \fI"$libexec/amandad"\fR\&. Specify the amandad path of the client, only use with rsh/ssh authentification\&.
1150 .RE
1151 .PP
1152 \fBclient\-username\fR \fIstring\fR
1153 .RS 4
1154 Default:
1155 \fICLIENT_LOGIN\fR\&. Specify the username to connect on the client, only use with rsh/ssh authentification\&.
1156 .RE
1157 .PP
1158 \fBclient\-port\fR [ \fIint\fR | \fIstring\fR ]
1159 .RS 4
1160 Default:
1161 \fI"amanda"\fR\&. Specifies the port to connect to on the client\&. It can be a service name or a numeric port number\&.
1162 .RE
1163 .PP
1164 \fBbumpsize\fR \fIint\fR
1165 .RS 4
1166 Default:
1167 \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
1168 \fIbumppercent\fR
1169 is set to 0\&.
1170 .sp
1171 The default unit is Kbytes if it is not specified\&.
1172 .sp
1173 See also the options
1174 \fBbumppercent\fR,
1175 \fBbumpmult\fR
1176 and
1177 \fBbumpdays\fR\&.
1178 .RE
1179 .PP
1180 \fBbumppercent\fR \fIint\fR
1181 .RS 4
1182 Default:
1183 \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\&.
1184 .sp
1185 If this parameter is set to 0, the value of the parameter
1186 \fIbumpsize\fR
1187 is used to trigger bumping\&.
1188 .sp
1189 See also the options
1190 \fBbumpsize\fR,
1191 \fBbumpmult\fR
1192 and
1193 \fBbumpdays\fR\&.
1194 .RE
1195 .PP
1196 \fBbumpmult\fR \fIfloat\fR
1197 .RS 4
1198 Default:
1199 \fI1\&.5\fR\&. The bump size multiplier\&. Amanda multiplies
1200 \fBbumpsize\fR
1201 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
1202 \fBbumpsize\fR
1203 and
1204 \fBbumpmult\fR
1205 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\&.
1206 .RE
1207 .PP
1208 \fBbumpdays\fR \fIint\fR
1209 .RS 4
1210 Default:
1211 \fI2 days\fR\&. To insure redundancy in the dumps, Amanda keeps filesystems at the same incremental level for at least
1212 \fBbumpdays\fR
1213 days, even if the other bump threshold criteria are met\&.
1214 .RE
1215 .PP
1216 \fBcomment\fR \fIstring\fR
1217 .RS 4
1218 Default: not set\&. A comment string describing this set of backup options\&.
1219 .RE
1220 .PP
1221 \fBcomprate\fR \fIfloat\fR [, \fIfloat\fR ]
1222 .RS 4
1223 Default:
1224 \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\&.
1225 .RE
1226 .PP
1227 \fBcompress\fR [ \fBnone\fR | \fBclient\fR | \fBserver\fR ] [ \fBbest\fR | \fBfast\fR | \fBcustom\fR ]
1228 .RS 4
1229 Default:
1230 \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\&.
1231 .sp
1232 For either type of compression, Amanda also allows the selection of three styles of compression\&.
1233 \fBbest\fR
1234 is the best compression available, often at the expense of CPU overhead\&.
1235 \fBfast\fR
1236 is often not as good a compression as
1237 \fBbest\fR, but usually less CPU overhead\&. Or to specify
1238 \fBcustom\fR
1239 to use your own compression method\&. (See dumptype custom\-compress in example/amanda\&.conf for reference)
1240 .sp
1241 So the
1242 \fBcompress\fR
1243 options line may be one of:
1244 .PP
1245 compress none
1246 .RS 4
1247 .RE
1248 .PP
1249 compress client fast
1250 .RS 4
1251 .RE
1252 .PP
1253 compress client best
1254 .RS 4
1255 .RE
1256 .PP
1257 compress client custom
1258 .RS 4
1259 Specify
1260 \fBclient\-custom\-compress\fR
1261 "PROG"
1262 .sp
1263 PROG must not contain white space and it must accept \-d for uncompress\&.
1264 .RE
1265 .PP
1266 compress server fast
1267 .RS 4
1268 .RE
1269 .PP
1270 compress server best
1271 .RS 4
1272 .RE
1273 .PP
1274 compress server custom
1275 .RS 4
1276 Specify
1277 \fBserver\-custom\-compress\fR
1278 "PROG"
1279 .sp
1280 PROG must not contain white space and it must accept \-d for uncompress\&.
1281 .RE
1282 .sp
1283 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
1284 \fBmt\fR
1285 option), Amanda (software) compression should be disabled\&.
1286 .RE
1287 .PP
1288 \fBclient\-custom\-compress\fR \fIstring\fR
1289 .RS 4
1290 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\&.
1291 .RE
1292 .PP
1293 \fBserver\-custom\-compress\fR \fIstring\fR
1294 .RS 4
1295 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\&.
1296 .RE
1297 .PP
1298 \fBdumpcycle\fR \fIint\fR
1299 .RS 4
1300 Default:
1301 \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\&.
1302 .RE
1303 .PP
1304 \fBencrypt\fR [ \fBnone\fR | \fBclient\fR | \fBserver\fR ]
1305 .RS 4
1306 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\&.
1307 .sp
1308 So the
1309 \fBencrypt\fR
1310 options line may be one of:
1311 .PP
1312 encrypt none
1313 .RS 4
1314 .RE
1315 .PP
1316 encrypt client
1317 .RS 4
1318 Specify client\-encrypt "PROG"
1319 .sp
1320 PROG must not contain white space\&.
1321 .sp
1322 Specify client\-decrypt\-option "decryption\-parameter" Default: "\-d"
1323 .sp
1324 decryption\-parameter must not contain white space\&.
1325 .sp
1326 (See dumptype client\-encrypt\-nocomp in example/amanda\&.conf for reference)
1327 .RE
1328 .PP
1329 encrypt server
1330 .RS 4
1331 Specify server\-encrypt "PROG"
1332 .sp
1333 PROG must not contain white space\&.
1334 .sp
1335 Specify server\-decrypt\-option "decryption\-parameter" Default: "\-d"
1336 .sp
1337 decryption\-parameter must not contain white space\&.
1338 .sp
1339 (See dumptype server\-encrypt\-fast in example/amanda\&.conf for reference)
1340 .RE
1341 .sp
1342 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\&.
1343 \fIamcrypt\fR
1344 which is a wrapper of
1345 \fIaespipe\fR
1346 is provided as a reference symmetric encryption program\&.
1347 .RE
1348 .PP
1349 \fBclient\-encrypt\fR \fIstring\fR
1350 .RS 4
1351 Default: none\&. The program to use to perform encryption/decryption on the client; used with "encrypt client"\&. Must not contain whitespace\&.
1352 .RE
1353 .PP
1354 \fBclient\-decrypt\-option\fR \fIstring\fR
1355 .RS 4
1356 Default: \-d\&. The option that can be passed to client\-encrypt to make it decrypt instead\&. Must not contain whitespace\&.
1357 .RE
1358 .PP
1359 \fBserver\-encrypt\fR \fIstring\fR
1360 .RS 4
1361 Default: none\&. The program to use to perform encryption/decryption on the server; used with "encrypt server"\&. Must not contain whitespace\&.
1362 .RE
1363 .PP
1364 \fBserver\-decrypt\-option\fR \fIstring\fR
1365 .RS 4
1366 Default: \-d\&. The option that can be passed to server\-encrypt to make it decrypt instead\&. Must not contain whitespace\&.
1367 .RE
1368 .PP
1369 \fBestimate\fR [ \fBclient\fR | \fBcalcsize\fR | \fBserver\fR ]+
1370 .RS 4
1371 Default:
1372 \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:
1373 .PP
1374 client
1375 .RS 4
1376 Use the same program as the dumping program\&. This is the most accurate method to do estimates, but it can take a long time\&.
1377 .RE
1378 .PP
1379 calcsize
1380 .RS 4
1381 Use a faster program to do estimates, but the result is less accurate\&.
1382 .RE
1383 .PP
1384 server
1385 .RS 4
1386 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\&.
1387 .RE
1388 .RE
1389 .PP
1390 \fBexclude\fR [ \fBlist\fR | \fBfile\fR ][[\fBoptional\fR][\fBappend\fR][ \fIstring\fR ]+]
1391 .RS 4
1392 Default:
1393 \fBfile\fR\&. Exclude is the opposite of
1394 \fBinclude\fR
1395 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\&.
1396 .sp
1397 There are two exclude parameters,
1398 \fBexclude\fR
1399 \fBfile\fR
1400 and
1401 \fBexclude\fR
1402 \fBlist\&.\fR
1403 With
1404 \fBexclude\fR
1405 \fBfile\fR, the
1406 \fIstring\fR
1407 is an exclude expression\&. With
1408 \fBexclude\fR
1409 \fBlist\fR
1410 , the
1411 \fIstring\fR
1412 is a file name on the client containing
1413 \fBGNU\-tar\fR
1414 exclude expressions\&. The path to the specified exclude list file, if present (see description of \'optional\' below), must be readable by the Amanda user\&.
1415 .sp
1416 All exclude expressions are concatenated in one file and passed to the application as an
1417 \fB\-\-exclude\-from\fR
1418 argument\&.
1419 .sp
1420 For
1421 \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\&.
1422 .sp
1423 With the
1424 \fBappend\fR
1425 keyword, the
1426 \fIstring\fR
1427 is appended to the current list, without it, the
1428 \fIstring\fR
1429 overwrites the list\&.
1430 .sp
1431 If
1432 \fBoptional\fR
1433 is specified for
1434 \fBexclude\fR
1435 \fBlist\fR, then amcheck will not complain if the file doesn\'t exist or is not readable\&.
1436 .sp
1437 For
1438 \fBexclude\fR
1439 \fBlist\fR, if the file name is relative, the disk name being backed up is prepended\&. So if this is entered:
1440 .nf
1441     exclude list "\&.amanda\&.excludes"
1442 .fi
1443 the actual file used would be
1444 /var/\&.amanda\&.excludes
1445 for a backup of
1446 /var,
1447 /usr/local/\&.amanda\&.excludes
1448 for a backup of
1449 /usr/local, and so on\&.
1450 .RE
1451 .PP
1452 \fBholdingdisk\fR [ \fBnever\fR | \fBauto\fR | \fBrequired\fR ]
1453 .RS 4
1454 Default:
1455 \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
1456 \fBholdingdisk\fR
1457 set to
1458 \fInever\fR
1459 to avoid backing up the holding disk into itself\&.
1460 .PP
1461 \fBnever\fR|no|false|off
1462 .RS 4
1463 Never use a holdingdisk, the dump will always go directly to tape\&. There will be no dump if you have a tape error\&.
1464 .RE
1465 .PP
1466 \fBauto\fR|yes|true|on
1467 .RS 4
1468 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)
1469 .RE
1470 .PP
1471 \fBrequired\fR
1472 .RS 4
1473 Always dump to holdingdisk, never directly to tape\&. There will be no dump if it doesn\'t fit on holdingdisk
1474 .RE
1475 .RE
1476 .PP
1477 \fBignore\fR \fIboolean\fR
1478 .RS 4
1479 Default:
1480 \fBno\fR\&. Whether disks associated with this backup type should be backed up or not\&. This option is useful when the
1481 \fIdisklist\fR
1482 file is shared among several configurations, some of which should not back up all the listed file systems\&.
1483 .RE
1484 .PP
1485 \fBinclude\fR [ \fBlist\fR | \fBfile\fR ][[\fBoptional\fR][\fBappend\fR][ \fIstring\fR ]+]
1486 .RS 4
1487 Default:
1488 \fBfile\fR
1489 "\&."\&. There are two include lists,
1490 \fBinclude file\fR
1491 and
1492 \fBinclude list\&.\fR
1493 With
1494 \fBinclude file\fR
1495 , the
1496 \fIstring\fR
1497 is a glob expression\&. With
1498 \fBinclude list\fR
1499 , the
1500 \fIstring\fR
1501 is a file name on the client containing glob expressions\&.
1502 .sp
1503 All include expressions are expanded by Amanda, concatenated in one file and passed to
1504 \fBGNU\-tar\fR
1505 as a
1506 \fB\-\-files\-from\fR
1507 argument\&. They must start with "\&./" and contain no other "/"\&.
1508 .sp
1509 Include expressions must always be specified as relative to the head directory of the DLE\&.
1510 .if n \{\
1511 .sp
1512 .\}
1513 .RS 4
1514 .it 1 an-trap
1515 .nr an-no-space-flag 1
1516 .nr an-break-flag 1
1517 .br
1518 .ps +1
1519 \fBNote\fR
1520 .ps -1
1521 .br
1522 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\&.
1523 .sp .5v
1524 .RE
1525 With the
1526 \fBappend\fR
1527 keyword, the
1528 \fIstring\fR
1529 is appended to the current list, without it, the
1530 \fIstring\fR
1531 overwrites the list\&.
1532 .sp
1533 If
1534 \fBoptional\fR
1535 is specified for
1536 \fBinclude list\fR, then amcheck will not complain if the file doesn\'t exist or is not readable\&.
1537 .sp
1538 For
1539 \fBinclude list\fR, If the file name is relative, the disk name being backed up is prepended\&.
1540 .RE
1541 .PP
1542 \fBindex\fR \fIboolean\fR
1543 .RS 4
1544 Default:
1545 \fBno\fR\&. Whether an index (catalogue) of the backup should be generated and saved in
1546 \fBindexdir\fR\&. These catalogues are used by the
1547 \fBamrecover\fR
1548 utility\&.
1549 .RE
1550 .PP
1551 \fBkencrypt\fR \fIboolean\fR
1552 .RS 4
1553 Default:
1554 \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\&.
1555 .RE
1556 .PP
1557 \fBmaxdumps\fR \fIint\fR
1558 .RS 4
1559 Default:
1560 \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
1561 \fBinparallel\fR\&.
1562 .RE
1563 .PP
1564 \fBmaxpromoteday\fR \fIint\fR
1565 .RS 4
1566 Default:
1567 \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\&.
1568 .RE
1569 .PP
1570 \fBpriority\fR [ \fBlow\fR | \fBmedium\fR | \fBhigh\fR ]
1571 .RS 4
1572 Default:
1573 \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\&.
1574 .RE
1575 .PP
1576 \fBprogram\fR [ \fB"DUMP"\fR | \fB"GNUTAR"\fR | \fB"APPLICATION"\fR ]
1577 .RS 4
1578 Default:
1579 \fI"DUMP"\fR\&. The type of backup to perform\&. Valid values are:
1580 .PP
1581 \fB"DUMP"\fR
1582 .RS 4
1583 The native operating system backup program\&.
1584 .RE
1585 .PP
1586 \fB"GNUTAR"\fR
1587 .RS 4
1588 To use GNU\-tar or to do PC backups using Samba\&.
1589 .RE
1590 .PP
1591 \fB"APPLICATION"\fR
1592 .RS 4
1593 To use an application, see the
1594 \fIapplication\fR
1595 option\&.
1596 .RE
1597 .RE
1598 .PP
1599 \fBapplication\fR \fIstring\fR
1600 .RS 4
1601 No default\&. Must be the name of an application if
1602 \fIprogram\fR
1603 is set to
1604 \fIAPPLICATION\fR\&. See APPLICATION SECTION below\&.
1605 .RE
1606 .PP
1607 \fBscript\fR \fIstring\fR
1608 .RS 4
1609 No default\&. Must be the name of a script\&. You can have many script\&. See SCRIPT SECTION below\&.
1610 .RE
1611 .PP
1612 \fBproperty\fR [\fBappend\fR] \fIstring\fR \fIstring\fR+
1613 .RS 4
1614 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\&.
1615 \fBappend\fR
1616 keyword append the values to the list of values for that property\&.
1617 .RE
1618 .PP
1619 \fBrecord\fR \fIboolean\fR
1620 .RS 4
1621 Default:
1622 \fByes\fR\&. Whether to ask the backup program to update its database (e\&.g\&.
1623 /etc/dumpdates
1624 for DUMP or
1625 /usr/local/var/amanda/gnutar\-lists
1626 for GNUTAR) of time stamps\&. This is normally enabled for daily backups and turned off for periodic archival runs\&.
1627 .RE
1628 .PP
1629 \fBskip\-full\fR \fIboolean\fR
1630 .RS 4
1631 Default:
1632 \fBno\fR\&. If
1633 \fBtrue\fR
1634 and
1635 \fBplanner\fR
1636 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\&.
1637 .RE
1638 .PP
1639 \fBskip\-incr\fR \fIboolean\fR
1640 .RS 4
1641 Default:
1642 \fBno\fR\&. If
1643 \fBtrue\fR
1644 and
1645 \fBplanner\fR
1646 has scheduled an incremental backup, these disks will be skipped\&.
1647 .RE
1648 .PP
1649 \fBssh\-keys\fR \fIstring\fR
1650 .RS 4
1651 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\&.
1652 .RE
1653 .PP
1654 \fBstarttime\fR \fIint\fR
1655 .RS 4
1656 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
1657 1830\&.
1658 .RE
1659 .PP
1660 \fBstrategy\fR [ \fBstandard\fR | \fBnofull\fR | \fBnoinc\fR | \fBskip\fR | \fBincronly\fR ]
1661 .RS 4
1662 Default:
1663 \fBstandard\fR\&. Strategy to use when planning what level of backup to run next\&. Values are:
1664 .PP
1665 \fBstandard\fR
1666 .RS 4
1667 The standard Amanda schedule\&.
1668 .RE
1669 .PP
1670 \fBnofull\fR
1671 .RS 4
1672 Never do full backups, only level 1 incrementals\&.
1673 .RE
1674 .PP
1675 \fBnoinc\fR
1676 .RS 4
1677 Never do incremental backups, only full dumps\&.
1678 .RE
1679 .PP
1680 \fBskip\fR
1681 .RS 4
1682 Treat this DLE as if it doesn\'t exist (useful to disable DLEs when sharing the
1683 \fIdisklist\fR
1684 file between multiple configurations)\&. Skipped DLEs will not be checked or dumped, and will not be matched by disklist expressions\&.
1685 .RE
1686 .PP
1687 \fBincronly\fR
1688 .RS 4
1689 Only do incremental dumps\&.
1690 \fBamadmin force\fR
1691 should be used to tell Amanda that a full dump has been performed off\-line, so that it resets to level 1\&.
1692 .RE
1693 .RE
1694 .PP
1695 \fBallow\-split\fR \fIbool\fR
1696 .RS 4
1697 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\&.
1698 .RE
1699 .PP
1700 \fBtape\-splitsize\fR \fIint\fR
1701 .RS 4
1702 Deprecated\&. See "Dump Splitting Configuration" below\&.
1703 .sp
1704 Default: not set\&. Split dump file on tape into pieces of a specified size\&. The default unit is Kbytes if it is not specified\&.
1705 .RE
1706 .PP
1707 \fBsplit\-diskbuffer\fR \fIstring\fR
1708 .RS 4
1709 .PP
1710 Deprecated\&. See "Dump Splitting Configuration" below\&.
1711 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\&.
1712 .RE
1713 .PP
1714 \fBfallback\-splitsize\fR \fIint\fR
1715 .RS 4
1716 Deprecated\&. See "Dump Splitting Configuration" below\&.
1717 .sp
1718 Default:
1719 \fI10M\fR\&. This specifies the part size used when no
1720 \fBsplit\-diskbuffer\fR
1721 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\&.
1722 .RE
1723 .PP
1724 \fBrecovery\-limit\fR [ \fBsame\-host\fR | \fIstring\fR ]*
1725 .RS 4
1726 Default: global value\&. This parameter overrides the global
1727 \fBrecovery\-limit\fR
1728 parameter for DLEs of this dumptype\&.
1729 .RE
1730 .PP
1731 The following
1732 \fBdumptype\fR
1733 entries are predefined by Amanda:
1734 .nf
1735 define dumptype "no\-compress" {
1736     compress none
1737 }
1738 define dumptype "compress\-fast" {
1739     compress client fast
1740 }
1741 define dumptype "compress\-best" {
1742     compress client best
1743 }
1744 define dumptype "srvcompress" {
1745     compress server fast
1746 }
1747 define dumptype "bsd\-auth" {
1748     auth bsd
1749 }
1750 define dumptype "no\-record" {
1751     record no
1752 }
1753 define dumptype "no\-hold" {
1754     holdingdisk no
1755 }
1756 define dumptype "no\-full" {
1757     skip\-full yes
1758
1759 .fi
1760 .PP
1761 In addition to options in a
1762 \fBdumptype\fR
1763 section, one or more other
1764 \fBdumptype\fR
1765 names may be supplied as identifiers, which make this
1766 \fBdumptype\fR
1767 inherit options from other previously defined
1768 \fBdumptype\fRs\&. For instance, two sections might be the same except for the
1769 \fBrecord\fR
1770 option:
1771 .nf
1772 define dumptype "normal" {
1773     comment "Normal backup, no compression, do indexing"
1774     no\-compress
1775     index yes
1776     maxdumps 2
1777 }
1778 define dumptype "testing" {
1779     comment "Test backup, no compression, do indexing, no recording"
1780     "normal"
1781     record no
1782 }
1783 .fi
1784 .PP
1785 Amanda provides a
1786 \fBdumptype\fR
1787 named
1788 \fIglobal\fR
1789 in the sample
1790 \fBamanda\&.conf\fR
1791 file that all
1792 \fBdumptype\fRs should reference\&. This provides an easy place to make changes that will affect every
1793 \fBdumptype\fR, although you must be careful that every dumptype explicitly inherits from the
1794 \fIglobal\fR
1795 dumptype \- Amanda does not do so automatically\&.
1796 .SH "TAPETYPE SECTION"
1797 .PP
1798 The
1799 \fBamanda\&.conf\fR
1800 file may define multiple types of tape media and devices\&. The information is entered in a
1801 \fBtapetype\fR
1802 section, which looks like this in the config file:
1803 .nf
1804 define tapetype "\fIname\fR" {
1805     \fItapetype\-option\fR \fItapetype\-value\fR
1806     \&.\&.\&.
1807 }
1808 .fi
1809 .PP
1810 The { must appear at the end of a line, and the } on its own line\&.
1811 .PP
1812 \fIName\fR
1813 is the name of this type of tape medium/device\&. It is referenced from the
1814 \fBtapetype\fR
1815 option in the main part of the config file\&.
1816 .PP
1817 The tapetype options and values are:
1818 .PP
1819 \fBcomment\fR \fIstring\fR
1820 .RS 4
1821 Default: not set\&. A comment string describing this set of tape information\&.
1822 .RE
1823 .PP
1824 \fBfilemark\fR \fIint\fR
1825 .RS 4
1826 Default:
1827 \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\&.
1828 .RE
1829 .PP
1830 \fBlength\fR \fIint\fR
1831 .RS 4
1832 Default:
1833 \fI2000 kbytes\fR\&. How much data will fit on a tape, expressed in kbytes\&.
1834 .sp
1835 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
1836 \fBlength\fR
1837 (but see
1838 \fBamanda-devices\fR(7)
1839 for exceptions)\&.
1840 .RE
1841 .PP
1842 \fBblocksize\fR \fIint\fR
1843 .RS 4
1844 Default:
1845 \fI32 kbytes\fR\&. How much data will be written in each tape record, expressed in kbytes\&. This is similar to the
1846 \fIBLOCK_SIZE\fR
1847 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\&.
1848 .RE
1849 .PP
1850 \fBreadblocksize\fR \fIint\fR
1851 .RS 4
1852 Default:
1853 \fI32 kytes\fR
1854 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\&.
1855 .sp
1856 The default unit is Kbytes if it is not specified\&.
1857 .RE
1858 .PP
1859 \fBpart\-size\fR \fIint\fR
1860 .RS 4
1861 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
1862 \fBpart\-cache\-max\-size\fR
1863 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\&.
1864 .RE
1865 .PP
1866 \fBpart\-cache\-type\fR [ \fBnone\fR | \fBdisk\fR | \fBmemory\fR ]
1867 .RS 4
1868 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
1869 \fBpart\-cache\-dir\fR
1870 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\&.
1871 .RE
1872 .PP
1873 \fBpart\-cache\-dir\fR \fIstring\fR
1874 .RS 4
1875 Default: none\&. The directory in which part\-cache files can be written when caching on disk\&. See "Dump Splitting Configuration" below\&.
1876 .RE
1877 .PP
1878 \fBpart\-cache\-max\-size\fR \fIint\fR
1879 .RS 4
1880 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\&.
1881 .RE
1882 .PP
1883 \fBspeed\fR \fIint\fR
1884 .RS 4
1885 Default:
1886 \fI200 bps\fR\&. How fast the drive will accept data, in bytes per second\&. This parameter is NOT currently used by Amanda\&.
1887 .RE
1888 .PP
1889 \fBlbl\-templ\fR \fIstring\fR
1890 .RS 4
1891 Default: not set\&. A PostScript template file used by
1892 \fBamreport\fR
1893 to generate labels\&. Several sample files are provided with the Amanda sources in the
1894 \fIexample\fR
1895 directory\&. See the
1896 \fBamreport\fR(8)
1897 man page for more information\&.
1898 .RE
1899 .PP
1900 In addition to options, another
1901 \fBtapetype\fR
1902 name may be supplied as an identifier, which makes this
1903 \fBtapetype\fR
1904 inherit options from another
1905 \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:
1906 .nf
1907 define tapetype "DLT4000\-III" {
1908     comment "DLT4000 tape drives with Compact\-III tapes"
1909     length 12500 mbytes         # 10 Gig tapes with some compression
1910     filemark 2000 kbytes
1911     speed 1536 kps
1912 }
1913 define tapetype "DLT4000\-IV" {
1914     "DLT4000\-III"
1915     comment "DLT4000 tape drives with Compact\-IV tapes"
1916     length 25000 mbytes         # 20 Gig tapes with some compression
1917 }
1918 .fi
1919 .SH "INTERFACE SECTION"
1920 .PP
1921 The
1922 \fBamanda\&.conf\fR
1923 file may define multiple types of network interfaces\&. The information is entered in an
1924 \fBinterface\fR
1925 section, which looks like this:
1926 .nf
1927 define interface "\fIname\fR" {
1928     \fIinterface\-option\fR \fIinterface\-value\fR
1929     \&.\&.\&.
1930 }
1931 .fi
1932 .PP
1933 The { must appear at the end of a line, and the } on its own line\&.
1934 .PP
1935 \fIname\fR
1936 is the name of this type of network interface\&. It is referenced from the
1937 \fIdisklist\fR
1938 file\&.
1939 .PP
1940 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\&.
1941 .PP
1942 The interface options and values are:
1943 .PP
1944 \fBcomment\fR \fIstring\fR
1945 .RS 4
1946 Default: not set\&. A comment string describing this set of network information\&.
1947 .RE
1948 .PP
1949 \fBuse\fR \fIint\fR
1950 .RS 4
1951 Default:
1952 \fI8000 Kbps\fR\&. The speed of the interface in Kbytes per second\&.
1953 .RE
1954 .PP
1955 In addition to options, another
1956 \fBinterface\fR
1957 name may be supplied as an identifier, which makes this
1958 \fBinterface\fR
1959 inherit options from another
1960 \fBinterface\fR\&. At the moment, this is of little use\&.
1961 .SH "APPLICATION SECTION"
1962 .PP
1963 The
1964 \fBamanda\&.conf\fR
1965 file may define multiple types of application\&. The information is entered in a
1966 \fBapplication\fR
1967 section, which looks like this:
1968 .nf
1969 define application "\fIname\fR" {
1970     \fIapplication\-option\fR \fIapplication\-value\fR
1971     \&.\&.\&.
1972 }
1973 .fi
1974 .PP
1975 The { must appear at the end of a line, and the } on its own line\&.
1976 .PP
1977 \fIname\fR
1978 is the name of this type of application\&. It is referenced from the
1979 \fIdumptype\fR
1980 .PP
1981 The application options and values are:
1982 .PP
1983 \fBcomment\fR \fIstring\fR
1984 .RS 4
1985 Default: not set\&. A comment string describing this application\&.
1986 .RE
1987 .PP
1988 \fBplugin\fR \fIstring\fR
1989 .RS 4
1990 No default\&. Must be set to the name of the program\&. This program must be in the
1991 \fI$libexecdir/amanda/application\fR
1992 directory on the client\&.
1993 .RE
1994 .PP
1995 \fBproperty\fR [\fBappend\fR] [\fBpriority\fR] \fIstring\fR \fIstring\fR+
1996 .RS 4
1997 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\&.
1998 \fBappend\fR
1999 keyword append the values to the list of values for that property\&.
2000 \fBpriority\fR
2001 keyword disallow the setting of that property on the client\&.
2002 .RE
2003 .SH "SCRIPT SECTION"
2004 .PP
2005 The
2006 \fBamanda\&.conf\fR
2007 file may define multiple types of script\&. The information is entered in a
2008 \fBscript\fR
2009 section, which looks like this:
2010 .nf
2011 define script "\fIname\fR" {
2012     \fIscript\-option\fR \fIscript\-value\fR
2013     \&.\&.\&.
2014 }
2015 .fi
2016 .PP
2017 The { must appear at the end of a line, and the } on its own line\&.
2018 .PP
2019 \fIname\fR
2020 is the name of this type of script\&. It is referenced from the
2021 \fIdumptype\fR
2022 .PP
2023 The script options and values are:
2024 .PP
2025 \fBcomment\fR \fIstring\fR
2026 .RS 4
2027 Default: not set\&. A comment string describing this script\&.
2028 .RE
2029 .PP
2030 \fBplugin\fR \fIstring\fR
2031 .RS 4
2032 No default\&. Must be set to the name of the program\&. This program must be in the
2033 \fI$libexecdir/amanda/application\fR
2034 directory on the client and/or server\&.
2035 .RE
2036 .PP
2037 \fBorder\fR \fIint\fR
2038 .RS 4
2039 Default:
2040 \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\&.
2041 .RE
2042 .PP
2043 \fBexecute\-where\fR [ \fBclient\fR | \fBserver\fR ]
2044 .RS 4
2045 Default:
2046 \fBclient\fR\&. Where the script must be executed, on the client or server\&.
2047 .RE
2048 .PP
2049 \fBexecute\-on\fR \fIexecute_on\fR [,\fIexecute_on\fR]*
2050 .RS 4
2051 No default\&. When the script must be executed, you can specify many of them:
2052 .PP
2053 \fBpre\-dle\-amcheck\fR
2054 .RS 4
2055 Execute before the amcheck command for the dle\&.
2056 .RE
2057 .PP
2058 \fBpre\-host\-amcheck\fR
2059 .RS 4
2060 Execute before the amcheck command for all dle for the client\&.
2061 .RE
2062 .PP
2063 \fBpost\-dle\-amcheck\fR
2064 .RS 4
2065 Execute after the amcheck command for the dle\&.
2066 .RE
2067 .PP
2068 \fBpost\-host\-amcheck\fR
2069 .RS 4
2070 Execute after the amcheck command for all dle for the client\&.
2071 .RE
2072 .PP
2073 \fBpre\-dle\-estimate\fR
2074 .RS 4
2075 Execute before the estimate command for the dle\&.
2076 .RE
2077 .PP
2078 \fBpre\-host\-estimate\fR
2079 .RS 4
2080 Execute before the estimate command for all dle for the client\&.
2081 .RE
2082 .PP
2083 \fBpost\-dle\-estimate\fR
2084 .RS 4
2085 Execute after the estimate command for the dle\&.
2086 .RE
2087 .PP
2088 \fBpost\-host\-estimate\fR
2089 .RS 4
2090 Execute after the estimate command for all dle for the client\&.
2091 .RE
2092 .PP
2093 \fBpre\-dle\-backup\fR
2094 .RS 4
2095 Execute before the backup command for the dle\&.
2096 .RE
2097 .PP
2098 \fBpre\-host\-backup\fR
2099 .RS 4
2100 Execute before the backup command for all dle for the client\&. It can\'t be run on client, it must be run on server
2101 .RE
2102 .PP
2103 \fBpost\-dle\-backup\fR
2104 .RS 4
2105 Execute after the backup command for the dle\&.
2106 .RE
2107 .PP
2108 \fBpost\-host\-backup\fR
2109 .RS 4
2110 Execute after the backup command for all dle for the client\&. It can\'t be run on client, it must be run on server
2111 .RE
2112 .PP
2113 \fBpre\-recover\fR
2114 .RS 4
2115 Execute before any level is recovered\&.
2116 .RE
2117 .PP
2118 \fBpost\-recover\fR
2119 .RS 4
2120 Execute after all levels are recovered\&.
2121 .RE
2122 .PP
2123 \fBpre\-level\-recover\fR
2124 .RS 4
2125 Execute before each level recovery\&.
2126 .RE
2127 .PP
2128 \fBpost\-level\-recover\fR
2129 .RS 4
2130 Execute after each level recovery\&.
2131 .RE
2132 .PP
2133 \fBinter\-level\-recover\fR
2134 .RS 4
2135 Execute between two levels of recovery\&.
2136 .RE
2137 .sp
2138 If you recover level 0 and 2 of the disk /usr with amrecover, it will execute:
2139 .nf
2140 script \-\-pre\-recover
2141 script \-\-pre\-level\-recover \-\-level 0
2142 #recovering level 0
2143 script \-\-post\-level\-recover \-\-level 0
2144 script \-\-inter\-level\-recover \-\-level 0 \-\-level 2
2145 script \-\-pre\-level\-recover \-\-level 2
2146 #recovering level 2
2147 script \-\-post\-level\-recover \-\-level 2
2148 script \-\-post\-recover
2149 .fi
2150 .RE
2151 .PP
2152 \fBproperty\fR [\fBappend\fR] [\fBpriority\fR] \fIstring\fR \fIstring\fR+
2153 .RS 4
2154 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\&.
2155 \fBappend\fR
2156 keyword append the values to the list of values for that property\&.
2157 \fBpriority\fR
2158 keyword disallow the setting of that property on the client\&.
2159 .RE
2160 .SH "DEVICE SECTION"
2161 .PP
2162 Backend storage devices are specified in
2163 \fBamanda\&.conf\fR
2164 in the form of "device" sections, which look like this:
2165 .nf
2166 define device \fIname\fR {
2167     commend "\fIcomment (optional)\fR"
2168     tapedev "\fIdevice\-specifier\fR"
2169     device\-property "\fIprop\-name\fR" "\fIprop\-value\fR"
2170     \&.\&.\&.
2171 }
2172 .fi
2173 .PP
2174 The { must appear at the end of a line, and the } on its own line\&.
2175 .PP
2176 \fIname\fR
2177 is the user\-specified name of this device\&. It is referenced from the global
2178 \fItapedev\fR
2179 parameter\&. The
2180 \fIdevice\-specifier\fR
2181 specifies the device name to use; see
2182 \fBamanda-devices\fR(7)\&. As with most sections, the
2183 \fIcomment\fR
2184 parmeter is optional and only for the user\'s convenience\&.
2185 .PP
2186 An arbitrary number of
2187 \fIdevice\-property\fR
2188 parameters can be specified\&. Again, see
2189 \fBamanda-devices\fR(7)
2190 for information on device properties\&.
2191 .SH "CHANGER SECTION"
2192 .PP
2193 Changers are described in
2194 \fBamanda\&.conf\fR
2195 in the form of "changer" sections, which look like this:
2196 .nf
2197 define changer \fIname\fR {
2198     comment "\fIcomment (optional)\fR"
2199     tpchanger "\fIchanger\-spec\fR"
2200     changerdev "\fIdevice\-name\fR"
2201     changerfile "\fIstate\-file\fR"
2202     \&.\&.\&.
2203 }
2204 .fi
2205 .PP
2206 The { must appear at the end of a line, and the } on its own line\&.
2207 .PP
2208 \fIname\fR
2209 is the user\-specified name of this device\&. The remaining parameters are specific to the changer type selected\&.
2210 .PP
2211 See
2212 \fBamanda-changers\fR(7)
2213 for more information on configuring changers\&.
2214 .SH "DUMP SPLITTING CONFIGURATION"
2215 .PP
2216 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\&.
2217 .PP
2218 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\&.
2219 .PP
2220 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\&.
2221 .PP
2222 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\&.
2223 .PP
2224 In versions of Amanda through 3\&.1\&.*, splitting was controlled by the dumptype parameters
2225 \fBtape\-splitsize\fR,
2226 \fBsplit\-diskbuffer\fR, and
2227 \fBfallback\-splitsize\fR\&. These keywords had confusing and non\-intuitive interactions, and have since been deprecated\&.
2228 .PP
2229 If the deprecated keywords are not present, subsequent versions of Amanda use the dumptype parameter
2230 \fBallow\-split\fR
2231 to control whether a DLE can be split, and the
2232 \fItapetype\fR
2233 parameters
2234 \fBpart\-size\fR,
2235 \fBpart\-cache\-type\fR,
2236 \fBpart\-cache\-dir\fR, and
2237 \fBpart\-cache\-max\-size\fR\&. The
2238 \fBpart\-size\fR
2239 specifies the "normal" part size, while the
2240 \fBpart\-cache\-*\fR
2241 parameters describe how to behave when caching is required (on PORT\-WRITE)\&. Full details on these parameters are given above\&.
2242 .SH "SEE ALSO"
2243 .PP
2244 \fBamanda\fR(8),
2245 \fBamanda-client.conf\fR(5),
2246 \fBamanda-applications\fR(7),
2247 \fBamanda-auth\fR(7),
2248 \fBamanda-changers\fR(7),
2249 \fBamanda-devices\fR(7),
2250 \fBamanda-scripts\fR(7)
2251 .PP
2252 The Amanda Wiki:
2253 : http://wiki.zmanda.com/
2254 .SH "AUTHORS"
2255 .PP
2256 \fBJames da Silva\fR <\&jds@amanda\&.org\&>
2257 .PP
2258 \fBStefan G\&. Weichinger\fR <\&sgw@amanda\&.org\&>