b9f6aaae7b663c16c21d8b81144ff3af659eb778
[debian/amanda] / man / amanda.conf.5
1 .\"     Title: amanda.conf
2 .\"    Author: 
3 .\" Generator: DocBook XSL Stylesheets v1.72.0 <http://docbook.sf.net/>
4 .\"      Date: 02/07/2007
5 .\"    Manual: 
6 .\"    Source: 
7 .\"
8 .TH "AMANDA.CONF" "5" "02/07/2007" "" ""
9 .\" disable hyphenation
10 .nh
11 .\" disable justification (adjust text to left margin only)
12 .ad l
13 .SH "NAME"
14 amanda.conf \- Main configuration file for Amanda, the Advanced Maryland Automatic Network Disk Archiver
15 .SH "DESCRIPTION"
16 .PP
17 \fIamanda.conf\fR
18 is the main configuration file for
19 \fIAmanda\fR. This manpage lists the relevant sections and parameters of this file for quick reference.
20 .PP
21 The file
22 \fB<CONFIG_DIR>/<config>/amanda.conf\fR
23 is loaded.
24 .SH "PARAMETERS"
25 .PP
26 There are a number of configuration parameters that control the behavior of the
27 \fIAmanda\fR
28 programs. All have default values, so you need not specify the parameter in
29 \fBamanda.conf\fR
30 if the default is suitable.
31 .PP
32 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.
33 .PP
34 Keywords are case insensitive, i.e.
35 \fBmailto\fR
36 and
37 \fBMailTo\fR
38 are treated the same.
39 .PP
40 Integer arguments may have one of the following (case insensitive) suffixes, some of which have a multiplier effect:
41 .SS "POSSIBLE SUFFIXES"
42 .PP
43 \fBb byte bytes\fR
44 .RS 4
45 Some number of bytes.
46 .RE
47 .PP
48 \fBbps\fR
49 .RS 4
50 Some number of bytes per second.
51 .RE
52 .PP
53 \fBk kb kbyte kbytes kilobyte kilobytes\fR
54 .RS 4
55 Some number of kilobytes (bytes*1024).
56 .RE
57 .PP
58 \fBkps kbps\fR
59 .RS 4
60 Some number of kilobytes per second (bytes*1024).
61 .RE
62 .PP
63 \fBm mb meg mbyte mbytes megabyte megabytes\fR
64 .RS 4
65 Some number of megabytes (bytes*1024*1024).
66 .RE
67 .PP
68 \fBmps mbps\fR
69 .RS 4
70 Some number of megabytes per second (bytes*1024*1024).
71 .RE
72 .PP
73 \fBg gb gbyte gbytes gigabyte gigabytes\fR
74 .RS 4
75 Some number of gigabytes (bytes*1024*1024*1024).
76 .RE
77 .PP
78 \fBtape tapes\fR
79 .RS 4
80 Some number of tapes.
81 .RE
82 .PP
83 \fBday days\fR
84 .RS 4
85 Some number of days.
86 .RE
87 .PP
88 \fBweek weeks\fR
89 .RS 4
90 Some number of weeks (days*7).
91 .sp
92 .it 1 an-trap
93 .nr an-no-space-flag 1
94 .nr an-break-flag 1
95 .br
96 \fBNote\fR
97 The value
98 \fBinf\fR
99 may be used in most places where an integer is expected to mean an infinite amount.
100 .sp
101 Boolean arguments may have any of the values
102 \fBy\fR,
103 \fByes\fR,
104 \fBt\fR,
105 \fBtrue\fR
106 or
107 \fBon\fR
108 to indicate a true state, or
109 \fBn\fR,
110 \fBno\fR,
111 \fBf\fR,
112 \fBfalse\fR
113 or
114 \fBoff\fR
115 to indicate a false state. If no argument is given,
116 \fBtrue\fR
117 is assumed.
118 .RE
119 .SS "PARAMETERS"
120 .PP
121 \fBorg\fR \fI string\fR
122 .RS 4
123 Default:
124 \fIdaily\fR. A descriptive name for the configuration. This string appears in the Subject line of mail reports. Each
125 \fIAmanda\fR
126 configuration should have a different string to keep mail reports distinct.
127 .RE
128 .PP
129 \fBmailto\fR \fI string\fR
130 .RS 4
131 Default:
132 \fIoperators\fR. A space separated list of recipients for mail reports.
133 .RE
134 .PP
135 \fBdumpcycle\fR \fI int\fR
136 .RS 4
137 Default:
138 \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.
139 .sp
140 .it 1 an-trap
141 .nr an-no-space-flag 1
142 .nr an-break-flag 1
143 .br
144 \fBNote\fR
145 This parameter may also be set in a specific
146 \fBdumptype\fR
147 (see below). This value sets the default for all
148 \fBdumptype\fRs so must appear in
149 \fBamanda.conf\fR
150 before any
151 \fBdumptype\fRs are defined.
152 .RE
153 .PP
154 \fBrunspercycle\fR \fI int\fR
155 .RS 4
156 Default:
157 \fIsame as dumpcycle\fR. The number of amdump runs in
158 \fBdumpcycle\fR
159 days. A value of 0 means the same value as
160 \fBdumpcycle\fR. A value of \-1 means guess the number of runs from the
161 \fItapelist\fR
162 file, which is the number of tapes used in the last
163 \fBdumpcycle\fR
164 days /
165 \fBruntapes\fR.
166 .RE
167 .PP
168 \fBtapecycle\fR \fI int\fR
169 .RS 4
170 Default:
171 \fI15 tapes\fR. Typically tapes are used by
172 \fIAmanda\fR
173 in an ordered rotation. The
174 \fBtapecycle\fR
175 parameter defines the size of that rotation. The number of tapes in rotation must be larger than the number of tapes required for a complete dump cycle (see the
176 \fBdumpcycle\fR
177 parameter).
178 .sp
179 This is calculated by multiplying the number of
180 \fBamdump\fR
181 runs per dump cycle (\fBrunspercycle\fR
182 parameter) times the number of tapes used per run (\fBruntapes\fR
183 parameter). Typically two to four times this calculated number of tapes are in rotation. While
184 \fIAmanda\fR
185 is always willing to use a new tape in its rotation, it refuses to reuse a tape until at least '\fBtapecycle\fR
186 \-1' number of other tapes have been used.
187 .sp
188 It is considered good administrative practice to set the
189 \fBtapecycle\fR
190 parameter slightly lower than the actual number of tapes in rotation. 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.
191 .RE
192 .PP
193 \fBusetimestamps\fR \fI bool\fR
194 .RS 4
195 Default:
196 \fBNo\fR. By default, Amanda can only track at most one run per calendar day. When this option is enabled, however, Amanda can track as many runs as you care to make.
197 .sp
198
199 \fBWARNING\fR: This option is not backward\-compatible. Do not enable it if you intend to downgrade your server installation to Amanda community edition 2.5.0
200 .RE
201 .PP
202 \fBlabel_new_tapes\fR \fI string\fR
203 .RS 4
204 Default: not set. When set, this directive will cause
205 \fIAmanda\fR
206 to automatically write an
207 \fIAmanda\fR
208 tape label to any blank tape she encounters. This option is DANGEROUS because when set,
209 \fIAmanda\fR
210 will ERASE any non\-\fIAmanda\fR
211 tapes you may have, and may also ERASE any near\-failing tapes. Use with caution.
212 .sp
213 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:
214 \fBlabel_new_tapes "DailySet1\-%%%"\fR
215 .RE
216 .PP
217 \fBdumpuser\fR \fI string\fR
218 .RS 4
219 Default:
220 \fIamanda\fR. The login name
221 \fIAmanda\fR
222 uses to run the backups. The backup client hosts must allow access from the tape server host as this user via
223 \fB.rhosts\fR
224 or
225 \fB.amandahosts\fR, depending on how the
226 \fIAmanda\fR
227 software was built.
228 .RE
229 .PP
230 \fBprinter\fR string
231 .RS 4
232 Printer to use when doing tape labels. See the
233 \fBlbl\-templ\fR
234 \fBtapetype\fR
235 option.
236 .RE
237 .PP
238 \fBtapedev\fR string
239 .RS 4
240 Default:
241 \fInull:\fR. The path name of the non\-rewinding tape device. Non\-rewinding tape device names often have an 'n' in the name, e.g.
242 \fI/dev/rmt/0mn\fR, however this is operating system specific and you should consult that documentation for detailed naming information.
243 .sp
244 If a tape changer is configured (see the
245 \fBtpchanger\fR
246 option), this option might not be used.
247 .sp
248 If the
249 \fBnull\fR
250 output driver is selected (see the section OUTPUT DRIVERS in the
251 \fBamanda\fR(8)
252 manpage for more information), programs such as
253 \fBamdump\fR
254 will run normally but all images will be thrown away. This should only be used for debugging and testing, and probably only with the
255 \fBrecord\fR
256 option set to
257 \fIno\fR.
258 .RE
259 .PP
260 \fBrawtapedev\fR string
261 .RS 4
262 Default:
263 \fInull:\fR. The path name of the raw tape device. This is only used if
264 \fIAmanda\fR
265 is compiled for Linux machines with floppy tapes and is needed for QIC volume table operations.
266 .RE
267 .PP
268 \fBtpchanger\fR string
269 .RS 4
270 Default:
271 \fInone\fR. The name of the tape changer. If a tape changer is not configured, this option is not used and should be commented out of the configuration file.
272 .sp
273 If a tape changer is configured, choose one of the changer scripts (e.g.
274 \fBchg\-scsi\fR) and enter that here.
275 .RE
276 .PP
277 \fBchangerdev\fR string
278 .RS 4
279 Default:
280 \fI/dev/null\fR. A tape changer configuration parameter. Usage depends on the particular changer defined with the
281 \fBtpchanger\fR
282 option.
283 .RE
284 .PP
285 \fBchangerfile\fR string
286 .RS 4
287 Default:
288 \fI/usr/adm/amanda/log/changer\-status\fR. A tape changer configuration parameter. Usage depends on the particular changer defined with the
289 \fBtpchanger\fR
290 option.
291 .RE
292 .PP
293 \fBruntapes\fR int
294 .RS 4
295 Default:
296 1. 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.
297 .sp
298 If a tape changer is configured, this may be set larger than one to let
299 \fIAmanda\fR
300 write to more than one tape.
301 .sp
302 Note that this is an upper bound on the number of tapes, and
303 \fIAmanda\fR
304 may use less.
305 .sp
306 Also note that as of this release,
307 \fIAmanda\fR
308 does not support true tape overflow. When it reaches the end of one tape, the backup image
309 \fIAmanda\fR
310 was processing starts over again on the next tape.
311 .RE
312 .PP
313 \fBmaxdumpsize\fR int
314 .RS 4
315 Default:
316 \fIruntapes\fR*\fItape_length\fR. Maximum number of bytes the planner will schedule for a run.
317 .RE
318 .PP
319 \fBtaperalgo\fR [first|firstfit|largest|largestfit|smallest|last]
320 .RS 4
321 Default:
322 \fIfirst\fR. The algorithm used to choose which dump image to send to the taper.
323 .RS 4
324 .PP
325 \fBfirst\fR
326 .RS 4
327 First in, first out.
328 .RE
329 .PP
330 \fBfirstfit\fR
331 .RS 4
332 The first dump image that will fit on the current tape.
333 .RE
334 .PP
335 \fBlargest\fR
336 .RS 4
337 The largest dump image.
338 .RE
339 .PP
340 \fBlargestfit\fR
341 .RS 4
342 The largest dump image that will fit on the current tape.
343 .RE
344 .PP
345 \fBsmallest\fR
346 .RS 4
347 The smallest dump image.
348 .RE
349 .PP
350 \fBlast\fR
351 .RS 4
352 Last in, first out.
353 .RE
354 .RE
355 .RE
356 .PP
357 \fBlabelstr\fR \fI string\fR
358 .RS 4
359 Default:
360 \fI.*\fR. The tape label constraint regular expression. All tape labels generated (see
361 \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.
362 .RE
363 .PP
364 \fBtapetype\fR \fI string\fR
365 .RS 4
366 Default:
367 \fIEXABYTE\fR. The type of tape drive associated with
368 \fBtapedev\fR
369 or
370 \fBtpchanger\fR. This refers to one of the defined
371 \fBtapetype\fRs in the config file (see below), which specify various tape parameters, like the
372 \fBlength\fR,
373 \fBfilemark\fR
374 size, and
375 \fBspeed\fR
376 of the tape media and device.
377 .sp
378 First character of a
379 \fBtapetype\fR
380 string must be an alphabetic character
381 .RE
382 .PP
383 \fBctimeout\fR int
384 .RS 4
385 Default:
386 \fI30 seconds\fR. Maximum amount of time that
387 \fBamcheck\fR
388 will wait for each client host.
389 .RE
390 .PP
391 \fBdtimeout\fR int
392 .RS 4
393 Default:
394 \fI1800 seconds\fR. Amount of idle time per disk on a given client that a
395 \fBdumper\fR
396 running from within
397 \fBamdump\fR
398 will wait before it fails with a data timeout error.
399 .RE
400 .PP
401 \fBetimeout\fR int
402 .RS 4
403 Default:
404 \fI300 seconds\fR. Amount of time per disk on a given client that the
405 \fBplanner\fR
406 step of
407 \fBamdump\fR
408 will wait to get the dump size estimates. For instance, with the default of 300 seconds and four disks on client A,
409 \fBplanner\fR
410 will wait up to 20 minutes for that machine. A negative value will be interpreted as a total amount of time to wait per client instead of per disk.
411 .RE
412 .PP
413 \fBnetusage\fR int
414 .RS 4
415 Default:
416 \fI300 Kbps\fR. The maximum network bandwidth allocated to
417 \fIAmanda\fR, in Kbytes per second. See also the
418 \fBinterface\fR
419 section.
420 .RE
421 .PP
422 \fBinparallel\fR int
423 .RS 4
424 Default:
425 10. The maximum number of backups that
426 \fIAmanda\fR
427 will attempt to run in parallel.
428 \fIAmanda\fR
429 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.
430 .RE
431 .PP
432 \fBdisplayunit\fR "k|m|g|t"
433 .RS 4
434 Default:
435 "k". The unit used to print many numbers, k=kilo, m=mega, g=giga, t=tera.
436 .RE
437 .PP
438 \fBdumporder\fR string
439 .RS 4
440 Default:
441 \fItttTTTTTTT\fR. The priority order of each dumper:
442 .sp
443 .RS 4
444 .nf
445 s: smallest size
446 S: largest size
447 t: smallest time
448 T: largest time
449 b: smallest bandwidth
450 B: largest bandwidth
451 .fi
452 .RE
453 .RE
454 .PP
455 \fBmaxdumps\fR int
456 .RS 4
457 Default:
458 1. The maximum number of backups from a single host that
459 \fIAmanda\fR
460 will attempt to run in parallel. See also the
461 \fBinparallel\fR
462 option.
463 .sp
464 Note that this parameter may also be set in a specific
465 \fBdumptype\fR
466 (see below). This value sets the default for all
467 \fBdumptype\fRs so must appear in
468 \fBamanda.conf\fR
469 before any
470 \fBdumptype\fRs are defined.
471 .RE
472 .PP
473 \fBbumpsize\fR int
474 .RS 4
475 Default:
476 \fI10 Mbytes\fR. The minimum savings required to trigger an automatic bump from one incremental level to the next, expressed as size. If
477 \fIAmanda\fR
478 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
479 \fIbumppercent\fR
480 is set to 0.
481 .sp
482 The global setting of this parameter can be overwritten inside of a dumptype\-definition.
483 .sp
484 See also the options
485 \fBbumppercent\fR,
486 \fBbumpmult\fR
487 and
488 \fBbumpdays\fR.
489 .RE
490 .PP
491 \fBbumppercent\fR int
492 .RS 4
493 Default:
494 \fI0 percent\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
495 \fIAmanda\fR
496 determines that the next higher backup level will be this much smaller than the current level, it will do the next level.
497 .sp
498 If this parameter is set to 0, the value of the parameter
499 \fIbumpsize\fR
500 is used to trigger bumping.
501 .sp
502 The global setting of this parameter can be overwritten inside of a dumptype\-definition.
503 .sp
504 See also the options
505 \fBbumpsize\fR,
506 \fBbumpmult\fR
507 and
508 \fBbumpdays\fR.
509 .RE
510 .PP
511 \fBbumpmult\fR \fI float\fR
512 .RS 4
513 Default:
514 1.5. The bump size multiplier.
515 \fIAmanda\fR
516 multiplies
517 \fBbumpsize\fR
518 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
519 \fBbumpsize\fR
520 and
521 \fBbumpmult\fR
522 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.
523 .sp
524 The global setting of this parameter can be overwritten inside of a dumptype\-definition.
525 .RE
526 .PP
527 \fBbumpdays\fR \fI int\fR
528 .RS 4
529 Default:
530 \fI2 days\fR. To insure redundancy in the dumps,
531 \fIAmanda\fR
532 keeps filesystems at the same incremental level for at least
533 \fBbumpdays\fR
534 days, even if the other bump threshold criteria are met.
535 .sp
536 The global setting of this parameter can be overwritten inside of a dumptype\-definition.
537 .RE
538 .PP
539 \fBdiskfile\fR \fI string\fR
540 .RS 4
541 Default:
542 \fIdisklist\fR. The file name for the
543 \fIdisklist\fR
544 file holding client hosts, disks and other client dumping information.
545 .RE
546 .PP
547 \fBinfofile\fR \fI string\fR
548 .RS 4
549 Default:
550 \fI/usr/adm/amanda/curinfo\fR. The file or directory name for the historical information database. If
551 \fIAmanda\fR
552 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.
553 .RE
554 .PP
555 \fBlogdir\fR \fI string\fR
556 .RS 4
557 Default:
558 \fI/usr/adm/amanda\fR. The directory for the
559 \fBamdump\fR
560 and
561 \fBlog\fR
562 files.
563 .RE
564 .PP
565 \fBindexdir\fR \fI string\fR
566 .RS 4
567 Default
568 \fI/usr/adm/amanda/index\fR. The directory where index files (backup image catalogues) are stored. Index files are only generated for filesystems whose
569 \fBdumptype\fR
570 has the
571 \fBindex\fR
572 option enabled.
573 .RE
574 .PP
575 \fBtapelist\fR \fI string\fR
576 .RS 4
577 Default:
578 \fItapelist\fR. The file name for the active
579 \fItapelist\fR
580 file.
581 \fIAmanda\fR
582 maintains this file with information about the active set of tapes.
583 .RE
584 .PP
585 \fBtapebufs\fR \fI int\fR
586 .RS 4
587 Default:
588 20. The number of buffers used by the
589 \fBtaper\fR
590 process run by
591 \fBamdump\fR
592 and
593 \fBamflush\fR
594 to hold data as it is read from the network or disk before it is written to tape. Each buffer is a little larger than 32 KBytes and is held in a shared memory region.
595 .RE
596 .PP
597 \fBreserve\fR \fI number\fR
598 .RS 4
599 Default:
600 100. 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.
601 .RE
602 .PP
603 \fBautoflush\fR \fI bool\fR
604 .RS 4
605 Default:
606 \fIoff\fR. Whether an amdump run will flush the dumps from holding disk to tape.
607 .RE
608 .PP
609 \fBamrecover_do_fsf\fR \fI bool\fR
610 .RS 4
611 Default:
612 \fIon\fR. Amrecover will call amrestore with the \-f flag for faster positioning of the tape.
613 .RE
614 .PP
615 \fBamrecover_check_label\fR \fI bool\fR
616 .RS 4
617 Default:
618 \fIon\fR. Amrecover will call amrestore with the \-l flag to check the label.
619 .RE
620 .PP
621 \fBamrecover_changer\fR \fI string\fR
622 .RS 4
623 Default: ''. Amrecover will use the changer if you use 'settape <string>' and that string is the same as the amrecover_changer setting.
624 .RE
625 .PP
626 \fBcolumnspec\fR \fI string\fR
627 .RS 4
628 Defines the width of columns
629 \fBamreport\fR
630 should use.
631 \fIString\fR
632 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 three parts specify:
633 .RS 4
634 \h'-04' 1.\h'+02'the name of the column, which may be:
635 .sp
636 .RS 4
637 .nf
638         Compress (compression ratio)
639         Disk (client disk name)
640         DumpRate (dump rate in KBytes/sec)
641         DumpTime (total dump time in hours:minutes)
642         HostName (client host name)
643         Level (dump level)
644         OrigKB (original image size in KBytes)
645         OutKB (output image size in KBytes)
646         TapeRate (tape writing rate in KBytes/sec)
647         TapeTime (total tape time in hours:minutes)
648         
649 .fi
650 .RE
651 .RE
652 .RS 4
653 \h'-04' 2.\h'+02'the amount of space to display before the column (used to get whitespace between columns).
654 .sp
655 .RE
656 .RS 4
657 \h'-04' 3.\h'+02'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.
658 .RE
659 .IP "" 4
660 Here is an example:
661 .sp
662 .RS 4
663 .nf
664 columnspec "Disk=1:18,HostName=0:10,OutKB=1:7"
665 .fi
666 .RE
667 .sp
668 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 output KBytes column is seven characters wide with one space before it.
669 .RE
670 .PP
671 \fBincludefile\fR \fI string\fR
672 .RS 4
673 Default:
674 \fInone\fR. The name of an
675 \fIAmanda\fR
676 configuration file to include within the current file. Useful for sharing dumptypes, tapetypes and interface definitions among several configurations.
677 .RE
678 .SH "HOLDINGDISK SECTION"
679 .PP
680 The
681 \fBamanda.conf\fR
682 file may define one or more holding disks used as buffers to hold backup images before they are written to tape. The syntax is:
683 .sp
684 .RS 4
685 .nf
686 holdingdisk \fIname\fR {
687     \fIholdingdisk\-option\fR \fIholdingdisk\-value\fR
688     ...
689 }
690 .fi
691 .RE
692 .PP
693 \fIName\fR
694 is a logical name for this holding disk.
695 .PP
696 The options and values are:
697 .PP
698 \fBcomment\fR \fI string\fR
699 .RS 4
700 Default:
701 \fInone\fR. A comment string describing this holding disk.
702 .RE
703 .PP
704 \fBdirectory\fR \fI disk\fR
705 .RS 4
706 Default:
707 \fI/dumps/amanda\fR. The path to this holding area.
708 .RE
709 .PP
710 \fBuse\fR \fI int\fR
711 .RS 4
712 Default:
713 \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,
714 \fIAmanda\fR
715 will use all available space minus that value.
716 .RE
717 .PP
718 \fBchunksize\fR \fI int\fR
719 .RS 4
720 Default:
721 \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.
722 .sp
723 If 0 is specified,
724 \fIAmanda\fR
725 will create holding disk chunks as large as ((INT_MAX/1024)\-64) Kbytes.
726 .sp
727 Each holding disk chunk includes a 32 Kbyte header, so the minimum chunk size is 64 Kbytes (but that would be really silly).
728 .sp
729 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
730 \fIAmanda\fR
731 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.
732 .RE
733 .SH "DUMPTYPE SECTION"
734 .PP
735 The
736 \fIamanda.conf\fR
737 file may define multiple sets of backup options and refer to them by name from the
738 \fIdisklist\fR
739 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.
740 .PP
741 A set of backup options are entered in a
742 \fBdumptype\fR
743 section, which looks like this:
744 .sp
745 .RS 4
746 .nf
747 define dumptype \fIname\fR {
748     \fIdumptype\-option\fR \fIdumptype\-value\fR
749     ...
750 }
751 .fi
752 .RE
753 .PP
754 \fIName\fR
755 is the name of this set of backup options. It is referenced from the
756 \fIdisklist\fR
757 file.
758 .PP
759 Some of the options in a
760 \fBdumptype\fR
761 section are the same as those in the main part of
762 \fIamanda.conf\fR. The main option value is used to set the default for all
763 \fBdumptype\fR
764 sections. For instance, setting
765 \fBdumpcycle\fR
766 to 50 in the main part of the config file causes all following
767 \fBdumptype\fR
768 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
769 \fBdumptype\fRs are defined.
770 .PP
771 The dumptype options and values are:
772 .PP
773 \fBauth\fR \fI string\fR
774 .RS 4
775 Default:
776 \fIbsd\fR. Type of authorization to perform between tape server and backup client hosts.
777 .sp
778 \fBbsd\fR, bsd authorization with udp initial connection and one tcp connection by data stream.
779 .sp
780 \fBbsdtcp\fR, bsd authorization but use only one tcp connection.
781 .sp
782 \fBbsdudp\fR, like bsd, but will use only one tcp connection for all data stream.
783 .sp
784 \fBkrb4\fR
785 to use Kerberos\-IV authorization.
786 .sp
787 \fBkrb5\fR
788 to use Kerberos\-V authorization.
789 .sp
790 \fBrsh\fR
791 to use rsh authorization.
792 .sp
793 \fBssh\fR
794 to use OpenSSH authorization.
795 .RE
796 .PP
797 \fBamandad_path\fR \fI string\fR
798 .RS 4
799 Default:
800 \fI$libexec/amandad\fR. Specify the amandad path of the client, only use with rsh/ssh authentification.
801 .RE
802 .PP
803 \fBclient_username\fR \fI string\fR
804 .RS 4
805 Default:
806 \fICLIENT_LOGIN\fR. Specify the username to connect on the client, only use with rsh/ssh authentification.
807 .RE
808 .PP
809 \fBbumpsize\fR int
810 .RS 4
811 Default:
812 \fI10 Mbytes\fR. The minimum savings required to trigger an automatic bump from one incremental level to the next, expressed as size. If
813 \fIAmanda\fR
814 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
815 \fIbumppercent\fR
816 is set to 0.
817 .sp
818 See also the options
819 \fBbumppercent\fR,
820 \fBbumpmult\fR
821 and
822 \fBbumpdays\fR.
823 .RE
824 .PP
825 \fBbumppercent\fR int
826 .RS 4
827 Default:
828 \fI0 percent\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
829 \fIAmanda\fR
830 determines that the next higher backup level will be this much smaller than the current level, it will do the next level.
831 .sp
832 If this parameter is set to 0, the value of the parameter
833 \fIbumpsize\fR
834 is used to trigger bumping.
835 .sp
836 See also the options
837 \fBbumpsize\fR,
838 \fBbumpmult\fR
839 and
840 \fBbumpdays\fR.
841 .RE
842 .PP
843 \fBbumpmult\fR \fI float\fR
844 .RS 4
845 Default:
846 1.5. The bump size multiplier.
847 \fIAmanda\fR
848 multiplies
849 \fBbumpsize\fR
850 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
851 \fBbumpsize\fR
852 and
853 \fBbumpmult\fR
854 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.
855 .RE
856 .PP
857 \fBbumpdays\fR \fI int\fR
858 .RS 4
859 Default:
860 \fI2 days\fR. To insure redundancy in the dumps,
861 \fIAmanda\fR
862 keeps filesystems at the same incremental level for at least
863 \fBbumpdays\fR
864 days, even if the other bump threshold criteria are met.
865 .RE
866 .PP
867 \fBcomment\fR \fI string\fR
868 .RS 4
869 Default:
870 \fInone\fR. A comment string describing this set of backup options.
871 .RE
872 .PP
873 \fBcomprate\fR \fIfloat\fR [, \fIfloat\fR ]
874 .RS 4
875 Default:
876 0.50,
877 0.50. The expected full and incremental compression factor for dumps. It is only used if
878 \fIAmanda\fR
879 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.
880 .RE
881 .PP
882 \fBcompress [client|server]\fR \fI string\fR
883 .RS 4
884 Default:
885 \fIclient fast\fR. If
886 \fIAmanda\fR
887 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.
888 .sp
889 For either type of compression,
890 \fIAmanda\fR
891 also allows the selection of three styles of compression.
892 \fBBest\fR
893 is the best compression available, often at the expense of CPU overhead.
894 \fBFast\fR
895 is often not as good a compression as
896 \fBbest\fR, but usually less CPU overhead. Or to specify
897 \fBCustom\fR
898 to use your own compression method. (See dumptype custom\-compress in example/amanda.conf for reference)
899 .sp
900 So the
901 \fBcompress\fR
902 options line may be one of:
903 .RS 4
904 .PP
905 compress none
906 .RS 4
907 .RE
908 .PP
909 compress client fast
910 .RS 4
911 .RE
912 .PP
913 compress client best
914 .RS 4
915 .RE
916 .PP
917 compress client custom
918 .RS 4
919 Specify
920 \fIclient_custom_compress\fR
921 "PROG"
922 .sp
923 PROG must not contain white space and it must accept \-d for uncompress.
924 .RE
925 .PP
926 compress server fast
927 .RS 4
928 .RE
929 .PP
930 compress server best
931 .RS 4
932 .RE
933 .PP
934 compress server custom
935 .RS 4
936 Specify
937 \fIserver_custom_compress\fR
938 "PROG"
939 .sp
940 PROG must not contain white space and it must accept \-d for uncompress.
941 .RE
942 .RE
943 .IP "" 4
944 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
945 \fBmt\fR
946 option),
947 \fIAmanda\fR
948 (software) compression should be disabled.
949 .RE
950 .PP
951 \fBdumpcycle\fR \fI int\fR
952 .RS 4
953 Default:
954 \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.
955 .RE
956 .PP
957 \fBencrypt [none|client|server]\fR
958 .RS 4
959 Default:
960 \fInone\fR. 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.
961 .sp
962 So the
963 \fBencrypt\fR
964 options line may be one of:
965 .RS 4
966 .PP
967 encrypt none
968 .RS 4
969 .RE
970 .PP
971 encrypt client
972 .RS 4
973 Specify client_encrypt "PROG"
974 .sp
975 PROG must not contain white space.
976 .sp
977 Specify client_decrypt_option "decryption\-parameter" Default: "\-d"
978 .sp
979 decryption\-parameter must not contain white space.
980 .sp
981 (See dumptype server\-encrypt\-fast in example/amanda.conf for reference)
982 .RE
983 .PP
984 encrypt server
985 .RS 4
986 Specify server_encrypt "PROG"
987 .sp
988 PROG must not contain white space.
989 .sp
990 Specify server_decrypt_option "decryption\-parameter" Default: "\-d"
991 .sp
992 decryption\-parameter must not contain white space.
993 .sp
994 (See dumptype client\-encrypt\-nocomp in example/amanda.conf for reference)
995 .RE
996 .RE
997 .IP "" 4
998 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.
999 \fIamcrypt\fR
1000 which is a wrapper of
1001 \fIaespipe\fR
1002 is provided as a reference symmetric encryption program.
1003 .RE
1004 .PP
1005 \fBestimate\fR \fIclient|calcsize|server\fR
1006 .RS 4
1007 Default:
1008 \fIclient\fR. Determine the way
1009 \fIAmanda\fR
1010 does it's estimate.
1011 .RS 4
1012 .PP
1013 client
1014 .RS 4
1015 Use the same program as the dumping program, this is the most accurate way to do estimates, but it can take a long time.
1016 .RE
1017 .PP
1018 calcsize
1019 .RS 4
1020 Use a faster program to do estimates, but the result is less accurate.
1021 .RE
1022 .PP
1023 server
1024 .RS 4
1025 Use only statistics from the previous run to give an estimate, it takes only a few seconds but the result is not accurate if your disk usage changes from day to day.
1026 .RE
1027 .RE
1028 .RE
1029 .PP
1030 \fBexclude\fR [ list|file ][[optional][ append ][ \fIstring\fR ]+]
1031 .RS 4
1032 Default:
1033 \fIfile\fR. There are two exclude lists,
1034 \fBexclude file\fR
1035 and
1036 \fBexclude list.\fR
1037 With
1038 \fBexclude file\fR
1039 , the
1040 \fIstring\fR
1041 is a
1042 \fBGNU\-tar\fR
1043 exclude expression. With
1044 \fBexclude list\fR
1045 , the
1046 \fIstring\fR
1047 is a file name on the client containing
1048 \fBGNU\-tar\fR
1049 exclude expressions. The path to the specified exclude list file, if present (see description of 'optional' below), must be readable by the
1050 \fIAmanda\fR
1051 user.
1052 .sp
1053 All exclude expressions are concatenated in one file and passed to
1054 \fBGNU\-tar\fR
1055 as an
1056 \fB\-\-exclude\-from\fR
1057 argument.
1058 .sp
1059 Exclude expressions must always be specified as relative to the head directory of the DLE.
1060 .sp
1061 With the
1062 \fBappend\fR
1063 keyword, the
1064 \fIstring\fR
1065 is appended to the current list, without it, the
1066 \fIstring\fR
1067 overwrites the list.
1068 .sp
1069 If
1070 \fBoptional\fR
1071 is specified for
1072 \fBexclude list\fR, then amcheck will not complain if the file doesn't exist or is not readable.
1073 .sp
1074 For
1075 \fBexclude list\fR, if the file name is relative, the disk name being backed up is prepended. So if this is entered:
1076 .sp
1077 .RS 4
1078 .nf
1079     exclude list ".amanda.excludes"
1080 .fi
1081 .RE
1082 the actual file used would be
1083 \fI/var/.amanda.excludes\fR
1084 for a backup of
1085 \fI/var\fR,
1086 \fI/usr/local/.amanda.excludes\fR
1087 for a backup of
1088 \fI/usr/local\fR, and so on.
1089 .RE
1090 .PP
1091 \fBholdingdisk\fR [ never|auto|required ]
1092 .RS 4
1093 Default:
1094 \fIauto\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
1095 \fIAmanda\fR
1096 is backing up, that file system should refer to a dumptype with
1097 \fBholdingdisk\fR
1098 set to
1099 \fInever\fR
1100 to avoid backing up the holding disk into itself.
1101 .RS 4
1102 .PP
1103 \fBnever\fR|no|false|off
1104 .RS 4
1105 Never use a holdingdisk, the dump will always go directly to tape. There will be no dump if you have a tape error.
1106 .RE
1107 .PP
1108 \fBauto\fR|yes|true|on
1109 .RS 4
1110 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)
1111 .RE
1112 .PP
1113 \fBrequired\fR
1114 .RS 4
1115 Always dump to holdingdisk, never directly to tape. There will be no dump if it doesn't fit on holdingdisk
1116 .RE
1117 .RE
1118 .RE
1119 .PP
1120 \fBignore\fR \fI boolean\fR
1121 .RS 4
1122 Default:
1123 \fIno\fR. Whether disks associated with this backup type should be backed up or not. This option is useful when the
1124 \fIdisklist\fR
1125 file is shared among several configurations, some of which should not back up all the listed file systems.
1126 .RE
1127 .PP
1128 \fBinclude\fR [ list|file ][[optional][ append ][ \fIstring\fR ]+]
1129 .RS 4
1130 Default:
1131 \fIfile\fR
1132 ".". There are two include lists,
1133 \fBinclude file\fR
1134 and
1135 \fBinclude list.\fR
1136 With
1137 \fBinclude file\fR
1138 , the
1139 \fIstring\fR
1140 is a glob expression. With
1141 \fBinclude list\fR
1142 , the
1143 \fIstring\fR
1144 is a file name on the client containing glob expressions.
1145 .sp
1146 All include expressions are expanded by
1147 \fIAmanda\fR, concatenated in one file and passed to
1148 \fBGNU\-tar\fR
1149 as a
1150 \fB\-\-files\-from\fR
1151 argument. They must start with "./" and contain no other "/".
1152 .sp
1153 Include expressions must always be specified as relative to the head directory of the DLE.
1154 .sp
1155 .it 1 an-trap
1156 .nr an-no-space-flag 1
1157 .nr an-break-flag 1
1158 .br
1159 \fBNote\fR
1160 For globbing to work at all, even the limited single level, the top level directory of the DLE must be readable by the
1161 \fIAmanda\fR
1162 user.
1163
1164 With the
1165 \fBappend\fR
1166 keyword, the
1167 \fIstring\fR
1168 is appended to the current list, without it, the
1169 \fIstring\fR
1170 overwrites the list.
1171 .sp
1172 If
1173 \fBoptional\fR
1174 is specified for
1175 \fBinclude list,\fR
1176 then amcheck will not complain if the file doesn't exist or is not readable.
1177 .sp
1178 For
1179 \fBinclude list\fR, If the file name is relative, the disk name being backed up is prepended.
1180 .RE
1181 .PP
1182 \fBindex\fR \fI boolean\fR
1183 .RS 4
1184 Default:
1185 \fIno\fR. Whether an index (catalogue) of the backup should be generated and saved in
1186 \fBindexdir\fR. These catalogues are used by the
1187 \fBamrecover\fR
1188 utility.
1189 .RE
1190 .PP
1191 \fBkencrypt\fR \fI boolean\fR
1192 .RS 4
1193 Default:
1194 \fIno\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.
1195 .RE
1196 .PP
1197 \fBmaxdumps\fR \fI int\fR
1198 .RS 4
1199 Default:
1200 1. The maximum number of backups from a single host that
1201 \fIAmanda\fR
1202 will attempt to run in parallel. See also the main section parameter
1203 \fBinparallel\fR.
1204 .RE
1205 .PP
1206 \fBmaxpromoteday\fR \fI int\fR
1207 .RS 4
1208 Default:
1209 10000. 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.
1210 .RE
1211 .PP
1212 \fBpriority\fR \fI string\fR
1213 .RS 4
1214 Default:
1215 \fImedium\fR. When there is no tape to write to,
1216 \fIAmanda\fR
1217 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.
1218 .RE
1219 .PP
1220 \fBprogram\fR \fI string\fR
1221 .RS 4
1222 Default:
1223 \fIDUMP\fR. The type of backup to perform. Valid values are
1224 \fBDUMP\fR
1225 for the native operating system backup program, and
1226 \fBGNUTAR\fR
1227 to use
1228 \fBGNU\-tar\fR
1229 or to do PC backups using Samba.
1230 .RE
1231 .PP
1232 \fBrecord\fR \fI boolean\fR
1233 .RS 4
1234 Default:
1235 \fIyes\fR. Whether to ask the backup program to update its database (e.g.
1236 \fI/etc/dumpdates\fR
1237 for DUMP or
1238 \fI/usr/local/var/amanda/gnutar\-lists\fR
1239 for GNUTAR) of time stamps. This is normally enabled for daily backups and turned off for periodic archival runs.
1240 .RE
1241 .PP
1242 \fBskip\-full\fR \fI boolean\fR
1243 .RS 4
1244 Default:
1245 \fIno\fR. If
1246 \fItrue\fR
1247 and
1248 \fBplanner\fR
1249 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
1250 \fIAmanda\fR
1251 only schedules level 1 incrementals in this configuration; this is probably a bug.
1252 .RE
1253 .PP
1254 \fBskip\-incr\fR \fI boolean\fR
1255 .RS 4
1256 Default:
1257 \fIno\fR. If
1258 \fItrue\fR
1259 and
1260 \fBplanner\fR
1261 has scheduled an incremental backup, these disks will be skipped.
1262 .RE
1263 .PP
1264 \fBstarttime\fR \fI int\fR
1265 .RS 4
1266 Default:
1267 \fInone\fR. Backups 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
1268 1830.
1269 .RE
1270 .PP
1271 \fBstrategy\fR \fI string\fR
1272 .RS 4
1273 Default:
1274 \fIstandard\fR. Strategy to use when planning what level of backup to run next. Values are:
1275 .RS 4
1276 .PP
1277 \fBstandard\fR
1278 .RS 4
1279 The standard
1280 \fIAmanda\fR
1281 schedule.
1282 .RE
1283 .PP
1284 \fBnofull\fR
1285 .RS 4
1286 Never do full backups, only level 1 incrementals.
1287 .RE
1288 .PP
1289 \fBnoinc\fR
1290 .RS 4
1291 Never do incremental backups, only full dumps.
1292 .RE
1293 .PP
1294 \fBskip\fR
1295 .RS 4
1296 Never do backups (useful when sharing the
1297 \fIdisklist\fR
1298 file).
1299 .RE
1300 .PP
1301 \fBincronly\fR
1302 .RS 4
1303 Only do incremental dumps.
1304 \fBamadmin force\fR
1305 should be used to tell
1306 \fIAmanda\fR
1307 that a full dump has been performed off\-line, so that it resets to level 1. It is similar to skip\-full, but with incronly full dumps may be scheduled manually. Unfortunately, it appears that
1308 \fIAmanda\fR
1309 will perform full backups with this configuration, which is probably a bug.
1310 .RE
1311 .RE
1312 .RE
1313 .PP
1314 \fBtape_splitsize\fR \fI int\fR
1315 .RS 4
1316 Default:
1317 \fInone\fR. Split dump file on tape into pieces of a specified size. This allows dumps to be spread across multiple tapes, and can potentially make more efficient use of tape space. Note that if this value is too large (more than half the size of the average dump being split), substantial tape space can be wasted. If too small, large dumps will be split into innumerable tiny dumpfiles, adding to restoration complexity. A good rule of thumb, usually, is 1/10 of the size of your tape.
1318 .RE
1319 .PP
1320 \fBsplit_diskbuffer\fR \fI string\fR
1321 .RS 4
1322 Default:
1323 \fInone\fR. 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.
1324 .RE
1325 .PP
1326 \fBfallback_splitsize\fR \fI int\fR
1327 .RS 4
1328 Default:
1329 \fI10M\fR. When dumping a split dump in PORT\-WRITE mode, if no split_diskbuffer is specified (or if we somehow fail to use our split_diskbuffer), we must buffer split chunks in memory. This specifies the maximum size split chunks can be in this scenario, and thus the maximum amount of memory consumed for in\-memory splitting. The size of this buffer can be changed from its (very conservative) default to a value reflecting the amount of memory that each taper process on the dump server may reasonably consume.
1330 .RE
1331 .PP
1332 The following
1333 \fBdumptype\fR
1334 entries are predefined by
1335 \fIAmanda\fR:
1336 .sp
1337 .RS 4
1338 .nf
1339 define dumptype no\-compress {
1340     compress none
1341 }
1342 define dumptype compress\-fast {
1343     compress client fast
1344 }
1345 define dumptype compress\-best {
1346     compress client best
1347 }
1348 define dumptype srvcompress {
1349     compress server fast
1350 }
1351 define dumptype bsd\-auth {
1352     auth bsd
1353 }
1354 define dumptype krb4\-auth {
1355     auth krb4
1356 }
1357 define dumptype no\-record {
1358     record no
1359 }
1360 define dumptype no\-hold {
1361     holdingdisk no
1362 }
1363 define dumptype no\-full {
1364     skip\-full yes
1365
1366 .fi
1367 .RE
1368 .PP
1369 In addition to options in a
1370 \fBdumptype\fR
1371 section, one or more other
1372 \fBdumptype\fR
1373 names may be entered, which make this
1374 \fBdumptype\fR
1375 inherit options from other previously defined
1376 \fBdumptype\fRs. For instance, two sections might be the same except for the
1377 \fBrecord\fR
1378 option:
1379 .sp
1380 .RS 4
1381 .nf
1382 define dumptype normal {
1383     comment "Normal backup, no compression, do indexing"
1384     no\-compress
1385     index yes
1386     maxdumps 2
1387 }
1388 define dumptype testing {
1389     comment "Test backup, no compression, do indexing, no recording"
1390     normal
1391     record no
1392 }
1393 .fi
1394 .RE
1395 .PP
1396 \fIAmanda\fR
1397 provides a
1398 \fBdumptype\fR
1399 named
1400 \fIglobal\fR
1401 in the sample
1402 \fBamanda.conf\fR
1403 file that all
1404 \fBdumptype\fRs should reference. This provides an easy place to make changes that will affect every
1405 \fBdumptype\fR.
1406 .SH "TAPETYPE SECTION"
1407 .PP
1408 The
1409 \fBamanda.conf\fR
1410 file may define multiple types of tape media and devices. The information is entered in a
1411 \fBtapetype\fR
1412 section, which looks like this in the config file:
1413 .sp
1414 .RS 4
1415 .nf
1416 define tapetype \fIname\fR {
1417     \fItapetype\-option\fR \fItapetype\-value\fR
1418     ...
1419 }
1420 .fi
1421 .RE
1422 .PP
1423 \fIName\fR
1424 is the name of this type of tape medium/device. It is referenced from the
1425 \fBtapetype\fR
1426 option in the main part of the config file.
1427 .PP
1428 The tapetype options and values are:
1429 .PP
1430 \fBcomment\fR \fI string\fR
1431 .RS 4
1432 Default:
1433 \fInone\fR. A comment string describing this set of tape information.
1434 .RE
1435 .PP
1436 \fBfilemark\fR \fI int\fR
1437 .RS 4
1438 Default:
1439 \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.
1440 .RE
1441 .PP
1442 \fBlength\fR \fI int\fR
1443 .RS 4
1444 Default:
1445 \fI2000 kbytes\fR. How much data will fit on a tape.
1446 .sp
1447 Note that this value is only used by
1448 \fIAmanda\fR
1449 to schedule which backups will be run. Once the backups start,
1450 \fIAmanda\fR
1451 will continue to write to a tape until it gets an error, regardless of what value is entered for
1452 \fBlength\fR
1453 (but see the section OUTPUT DRIVERS in the
1454 \fBamanda\fR(8)
1455 manpage for exceptions).
1456 .RE
1457 .PP
1458 \fBblocksize\fR \fI int\fR
1459 .RS 4
1460 Default:
1461 \fI32 kbytes\fR. How much data will be written in each tape record expressed in KiloBytes. The tape record size (= blocksize) can not be reduced below the default 32 KBytes. The parameter blocksize can only be raised if
1462 \fIAmanda\fR
1463 was compiled with the configure option \-\-with\-maxtapeblocksize=N set with "N" greater than 32 during
1464 \fBconfigure\fR.
1465 .RE
1466 .PP
1467 \fBfile\-pad\fR \fI boolean\fR
1468 .RS 4
1469 Default:
1470 \fItrue\fR. If true, every record, including the last one in the file, will have the same length. This matches the way
1471 \fIAmanda\fR
1472 wrote tapes prior to the availability of this parameter. It may also be useful on devices that only support a fixed blocksize.
1473 .sp
1474 Note that the last record on the tape probably includes trailing null byte padding, which will be passed back to
1475 \fBgzip\fR,
1476 \fBcompress\fR
1477 or the restore program. Most programs just ignore this (although possibly with a warning).
1478 .sp
1479 If this parameter is false, the last record in a file may be shorter than the block size. The file will contain the same amount of data the dump program generated, without trailing null byte padding. When read, the same amount of data that was written will be returned.
1480 .RE
1481 .PP
1482 \fBspeed\fR \fI int\fR
1483 .RS 4
1484 Default:
1485 \fI200 bps\fR. How fast the drive will accept data, in bytes per second. This parameter is NOT currently used by
1486 \fIAmanda\fR.
1487 .RE
1488 .PP
1489 \fBlbl\-templ\fR \fI string\fR
1490 .RS 4
1491 A PostScript template file used by
1492 \fBamreport\fR
1493 to generate labels. Several sample files are provided with the
1494 \fIAmanda\fR
1495 sources in the
1496 \fIexample\fR
1497 directory. See the
1498 \fBamreport\fR(8)
1499 man page for more information.
1500 .RE
1501 .PP
1502 In addition to options, another
1503 \fBtapetype\fR
1504 name may be entered, which makes this
1505 \fBtapetype\fR
1506 inherit options from another
1507 \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:
1508 .sp
1509 .RS 4
1510 .nf
1511 define tapetype DLT4000\-III {
1512     comment "DLT4000 tape drives with Compact\-III tapes"
1513     length 12500 mbytes         # 10 Gig tapes with some compression
1514     filemark 2000 kbytes
1515     speed 1536 kps
1516 }
1517 define tapetype DLT4000\-IV {
1518     DLT4000\-III
1519     comment "DLT4000 tape drives with Compact\-IV tapes"
1520     length 25000 mbytes         # 20 Gig tapes with some compression
1521 }
1522 .fi
1523 .RE
1524 .sp
1525 .SH "INTERFACE SECTION"
1526 .PP
1527 The
1528 \fBamanda.conf\fR
1529 file may define multiple types of network interfaces. The information is entered in an
1530 \fBinterface\fR
1531 section, which looks like this:
1532 .sp
1533 .RS 4
1534 .nf
1535 define interface \fIname\fR {
1536     \fIinterface\-option\fR \fIinterface\-value\fR
1537     ...
1538 }
1539 .fi
1540 .RE
1541 .PP
1542 \fIname\fR
1543 is the name of this type of network interface. It is referenced from the
1544 \fIdisklist\fR
1545 file.
1546 .PP
1547 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
1548 \fIAmanda\fR.
1549 \fIAmanda\fR
1550 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,
1551 \fIAmanda\fR
1552 will use as much of the network as it can leaving throttling up to the operating system and network hardware.
1553 .PP
1554 The interface options and values are:
1555 .PP
1556 \fBcomment\fR \fI string\fR
1557 .RS 4
1558 Default:
1559 \fInone\fR. A comment string describing this set of network information.
1560 .RE
1561 .PP
1562 \fBuse\fR \fI int\fR
1563 .RS 4
1564 Default:
1565 \fI300 Kbps\fR. The speed of the interface in Kbytes per second.
1566 .RE
1567 .PP
1568 In addition to options, another
1569 \fBinterface\fR
1570 name may be entered, which makes this
1571 \fBinterface\fR
1572 inherit options from another
1573 \fBinterface\fR. At the moment, this is of little use.
1574 .SH "AUTHOR"
1575 .PP
1576 James da Silva,
1577 <jds@amanda.org>: Original text
1578 .PP
1579 Stefan G. Weichinger,
1580 <sgw@amanda.org>, maintainer of the
1581 \fIAmanda\fR\-documentation: XML\-conversion, major update, splitting
1582 .SH "SEE ALSO"
1583 .PP
1584
1585 \fBamanda\fR(8),
1586 \fBamanda\-client.conf\fR(5),
1587 \fBamcrypt\fR(8),
1588 \fBaespipe\fR(1),