Imported Upstream version 2.4.5p1
[debian/amanda] / man / amanda.conf.5
1 .\"Generated by db2man.xsl. Don't modify this, modify the source.
2 .de Sh \" Subsection
3 .br
4 .if t .Sp
5 .ne 5
6 .PP
7 \fB\\$1\fR
8 .PP
9 ..
10 .de Sp \" Vertical space (when we can't use .PP)
11 .if t .sp .5v
12 .if n .sp
13 ..
14 .de Ip \" List item
15 .br
16 .ie \\n(.$>=3 .ne \\$3
17 .el .ne 3
18 .IP "\\$1" \\$2
19 ..
20 .TH "AMANDA.CONF" 5 "" "" ""
21 .SH NAME
22 amanda.conf \- Main configuration file for AMANDA, the Advanced Maryland Automatic Network Disk Archiver
23 .SH "DESCRIPTION"
24
25 .PP
26 \fIamanda\&.conf\fR is the main configuration file for \fBAMANDA\fR\&. This manpage lists the relevant sections and parameters of this file for quick reference\&.
27
28 .SH "PARAMETERS"
29
30 .PP
31 There are a number of configuration parameters that control the behavior of the \fBAMANDA\fR programs\&. All have default values, so you need not specify the parameter in \fBamanda\&.conf\fR if the default is suitable\&.
32
33 .PP
34 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\&.
35
36 .PP
37 Keywords are case insensitive, i\&.e\&. \fBmailto\fR and \fBMailTo\fR are treated the same\&.
38
39 .PP
40 Integer arguments may have one of the following (case insensitive) suffixes, some of which have a multiplier effect:
41
42 .SS "POSSIBLE SUFFIXES"
43
44 .TP
45 \fBb byte bytes\fR
46 Some number of bytes\&.
47
48 .TP
49 \fBbps\fR
50 Some number of bytes per second\&.
51
52 .TP
53 \fBk kb kbyte kbytes kilobyte kilobytes\fR
54 Some number of kilobytes (bytes*1024)\&.
55
56 .TP
57 \fBkps kbps\fR
58 Some number of kilobytes per second (bytes*1024)\&.
59
60 .TP
61 \fBm mb meg mbyte mbytes megabyte megabytes\fR
62 Some number of megabytes (bytes*1024*1024)\&.
63
64 .TP
65 \fBmps mbps\fR
66 Some number of megabytes per second (bytes*1024*1024)\&.
67
68 .TP
69 \fBg gb gbyte gbytes gigabyte gigabytes\fR
70 Some number of gigabytes (bytes*1024*1024*1024)\&.
71
72 .TP
73 \fBtape tapes\fR
74 Some number of tapes\&.
75
76 .TP
77 \fBday days\fR
78 Some number of days\&.
79
80 .TP
81 \fBweek weeks\fR
82 Some number of weeks (days*7)\&.
83
84  .RS .Sh "Note" The value \fBinf\fR may be used in most places where an integer is expected to mean an infinite amount\&. Boolean arguments may have any of the values \fBy\fR, \fByes\fR, \fBt\fR, \fBtrue\fR or \fBon\fR to indicate a true state, or \fBn\fR, \fBno\fR, \fBf\fR, \fBfalse\fR or \fBoff\fR to indicate a false state\&. If no argument is given, \fBtrue\fR is assumed\&. .RE 
85
86 .SS "PARAMETERS"
87
88 .TP
89 \fBorg\fR \fB string\fR
90 Default: \fBdaily\fR\&. A descriptive name for the configuration\&. This string appears in the Subject line of mail reports\&. Each \fBAMANDA\fR configuration should have a different string to keep mail reports distinct\&.
91
92 .TP
93 \fBmailto\fR \fB string\fR
94 Default: \fBoperators\fR\&. A space separated list of recipients for mail reports\&.
95
96 .TP
97 \fBdumpcycle\fR \fB int\fR
98 Default: \fB10 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\&.
99
100  .RS .Sh "Note" This parameter may also be set in a specific \fBdumptype\fR (see below)\&. This value sets the default for all \fBdumptype\fRs so must appear in \fBamanda\&.conf\fR before any \fBdumptype\fRs are defined\&. .RE 
101
102 .TP
103 \fBrunspercycle\fR \fB int\fR
104 Default: \fBsame as dumpcycle\fR\&. The number of amdump runs in \fBdumpcycle\fR days\&. A value of 0 means the same value as \fBdumpcycle\fR\&. A value of \-1 means guess the number of runs from the \fBtapelist\fR file, which is the number of tapes used in the last \fBdumpcycle\fR days / \fBruntapes\fR\&.
105
106 .TP
107 \fBtapecycle\fR \fB int\fR
108 Default: \fB15 tapes\fR\&. Typically tapes are used by \fBAMANDA\fR in an ordered rotation\&. The \fBtapecycle\fR 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 \fBdumpcycle\fR parameter)\&.
109
110 This is calculated by multiplying the number of \fBamdump\fR runs per dump cycle (\fBrunspercycle\fR parameter) times the number of tapes used per run (\fBruntapes\fR parameter)\&. Typically two to four times this calculated number of tapes are in rotation\&. While \fBAMANDA\fR is always willing to use a new tape in its rotation, it refuses to reuse a tape until at least '\fBtapecycle\fR \-1' number of other tapes have been used\&.
111
112 It is considered good administrative practice to set the \fBtapecycle\fR 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\&.
113
114 .TP
115 \fBdumpuser\fR \fB string\fR
116 Default: \fBamanda\fR\&. The login name \fBAMANDA\fR uses to run the backups\&. The backup client hosts must allow access from the tape server host as this user via \&.rhosts or \&.amandahosts, depending on how the \fBAMANDA\fR software was built\&.
117
118 .TP
119 \fBprinter\fR string
120 Printer to use when doing tape labels\&. See the \fBlbl\-templ\fR  \fBtapetype\fR option\&.
121
122 .TP
123 \fBtapedev\fR string
124 Default: \fI/dev/nst0\fR\&. The path name of the non\-rewinding tape device\&. Non\-rewinding tape device names often have an 'n' in the name, e\&.g\&. \fI/dev/rmt/0mn\fR, however this is operating system specific and you should consult that documentation for detailed naming information\&.
125
126 If a tape changer is configured (see the \fBtpchanger\fR option), this option might not be used\&.
127
128 If the \fBnull\fR output driver is selected (see the section OUTPUT DRIVERS in the \fBamanda\fR(8) manpage for more information), programs such as \fBamdump\fR will run normally but all images will be thrown away\&. This should only be used for debugging and testing, and probably only with the \fBrecord\fR option set to \fBno\fR\&.
129
130 .TP
131 \fBrawtapedev\fR string
132 Default: \fI/dev/null\fR\&. The path name of the raw tape device\&. This is only used if \fBAMANDA\fR is compiled for Linux machines with floppy tapes and is needed for QIC volume table operations\&.
133
134 .TP
135 \fBtpchanger\fR string
136 Default: \fBnone\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\&.
137
138 If a tape changer is configured, choose one of the changer scripts (e\&.g\&. \fBchg\-scsi\fR) and enter that here\&.
139
140 .TP
141 \fBchangerdev\fR string
142 Default: \fI/dev/null\fR\&. A tape changer configuration parameter\&. Usage depends on the particular changer defined with the \fBtpchanger\fR option\&.
143
144 .TP
145 \fBchangerfile\fR string
146 Default: \fI/usr/adm/amanda/log/changer\-status\fR\&. A tape changer configuration parameter\&. Usage depends on the particular changer defined with the \fBtpchanger\fR option\&.
147
148 .TP
149 \fBruntapes\fR int
150 Default: 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\&.
151
152 If a tape changer is configured, this may be set larger than one to let \fBAMANDA\fR write to more than one tape\&.
153
154 Note that this is an upper bound on the number of tapes, and \fBAMANDA\fR may use less\&.
155
156 Also note that as of this release, \fBAMANDA\fR does not support true tape overflow\&. When it reaches the end of one tape, the backup image \fBAMANDA\fR was processing starts over again on the next tape\&.
157
158 .TP
159 \fBmaxdumpsize\fR int
160 Default: \fBruntapes\fR*\fBtape_length\fR\&. Maximum number of bytes the planner will schedule for a run\&.
161
162 .TP
163 \fBtaperalgo\fR [first|firstfit|largest|largestfit|smallest|last]
164 Default: \fBfirst\fR\&. The algorithm used to choose which dump image to send to the taper\&.
165
166 .RS
167
168 .TP
169 \fBfirst\fR
170 First in, first out\&.
171
172 .TP
173 \fBfirstfit\fR
174 The first dump image that will fit on the current tape\&.
175
176 .TP
177 \fBlargest\fR
178 The largest dump image\&.
179
180 .TP
181 \fBlargestfit\fR
182 The largest dump image that will fit on the current tape\&.
183
184 .TP
185 \fBsmallest\fR
186 The smallest dump image\&.
187
188 .TP
189 \fBlast\fR
190 Last in, first out\&.
191
192 .RE
193 .IP
194
195 .TP
196 \fBlabelstr\fR \fB string\fR
197 Default: \fB\&.*\fR\&. The tape label constraint regular expression\&. All tape labels generated (see \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\&.
198
199 .TP
200 \fBtapetype\fR \fB string\fR
201 Default: \fBEXABYTE\fR\&. The type of tape drive associated with \fBtapedev\fR or \fBtpchanger\fR\&. This refers to one of the defined \fBtapetype\fRs in the config file (see below), which specify various tape parameters, like the \fBlength\fR, \fBfilemark\fR size, and \fBspeed\fR of the tape media and device\&.
202
203 .TP
204 \fBctimeout\fR int
205 Default: \fB30 seconds\fR\&. Maximum amount of time that \fBamcheck\fR will wait for each client host\&.
206
207 .TP
208 \fBdtimeout\fR int
209 Default: \fB1800 seconds\fR\&. Amount of idle time per disk on a given client that a \fBdumper\fR running from within \fBamdump\fR will wait before it fails with a data timeout error\&.
210
211 .TP
212 \fBetimeout\fR int
213 Default: \fB300 seconds\fR\&. Amount of time per disk on a given client that the \fBplanner\fR step of \fBamdump\fR will wait to get the dump size estimates\&. For instance, with the default of 300 seconds and four disks on client A, \fBplanner\fR 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\&.
214
215 .TP
216 \fBnetusage\fR int
217 Default: \fB300 Kbps\fR\&. The maximum network bandwidth allocated to \fBAMANDA\fR, in Kbytes per second\&. See also the \fBinterface\fR section\&.
218
219 .TP
220 \fBinparallel\fR int
221 Default: 10\&. The maximum number of backups that \fBAMANDA\fR will attempt to run in parallel\&. \fBAMANDA\fR 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\&.
222
223 .TP
224 \fBdisplayunit\fR "k|m|g|t"
225 Default: "k"\&. The unit used to print many numbers, k=kilo, m=mega, g=giga, t=tera\&.
226
227 .TP
228 \fBdumporder\fR string
229 Default: \fBtttTTTTTTT\fR\&. The priority order of each dumper:
230
231 .RS
232 .TP 3
233 \(bu
234 s: smallest size
235 .TP
236 \(bu
237 S: largest size
238 .TP
239 \(bu
240 t: smallest time
241 .TP
242 \(bu
243 T: largest time
244 .TP
245 \(bu
246 b: smallest bandwidth
247 .TP
248 \(bu
249 B: largest bandwidth
250 .LP
251 .RE
252 .IP
253
254 .TP
255 \fBmaxdumps\fR int
256 Default: 1\&. The maximum number of backups from a single host that \fBAMANDA\fR will attempt to run in parallel\&. See also the \fBinparallel\fR option\&.
257
258 Note that this parameter may also be set in a specific \fBdumptype\fR (see below)\&. This value sets the default for all \fBdumptype\fRs so must appear in \fBamanda\&.conf\fR before any \fBdumptype\fRs are defined\&.
259
260 .TP
261 \fBbumpsize\fR int
262 Default: \fB10 Mbytes\fR\&. The minimum savings required to trigger an automatic bump from one incremental level to the next, expressed as size\&. If \fBAMANDA\fR 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 \fBbumppercent\fR is set to 0\&.
263
264 The global setting of this parameter can be overwritten inside of a dumptype\-definition\&.
265
266 See also the options \fBbumppercent\fR, \fBbumpmult\fR and \fBbumpdays\fR\&.
267
268 .TP
269 \fBbumppercent\fR int
270 Default: \fB0 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 \fBAMANDA\fR determines that the next higher backup level will be this much smaller than the current level, it will do the next level\&.
271
272 If this parameter is set to 0, the value of the parameter \fBbumpsize\fR is used to trigger bumping\&.
273
274 The global setting of this parameter can be overwritten inside of a dumptype\-definition\&.
275
276 See also the options \fBbumpsize\fR, \fBbumpmult\fR and \fBbumpdays\fR\&.
277
278 .TP
279 \fBbumpmult\fR \fB float\fR
280 Default: 1\&.5\&. The bump size multiplier\&. \fBAMANDA\fR multiplies \fBbumpsize\fR 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 \fBbumpsize\fR and \fBbumpmult\fR 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\&.
281
282 The global setting of this parameter can be overwritten inside of a dumptype\-definition\&.
283
284 .TP
285 \fBbumpdays\fR \fB int\fR
286 Default: \fB2 days\fR\&. To insure redundancy in the dumps, \fBAMANDA\fR keeps filesystems at the same incremental level for at least \fBbumpdays\fR days, even if the other bump threshold criteria are met\&.
287
288 The global setting of this parameter can be overwritten inside of a dumptype\-definition\&.
289
290 .TP
291 \fBdiskfile\fR \fB string\fR
292 Default: \fBdisklist\fR\&. The file name for the \fBdisklist\fR file holding client hosts, disks and other client dumping information\&.
293
294 .TP
295 \fBinfofile\fR \fB string\fR
296 Default: \fI/usr/adm/amanda/curinfo\fR\&. The file or directory name for the historical information database\&. If \fBAMANDA\fR 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\&.
297
298 .TP
299 \fBlogdir\fR \fB string\fR
300 Default: \fI/usr/adm/amanda\fR\&. The directory for the \fBamdump\fR and \fBlog\fR files\&.
301
302 .TP
303 \fBindexdir\fR \fB string\fR
304 Default \fI/usr/adm/amanda/index\fR\&. The directory where index files (backup image catalogues) are stored\&. Index files are only generated for filesystems whose \fBdumptype\fR has the \fBindex\fR option enabled\&.
305
306 .TP
307 \fBtapelist\fR \fB string\fR
308 Default: \fBtapelist\fR\&. The file name for the active \fBtapelist\fR file\&. \fBAMANDA\fR maintains this file with information about the active set of tapes\&.
309
310 .TP
311 \fBtapebufs\fR \fB int\fR
312 Default: 20\&. The number of buffers used by the \fBtaper\fR process run by \fBamdump\fR and \fBamflush\fR 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\&.
313
314 .TP
315 \fBreserve\fR \fB number\fR
316 Default: 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\&.
317
318 .TP
319 \fBautoflush\fR \fB bool\fR
320 Default: \fBoff\fR\&. Whether an amdump run will flush the dump already on holding disk to tape\&.
321
322 .TP
323 \fBamrecover_do_fsf\fR \fB bool\fR
324 Default: \fBoff\fR\&. Amrecover will call amrestore with the \-f flag for faster positioning of the tape\&.
325
326 .TP
327 \fBamrecover_check_label\fR \fB bool\fR
328 Default: \fBoff\fR\&. Amrecover will call amrestore with the \-l flag to check the label\&.
329
330 .TP
331 \fBamrecover_changer\fR \fB string\fR
332 Default: ''\&. Amrecover will use the changer if you use 'settape <string>' and that string is the same as the amrecover_changer setting\&.
333
334 .TP
335 \fBcolumnspec\fR \fB string\fR
336 Defines the width of columns \fBamreport\fR should use\&. \fBString\fR 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:
337
338
339 .RS
340 .TP 3
341 \(bu
342 the name of the column, which may be:
343
344 .RS
345 .TP 3
346 \(bu
347 Compress (compression ratio)
348 .TP
349 \(bu
350 Disk (client disk name)
351 .TP
352 \(bu
353 DumpRate (dump rate in KBytes/sec)
354 .TP
355 \(bu
356 DumpTime (total dump time in hours:minutes)
357 .TP
358 \(bu
359 HostName (client host name)
360 .TP
361 \(bu
362 Level (dump level)
363 .TP
364 \(bu
365 OrigKB (original image size in KBytes)
366 .TP
367 \(bu
368 OutKB (output image size in KBytes)
369 .TP
370 \(bu
371 TapeRate (tape writing rate in KBytes/sec)
372 .TP
373 \(bu
374 TapeTime (total tape time in hours:minutes)
375 .LP
376 .RE
377 .IP
378 .TP
379 \(bu
380 the amount of space to display before the column (used to get whitespace between columns)\&.
381 .TP
382 \(bu
383 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\&.
384 .LP
385 .RE
386 .IP
387 Here is an example:
388
389 .nf
390
391 columnspec "Disk=1:18,HostName=0:10,OutKB=1:7".fi
392 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\&.
393
394 .TP
395 \fBincludefile\fR \fB string\fR
396 Default: \fBnone\fR\&. The name of an \fBAMANDA\fR configuration file to include within the current file\&. Useful for sharing dumptypes, tapetypes and interface definitions among several configurations\&.
397
398 .SH "HOLDINGDISK SECTION"
399
400 .PP
401 The \fBamanda\&.conf\fR file may define one or more holding disks used as buffers to hold backup images before they are written to tape\&. The syntax is:
402 .nf
403
404 holdingdisk \fBname\fR {
405     \fBholdingdisk\-option\fR \fBholdingdisk\-value\fR
406     \&.\&.\&.
407 }.fi
408
409 .PP
410 \fBName\fR is a logical name for this holding disk\&.
411
412 .PP
413 The options and values are:
414
415 .TP
416 \fBcomment\fR \fB string\fR
417 Default: \fBnone\fR\&. A comment string describing this holding disk\&.
418
419 .TP
420 \fBdirectory\fR \fB disk\fR
421 Default: \fI/dumps/amanda\fR\&. The path to this holding area\&.
422
423 .TP
424 \fBuse\fR \fB int\fR
425 Default: \fB0 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, \fBAMANDA\fR will use all available space minus that value\&.
426
427 .TP
428 \fBchunksize\fR \fB int\fR
429 Default: \fB1 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\&.
430
431 If 0 is specified, \fBAMANDA\fR will create holding disk chunks as large as ((INT_MAX/1024)\-64) Kbytes\&.
432
433 Each holding disk chunk includes a 32 Kbyte header, so the minimum chunk size is 64 Kbytes (but that would be really silly)\&.
434
435 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 \fBAMANDA\fR 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\&.
436
437 .SH "DUMPTYPE SECTION"
438
439 .PP
440 The \fBamanda\&.conf\fR file may define multiple sets of backup options and refer to them by name from the \fBdisklist\fR 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\&.
441
442 .PP
443 A set of backup options are entered in a \fBdumptype\fR section, which looks like this:
444 .nf
445
446 define dumptype \fBname\fR {
447     \fBdumptype\-option\fR \fBdumptype\-value\fR
448     \&.\&.\&.
449 }
450 .fi
451
452 .PP
453 \fBName\fR is the name of this set of backup options\&. It is referenced from the \fBdisklist\fR file\&.
454
455 .PP
456 Some of the options in a \fBdumptype\fR section are the same as those in the main part of \fBamanda\&.conf\fR\&. The main option value is used to set the default for all \fBdumptype\fR sections\&. For instance, setting \fBdumpcycle\fR to 50 in the main part of the config file causes all following \fBdumptype\fR 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 \fBdumptype\fRs are defined\&.
457
458 .PP
459 The dumptype options and values are:
460
461 .TP
462 \fBauth\fR \fB string\fR
463 Default: \fBbsd\fR\&. Type of authorization to perform between tape server and backup client hosts\&. May be \fBkrb4\fR to use Kerberos\-IV authorization\&.
464
465 .TP
466 \fBbumpsize\fR int
467 Default: \fB10 Mbytes\fR\&. The minimum savings required to trigger an automatic bump from one incremental level to the next, expressed as size\&. If \fBAMANDA\fR 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 \fBbumppercent\fR is set to 0\&.
468
469 See also the options \fBbumppercent\fR, \fBbumpmult\fR and \fBbumpdays\fR\&.
470
471 .TP
472 \fBbumppercent\fR int
473 Default: \fB0 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 \fBAMANDA\fR determines that the next higher backup level will be this much smaller than the current level, it will do the next level\&.
474
475 If this parameter is set to 0, the value of the parameter \fBbumpsize\fR is used to trigger bumping\&.
476
477 See also the options \fBbumpsize\fR, \fBbumpmult\fR and \fBbumpdays\fR\&.
478
479 .TP
480 \fBbumpmult\fR \fB float\fR
481 Default: 1\&.5\&. The bump size multiplier\&. \fBAMANDA\fR multiplies \fBbumpsize\fR 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 \fBbumpsize\fR and \fBbumpmult\fR 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\&.
482
483 .TP
484 \fBbumpdays\fR \fB int\fR
485 Default: \fB2 days\fR\&. To insure redundancy in the dumps, \fBAMANDA\fR keeps filesystems at the same incremental level for at least \fBbumpdays\fR days, even if the other bump threshold criteria are met\&.
486
487 .TP
488 \fBcomment\fR \fB string\fR
489 Default: \fBnone\fR\&. A comment string describing this set of backup options\&.
490
491 .TP
492 \fBcomprate\fR \fBfloat\fR [, \fBfloat\fR ]
493 Default: 0\&.50, 0\&.50\&. The expected full and incremental compression factor for dumps\&. It is only used if \fBAMANDA\fR 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\&.
494
495 .TP
496 \fBcompress [client|server]\fR \fB string\fR
497 Default: \fBclient fast\fR\&. If \fBAMANDA\fR 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\&.
498
499 For either type of compression, \fBAMANDA\fR also allows the selection of two styles of compression\&. \fBBest\fR is the best compression available, often at the expense of CPU overhead\&. \fBFast\fR is often not as good a compression as \fBbest\fR, but usually less CPU overhead\&.
500
501 So the \fBcompress\fR options line may be one of:
502
503
504 .RS
505 .TP 3
506 \(bu
507 compress none
508 .TP
509 \(bu
510 compress [client] fast
511 .TP
512 \(bu
513 compress [client] best
514 .TP
515 \(bu
516 compress server fast
517 .TP
518 \(bu
519 compress server best
520 .LP
521 .RE
522 .IP
523 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 \fBmt\fR option), \fBAMANDA\fR (software) compression should be disabled\&.
524
525 .TP
526 \fBdumpcycle\fR \fB int\fR
527 Default: \fB10 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 often\&. Setting this to zero tries to do a full backup each run\&.
528
529 .TP
530 \fBestimate\fR \fBclient|calcsize|server\fR
531 Default: \fBclient\fR\&. Determine the way \fBAMANDA\fR does it's estimate\&.
532
533 .RS
534 .TP 3
535 \(bu
536 client:
537
538 Use the same program as the dumping program, this is the most accurate way to do estimates, but it can take a long time\&.
539 .TP
540 \(bu
541 calcsize:
542
543 Use a faster program to do estimates, but the result is less accurate\&.
544 .TP
545 \(bu
546 server:
547
548 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\&.
549 .LP
550 .RE
551 .IP
552
553 .TP
554 \fBexclude\fR [ \fBlist|file\fR ][[optional][ \fBappend\fR ][ \fB string\fR ]+]
555 Default: \fBfile\fR\&. There are two exclude lists, \fBexclude file\fR and \fBexclude list\&.\fR With \fBexclude file\fR , the \fBstring\fR is a \fBGNU\-tar\fR exclude expression\&. With \fBexclude list\fR , the \fBstring\fR is a file name on the client containing \fBGNU\-tar\fR exclude expressions\&.
556
557 All exclude expressions are concatenated in one file and passed to \fBGNU\-tar\fR as an \fB\-\-exclude\-from\fR argument\&.
558
559 With the \fBappend\fR keyword, the \fBstring\fR is appended to the current list, without it, the \fBstring\fR overwrites the list\&.
560
561 If \fBoptional\fR is specified for \fBexclude list\fR, then amcheck will not complain if the file doesn't exist or is not readable\&.
562
563 For \fBexclude list\fR, if the file name is relative, the disk name being backed up is prepended\&. So if this is entered:
564
565 .nf
566
567     exclude list "\&.amanda\&.excludes"
568 .fi
569 the actual file used would be \fI/var/\&.amanda\&.excludes\fR for a backup of \fI/var\fR, \fI/usr/local/\&.amanda\&.excludes\fR for a backup of \fI/usr/local\fR, and so on\&.
570
571 .TP
572 \fBholdingdisk\fR \fB boolean\fR
573 Default: \fByes\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 \fBAMANDA\fR is backing up, that file system should refer to a dumptype with \fBholdingdisk\fR set to \fBno\fR to avoid backing up the holding disk into itself\&.
574
575 .TP
576 \fBignore\fR \fB boolean\fR
577 Default: \fBno\fR\&. Whether disks associated with this backup type should be backed up or not\&. This option is useful when the \fBdisklist\fR file is shared among several configurations, some of which should not back up all the listed file systems\&.
578
579 .TP
580 \fBinclude\fR [ \fBlist|file\fR ][[optional][ \fBappend\fR ][ \fB string\fR ]+]
581 Default: \fBfile\fR "\&."\&. There are two include lists, \fBinclude file\fR and \fBinclude list\&.\fR With \fBinclude file\fR , the \fBstring\fR is a glob expression\&. With \fBinclude list\fR , the \fBstring\fR is a file name on the client containing glob expressions\&.
582
583 All include expressions are expanded by \fBAMANDA\fR, concatenated in one file and passed to \fBGNU\-tar\fR as a \fB\-\-files\-from\fR argument\&. They must start with "\&./" and contain no other "/"\&.
584
585 With the \fBappend\fR keyword, the \fBstring\fR is appended to the current list, without it, the \fBstring\fR overwrites the list\&.
586
587 If \fBoptional\fR is specified for \fBinclude list,\fR then amcheck will not complain if the file doesn't exist or is not readable\&.
588
589 For \fBinclude list\fR, If the file name is relative, the disk name being backed up is prepended\&.
590
591 .TP
592 \fBindex\fR \fB boolean\fR
593 Default: \fBno\fR\&. Whether an index (catalogue) of the backup should be generated and saved in \fBindexdir\fR\&. These catalogues are used by the \fBamrecover\fR utility\&.
594
595 .TP
596 \fBkencrypt\fR \fB boolean\fR
597 Default: \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\&.
598
599 .TP
600 \fBmaxdumps\fR \fB int\fR
601 Default: 1\&. The maximum number of backups from a single host that \fBAMANDA\fR will attempt to run in parallel\&. See also the main section parameter \fBinparallel\fR\&.
602
603 .TP
604 \fBmaxpromoteday\fR \fB int\fR
605 Default: 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\&.
606
607 .TP
608 \fBpriority\fR \fB string\fR
609 Default: \fBmedium\fR\&. When there is no tape to write to, \fBAMANDA\fR 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\&.
610
611 .TP
612 \fBprogram\fR \fB string\fR
613 Default: \fBDUMP\fR\&. The type of backup to perform\&. Valid values are \fBDUMP\fR for the native operating system backup program, and \fBGNUTAR\fR to use \fBGNU\-tar\fR or to do PC backups using Samba\&.
614
615 .TP
616 \fBrecord\fR \fB boolean\fR
617 Default: \fByes\fR\&. Whether to ask the backup program to update its database (e\&.g\&. \fI/etc/dumpdates\fR for DUMP or \fI/usr/local/var/amanda/gnutar\-lists\fR for GNUTAR) of time stamps\&. This is normally enabled for daily backups and turned off for periodic archival runs\&.
618
619 .TP
620 \fBskip\-full\fR \fB boolean\fR
621 Default: \fBno\fR\&. If \fBtrue\fR and \fBplanner\fR 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 \fBAMANDA\fR only schedules level 1 incrementals in this configuration; this is probably a bug\&.
622
623 .TP
624 \fBskip\-incr\fR \fB boolean\fR
625 Default: \fBno\fR\&. If \fBtrue\fR and \fBplanner\fR has scheduled an incremental backup, these disks will be skipped\&.
626
627 .TP
628 \fBstarttime\fR \fB int\fR
629 Default: \fBnone\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 1830\&.
630
631 .TP
632 \fBstrategy\fR \fB string\fR
633 Default: \fBstandard\fR\&. Strategy to use when planning what level of backup to run next\&. Values are:
634
635 .RS
636
637 .TP
638 \fBstandard\fR
639 The standard \fBAMANDA\fR schedule\&.
640
641 .TP
642 \fBnofull\fR
643 Never do full backups, only level 1 incrementals\&.
644
645 .TP
646 \fBnoinc\fR
647 Never do incremental backups, only full dumps\&.
648
649 .TP
650 \fBskip\fR
651 Never do backups (useful when sharing the \fBdisklist\fR file)\&.
652
653 .TP
654 \fBincronly\fR
655 Only do incremental dumps\&. \fBamadmin force\fR should be used to tell \fBAMANDA\fR 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 \fBAMANDA\fR will perform full backups with this configuration, which is probably a bug\&.
656
657 .RE
658 .IP
659
660 .PP
661 The following \fBdumptype\fR entries are predefined by \fBAMANDA\fR:
662 .nf
663
664 define dumptype no\-compress {
665     compress none
666 }
667 define dumptype compress\-fast {
668     compress client fast
669 }
670 define dumptype compress\-best {
671     compress client best
672 }
673 define dumptype srvcompress {
674     compress server fast
675 }
676 define dumptype bsd\-auth {
677     auth bsd
678 }
679 define dumptype krb4\-auth {
680     auth krb4
681 }
682 define dumptype no\-record {
683     record no
684 }
685 define dumptype no\-hold {
686     holdingdisk no
687 }
688 define dumptype no\-full {
689     skip\-full yes
690
691 .fi
692
693 .PP
694 In addition to options in a \fBdumptype\fR section, one or more other \fBdumptype\fR names may be entered, which make this \fBdumptype\fR inherit options from other previously defined \fBdumptype\fRs\&. For instance, two sections might be the same except for the \fBrecord\fR option:
695 .nf
696
697 define dumptype normal {
698     comment "Normal backup, no compression, do indexing"
699     no\-compress
700     index yes
701     maxdumps 2
702 }
703 define dumptype testing {
704     comment "Test backup, no compression, do indexing, no recording"
705     normal
706     record no
707 }
708 .fi
709
710 .PP
711 \fBAMANDA\fR provides a \fBdumptype\fR named \fBglobal\fR in the sample \fBamanda\&.conf\fR file that all \fBdumptype\fRs should reference\&. This provides an easy place to make changes that will affect every \fBdumptype\fR\&.
712
713 .SH "TAPETYPE SECTION"
714
715 .PP
716 The \fBamanda\&.conf\fR file may define multiple types of tape media and devices\&. The information is entered in a \fBtapetype\fR section, which looks like this in the config file:
717 .nf
718
719 define tapetype \fBname\fR {
720     \fBtapetype\-option\fR \fBtapetype\-value\fR
721     \&.\&.\&.
722 }
723 .fi
724
725 .PP
726 \fBName\fR is the name of this type of tape medium/device\&. It is referenced from the \fBtapetype\fR option in the main part of the config file\&.
727
728 .PP
729 The tapetype options and values are:
730
731 .TP
732 \fBcomment\fR \fB string\fR
733 Default: \fBnone\fR\&. A comment string describing this set of tape information\&.
734
735 .TP
736 \fBfilemark\fR \fB int\fR
737 Default: \fB1000 bytes\fR\&. How large a file mark (tape mark) is, measured in bytes\&. If the size is only known in some linear measurement (e\&.g\&. inches), convert it to bytes using the device density\&.
738
739 .TP
740 \fBlength\fR \fB int\fR
741 Default: \fB2000 kbytes\fR\&. How much data will fit on a tape\&.
742
743 Note that this value is only used by \fBAMANDA\fR to schedule which backups will be run\&. Once the backups start, \fBAMANDA\fR will continue to write to a tape until it gets an error, regardless of what value is entered for \fBlength\fR (but see the section OUTPUT DRIVERS in the \fBamanda\fR(8) manpage for exceptions)\&.
744
745 .TP
746 \fBblocksize\fR \fB int\fR
747 Default: \fB32\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 \fBAMANDA\fR was compiled with the configure option \-\-with\-maxtapeblocksize=N set with "N" greater than 32 during \fBconfigure\fR\&.
748
749 .TP
750 \fBfile\-pad\fR \fB boolean\fR
751 Default: \fBtrue\fR\&. If true, every record, including the last one in the file, will have the same length\&. This matches the way \fBAMANDA\fR wrote tapes prior to the availability of this parameter\&. It may also be useful on devices that only support a fixed blocksize\&.
752
753 Note that the last record on the tape probably includes trailing null byte padding, which will be passed back to \fBgzip\fR, \fBcompress\fR or the restore program\&. Most programs just ignore this (although possibly with a warning)\&.
754
755 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\&.
756
757 .TP
758 \fBspeed\fR \fB int\fR
759 Default: \fB200 bps\fR\&. How fast the drive will accept data, in bytes per second\&. This parameter is NOT currently used by \fBAMANDA\fR\&.
760
761 .TP
762 \fBlbl\-templ\fR \fB string\fR
763 A PostScript template file used by \fBamreport\fR to generate labels\&. Several sample files are provided with the \fBAMANDA\fR sources in the \fBexample\fR directory\&. See the \fBamreport\fR(8) man page for more information\&.
764
765 .PP
766 In addition to options, another \fBtapetype\fR name may be entered, which makes this \fBtapetype\fR inherit options from another \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:
767 .nf
768
769 define tapetype DLT4000\-III {
770     comment "DLT4000 tape drives with Compact\-III tapes"
771     length 12500 mbytes         # 10 Gig tapes with some compression
772     filemark 2000 kbytes
773     speed 1536 kps
774 }
775 define tapetype DLT4000\-IV {
776     DLT4000\-III
777     comment "DLT4000 tape drives with Compact\-IV tapes"
778     length 25000 mbytes         # 20 Gig tapes with some compression
779 }
780 .fi
781
782 .SH "INTERFACE SECTION"
783
784 .PP
785 The \fBamanda\&.conf\fR file may define multiple types of network interfaces\&. The information is entered in an \fBinterface\fR section, which looks like this:
786 .nf
787
788 define interface \fBname\fR {
789     \fBinterface\-option\fR \fBinterface\-value\fR
790     \&.\&.\&.
791 }
792 .fi
793
794 .PP
795 \fBname\fR is the name of this type of network interface\&. It is referenced from the \fBdisklist\fR file\&.
796
797 .PP
798 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 \fBAMANDA\fR\&. \fBAMANDA\fR 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, \fBAMANDA\fR will use as much of the network as it can leaving throttling up to the operating system and network hardware\&.
799
800 .PP
801 The interface options and values are:
802
803 .TP
804 \fBcomment\fR \fB string\fR
805 Default: \fBnone\fR\&. A comment string describing this set of network information\&.
806
807 .TP
808 \fBuse\fR \fB int\fR
809 Default: \fB300 Kbps\fR\&. The speed of the interface in Kbytes per second\&.
810
811 .PP
812 In addition to options, another \fBinterface\fR name may be entered, which makes this \fBinterface\fR inherit options from another \fBinterface\fR\&. At the moment, this is of little use\&.
813
814 .SH "AUTHOR"
815
816 .PP
817 James da Silva, <jds@amanda\&.org>: Original text
818
819 .PP
820 Stefan G\&. Weichinger, <sgw@amanda\&.org>, maintainer of the \fBAMANDA\fR\-documentation: XML\-conversion, major update, splitting
821
822 .SH "SEE ALSO"
823
824 .PP
825  \fBamanda\fR(8),
826