Imported Upstream version 2.4.5
[debian/amanda] / example / amanda.conf.in
1 ###  !!! WARNING !!!  !!! WARNING !!!  !!! WARNING !!!  !!! WARNING !!!  ###
2 ###                                                                      ###
3 ###  This file is not meant to be installed "as is", and in fact, it     ###
4 ###  WILL NOT WORK!  You must go through it and make changes appropriate ###
5 ###  to your own situation.  See the documentation in this file, in the  ###
6 ###  "man amanda" man page, in the "docs" directory and at the Amanda    ###
7 ###  web page (www.amanda.org).                                          ###
8 ###                                                                      ###
9 ###  !!! WARNING !!!  !!! WARNING !!!  !!! WARNING !!!  !!! WARNING !!!  ###
10
11 #
12 # amanda.conf - sample Amanda configuration file.  This started off life as
13 #               the actual config file in use at CS.UMD.EDU.
14 #
15 # If your configuration is called, say, "csd", then this file normally goes
16 # in @CONFIG_DIR@/csd/amanda.conf.
17 #
18
19 org "@DEFAULT_CONFIG@"          # your organization name for reports
20 mailto "@CLIENT_LOGIN@"         # space separated list of operators at your site
21 dumpuser "@CLIENT_LOGIN@"       # the user to run dumps under
22
23 inparallel 4            # maximum dumpers that will run in parallel (max 63)
24                         # this maximum can be increased at compile-time,
25                         # modifying MAX_DUMPERS in server-src/driverio.h
26 dumporder "sssS"        # specify the priority order of each dumper
27                         #   s -> smallest size
28                         #   S -> biggest size
29                         #   t -> smallest time
30                         #   T -> biggest time
31                         #   b -> smallest bandwitdh
32                         #   B -> biggest bandwitdh
33                         # try "BTBTBTBTBTBT" if you are not holding
34                         # disk constrained
35
36 taperalgo first         # The algorithm used to choose which dump image to send
37                         # to the taper.
38
39                         # Possible values: [first|firstfit|largest|largestfit|smallest|last]
40                         # Default: first. 
41
42                         # first         First in - first out.
43                         # firstfit      The first dump image that will fit on the current tape.
44                         # largest       The largest dump image.
45                         # largestfit    The largest dump image that will fit on the current tape.
46                         # smallest      The smallest dump image.
47                         # last          Last in - first out.
48
49 displayunit "k"         # Possible values: "k|m|g|t"
50                         # Default: k. 
51                         # The unit used to print many numbers.
52                         # k=kilo, m=mega, g=giga, t=tera
53                         
54 netusage  600 Kbps      # maximum net bandwidth for Amanda, in KB per sec
55
56 dumpcycle 4 weeks       # the number of days in the normal dump cycle
57 runspercycle 20         # the number of amdump runs in dumpcycle days
58                         # (4 weeks * 5 amdump runs per week -- just weekdays)
59 tapecycle 25 tapes      # the number of tapes in rotation
60                         # 4 weeks (dumpcycle) times 5 tapes per week (just
61                         # the weekdays) plus a few to handle errors that
62                         # need amflush and so we do not overwrite the full
63                         # backups performed at the beginning of the previous
64                         # cycle
65
66 bumpsize 20 Mb          # minimum savings (threshold) to bump level 1 -> 2
67 bumppercent 20          # minimum savings (threshold) to bump level 1 -> 2
68 bumpdays 1              # minimum days at each level
69 bumpmult 4              # threshold = bumpsize * bumpmult^(level-1)
70
71 etimeout 300            # number of seconds per filesystem for estimates.
72 #etimeout -600          # total number of seconds for estimates.
73 # a positive number will be multiplied by the number of filesystems on
74 # each host; a negative number will be taken as an absolute total time-out.
75 # The default is 5 minutes per filesystem.
76
77 dtimeout 1800           # number of idle seconds before a dump is aborted.
78
79 ctimeout 30             # maximum number of seconds that amcheck waits
80                         # for each client host
81  
82 tapebufs 20
83 # A positive integer telling taper how many 32k buffers to allocate.
84 # WARNING! If this is set too high, taper will not be able to allocate
85 # the memory and will die.  The default is 20 (640k).
86
87
88 # Specify tape device and/or tape changer.  If you don't have a tape
89 # changer, and you don't want to use more than one tape per run of
90 # amdump, just comment out the definition of tpchanger.
91
92 # Some tape changers require tapedev to be defined; others will use
93 # their own tape device selection mechanism.  Some use a separate tape
94 # changer device (changerdev), others will simply ignore this
95 # parameter.  Some rely on a configuration file (changerfile) to
96 # obtain more information about tape devices, number of slots, etc;
97 # others just need to store some data in files, whose names will start
98 # with changerfile.  For more information about individual tape
99 # changers, read docs/TAPE.CHANGERS.
100
101 # At most one changerfile entry must be defined; select the most
102 # appropriate one for your configuration.  If you select man-changer,
103 # keep the first one; if you decide not to use a tape changer, you may
104 # comment them all out.
105
106 runtapes 1              # number of tapes to be used in a single run of amdump
107 tpchanger "chg-manual"  # the tape-changer glue script
108 tapedev "@DEFAULT_TAPE_DEVICE@" # the no-rewind tape device to be used
109 rawtapedev "@DEFAULT_RAW_TAPE_DEVICE@"  # the raw device to be used (ftape only)
110 changerfile "/usr/adm/amanda/@DEFAULT_CONFIG@/changer"
111 changerfile "/usr/adm/amanda/@DEFAULT_CONFIG@/changer-status"
112 changerfile "@CONFIG_DIR@/@DEFAULT_CONFIG@/changer.conf"
113 changerdev "@DEFAULT_CHANGER_DEVICE@"
114
115 maxdumpsize -1          # Maximum number of bytes the planner will schedule
116                         # for a run (default: runtapes * tape_length).
117 tapetype HP-DAT         # what kind of tape it is (see tapetypes below)
118 labelstr "^@DEFAULT_CONFIG@[0-9][0-9]*$"        # label constraint regex: all tapes must match
119
120 amrecover_do_fsf yes            # amrecover will call amrestore with the
121                                 # -f flag for faster positioning of the tape.
122 amrecover_check_label yes       # amrecover will call amrestore with the
123                                 # -l flag to check the label.
124 amrecover_changer "@DEFAULT_TAPE_DEVICE@"       # amrecover will use the changer if you restore
125                                 # from this device.
126                                 # It could be a string like 'changer' and
127                                 # amrecover will use your changer if you
128                                 # set your tape with 'settape changer'
129
130 # Specify holding disks.  These are used as a temporary staging area for
131 # dumps before they are written to tape and are recommended for most sites.
132 # The advantages include: tape drive is more likely to operate in streaming
133 # mode (which reduces tape and drive wear, reduces total dump time); multiple
134 # dumps can be done in parallel (which can dramatically reduce total dump time.
135 # The main disadvantage is that dumps on the holding disk need to be flushed
136 # (with amflush) to tape after an operating system crash or a tape failure.
137 # If no holding disks are specified then all dumps will be written directly
138 # to tape.  If a dump is too big to fit on the holding disk than it will be
139 # written directly to tape.  If more than one holding disk is specified then
140 # they will all be used based on activity and available space.
141
142 holdingdisk hd1 {
143     comment "main holding disk"
144     directory "/dumps/amanda"   # where the holding disk is
145     use 290 Mb          # how much space can we use on it
146                         # a non-positive value means:
147                         #        use all space but that value
148     chunksize 1Gb       # size of chunk if you want big dump to be
149                         # dumped on multiple files on holding disks
150                         #  N Kb/Mb/Gb split images in chunks of size N
151                         #             The maximum value should be
152                         #             (MAX_FILE_SIZE - 1Mb)
153                         #  0          same as INT_MAX bytes
154     }
155 #holdingdisk hd2 {
156 #    directory "/dumps2/amanda"
157 #    use 1000 Mb
158 #    }
159 #holdingdisk hd3 {
160 #    directory "/mnt/disk4"
161 #    use 1000 Mb
162 #    }
163
164
165 # If amanda cannot find a tape on which to store backups, it will run
166 # as many backups as it can to the holding disks.  In order to save
167 # space for unattended backups, by default, amanda will only perform
168 # incremental backups in this case, i.e., it will reserve 100% of the
169 # holding disk space for the so-called degraded mode backups.
170 # However, if you specify a different value for the `reserve'
171 # parameter, amanda will not degrade backups if they will fit in the
172 # non-reserved portion of the holding disk.
173
174 # reserve 30 # percent
175 # This means save at least 30% of the holding disk space for degraded
176 # mode backups.  
177
178 autoflush no #
179 # if autoflush is set to yes, then amdump will schedule all dump on
180 # holding disks to be flush to tape during the run.
181
182 # The format for a ColumnSpec is a ',' seperated list of triples.
183 # Each triple consists of
184 #   + the name of the column (as in ColumnNameStrings)
185 #   + prefix before the column
186 #   + the width of the column, if set to -1 it will be recalculated
187 #     to the maximum length of a line to print.
188 # Example:
189 #       "Disk=1:17,HostName=1:10,OutKB=1:7"
190 # or
191 #       "Disk=1:-1,HostName=1:10,OutKB=1:7"
192 #        
193 # You need only specify those colums that should be changed from
194 # the default. If nothing is specified in the configfile, the
195 # above compiled in values will be in effect, resulting in an
196 # output as it was all the time.
197 # The names of the colums are:
198 # HostName, Disk, Level, OrigKB, OutKB, Compress, DumpTime, DumpRate,
199 # TapeTime and TapeRate.
200 #                                                       ElB, 1999-02-24.
201 # columnspec "Disk=1:18,HostName=0:10,OutKB=1:7"
202
203
204 # Amanda needs a few Mb of diskspace for the log and debug files,
205 # as well as a database.  This stuff can grow large, so the conf directory
206 # isn't usually appropriate.  Some sites use /usr/local/var and some /usr/adm.
207 # Create an amanda directory under there.  You need a separate infofile and
208 # logdir for each configuration, so create subdirectories for each conf and
209 # put the files there.  Specify the locations below.
210
211 # Note that, although the keyword below is infofile, it is only so for
212 # historic reasons, since now it is supposed to be a directory (unless
213 # you have selected some database format other than the `text' default)
214 infofile "/usr/adm/amanda/@DEFAULT_CONFIG@/curinfo"     # database DIRECTORY
215 logdir   "/usr/adm/amanda/@DEFAULT_CONFIG@"             # log directory
216 indexdir "/usr/adm/amanda/@DEFAULT_CONFIG@/index"       # index directory
217 #tapelist "/usr/adm/amanda/@DEFAULT_CONFIG@/tapelist"   # list of used tapes
218 # tapelist is stored, by default, in the directory that contains amanda.conf
219
220
221 # tapetypes
222
223 # Define the type of tape you use here, and use it in "tapetype"
224 # above.  Some typical types of tapes are included here.  The tapetype
225 # tells amanda how many MB will fit on the tape, how big the filemarks
226 # are, and how fast the tape device is.
227
228 # A filemark is the amount of wasted space every time a tape section
229 # ends.  If you run `make tapetype' in tape-src, you'll get a program
230 # that generates tapetype entries, but it is slow as hell, use it only
231 # if you really must and, if you do, make sure you post the data to
232 # the amanda mailing list, so that others can use what you found out
233 # by searching the archives.
234
235 # For completeness Amanda should calculate the inter-record gaps too,
236 # but it doesn't.  For EXABYTE and DAT tapes this is ok.  Anyone using
237 # 9 tracks for amanda and need IRG calculations?  Drop me a note if
238 # so.
239
240 # If you want amanda to print postscript paper tape labels
241 # add a line after the comment in the tapetype of the form
242 #    lbl-templ "/path/to/postscript/template/label.ps"
243
244 # if you want the label to go to a printer other than the default
245 # for your system, you can also add a line above for a different
246 # printer. (i usually add that line after the dumpuser specification)
247
248 # dumpuser "operator"     # the user to run dumps under
249 # printer "mypostscript"  # printer to print paper label on
250
251 # here is an example of my definition for an EXB-8500
252
253 # define tapetype EXB-8500 {
254 # ...
255 #     lbl-templ "/usr/local/amanda/config/lbl.exabyte.ps"
256 # }
257
258
259 define tapetype QIC-60 {
260     comment "Archive Viper"
261     length 60 mbytes
262     filemark 100 kbytes         # don't know a better value
263     speed 100 kbytes            # dito
264 }
265
266 define tapetype DEC-DLT2000 {
267     comment "DEC Differential Digital Linear Tape 2000"
268     length 15000 mbytes
269     filemark 8 kbytes
270     speed 1250 kbytes
271 }
272
273 # goluboff@butch.Colorado.EDU
274 # in amanda-users (Thu Dec 26 01:55:38 MEZ 1996)
275 define tapetype DLT {
276     comment "DLT tape drives"
277     length 20000 mbytes         # 20 Gig tapes
278     filemark 2000 kbytes        # I don't know what this means
279     speed 1536 kbytes           # 1.5 Mb/s
280 }
281
282 define tapetype SURESTORE-1200E {
283     comment "HP AutoLoader"
284     length 3900 mbytes
285     filemark 100 kbytes
286     speed 500 kbytes
287 }
288
289 define tapetype EXB-8500 {
290     comment "Exabyte EXB-8500 drive on decent machine"
291     length 4200 mbytes
292     filemark 48 kbytes
293     speed 474 kbytes                    
294 }
295
296 define tapetype EXB-8200 {
297     comment "Exabyte EXB-8200 drive on decent machine"
298     length 2200 mbytes
299     filemark 2130 kbytes
300     speed 240 kbytes                    
301 }
302
303 define tapetype HP-DAT {
304     comment "DAT tape drives"
305     # data provided by Rob Browning <rlb@cs.utexas.edu>
306     length 1930 mbytes
307     filemark 111 kbytes
308     speed 468 kbytes
309 }
310
311 define tapetype DAT {
312     comment "DAT tape drives"
313     length 1000 mbytes          # these numbers are not accurate
314     filemark 100 kbytes         # but you get the idea
315     speed 100 kbytes
316 }
317
318 define tapetype MIMSY-MEGATAPE {
319     comment "Megatape (Exabyte based) drive through Emulex on Vax 8600"
320     length 2200 mbytes
321     filemark 2130 kbytes
322     speed 170 kbytes            # limited by the Emulex bus interface, ugh
323 }
324
325
326 # dumptypes
327 #
328 # These are referred to by the disklist file.  The dumptype specifies
329 # certain parameters for dumping including:
330 #   auth        - authentication scheme to use between server and client.
331 #                 Valid values are "bsd" and "krb4".  Default: [auth bsd]
332 #   comment     - just a comment string
333 #   comprate    - set default compression rate.  Should be followed by one or
334 #                 two numbers, optionally separated by a comma.  The 1st is
335 #                 the full compression rate; the 2nd is the incremental rate.
336 #                 If the second is omitted, it is assumed equal to the first.
337 #                 The numbers represent the amount of the original file the
338 #                 compressed file is expected to take up.
339 #                 Default: [comprate 0.50, 0.50]
340 #   compress    - specify compression of the backed up data.  Valid values are:
341 #                 "none"        - don't compress the dump output.
342 #                 "client best" - compress on the client using the best (and
343 #                                 probably slowest) algorithm.
344 #                 "client fast" - compress on the client using fast algorithm.
345 #                 "server best" - compress on the tape host using the best (and
346 #                                 probably slowest) algorithm.
347 #                 "server fast" - compress on the tape host using a fast
348 #                                 algorithm.  This may be useful when a fast
349 #                                 tape host is backing up slow clients.
350 #                 Default: [compress client fast]
351 #   dumpcycle   - set the number of days in the dump cycle, ie, set how often a
352 #                 full dump should be performed.  Default: from DUMPCYCLE above
353 #   exclude     - specify files and directories to be excluded from the dump.
354 #                 Useful with gnutar only; silently ignored by dump and samba.
355 #                 Valid values are:
356 #                 "pattern"       - a shell glob pattern defining which files
357 #                                   to exclude.
358 #                                   gnutar gets --exclude="pattern"
359 #                 list "filename" - a file (on the client!) containing patterns
360 #                                   re's (1 per line) defining which files to
361 #                                   exclude.
362 #                                   gnutar gets --exclude-from="filename"
363 #                 Note that the `full pathname' of a file within its
364 #                 filesystem starts with `./', because of the way amanda runs
365 #                 gnutar: `tar -C $mountpoint -cf - --lots-of-options .' (note
366 #                 the final dot!)  Thus, if you're backing up `/usr' with a
367 #                 diskfile entry like ``host /usr gnutar-root', but you don't
368 #                 want to backup /usr/tmp, your exclude list should contain
369 #                 the pattern `./tmp', as this is relative to the `/usr' above.
370 #                 Please refer to the man-page of gnutar for more information.
371 #                 If a relative pathname is specified as the exclude list,
372 #                 it is searched from within the directory that is
373 #                 going to be backed up.
374 #                 Default: include all files
375 #   holdingdisk - should the holding disk be used for this dump.  Useful for
376 #                 dumping the holding disk itself.  Default: [holdingdisk yes]
377 #   ignore      - do not back this filesystem up.  Useful for sharing a single
378 #                 disklist in several configurations.
379 #   index       - keep an index of the files backed up.  Default: [index no]
380 #   kencrypt    - encrypt the data stream between the client and server.
381 #                 Default: [kencrypt no]
382 #   maxdumps    - max number of concurrent dumps to run on the client.
383 #                 Default: [maxdumps 1]
384 #   maxpromoteday - max number of day for a promotion, set it 0 if you don't
385 #                 want promotion, set it to 1 or 2 if your disk get
386 #                 overpromoted.
387 #                 Default: [10000]
388 #   priority    - priority level of the dump.  Valid levels are "low", "medium"
389 #                 or "high".  These are really only used when Amanda has no
390 #                 tape to write to because of some error.  In that "degraded
391 #                 mode", as many incrementals as will fit on the holding disk
392 #                 are done, higher priority first, to insure the important
393 #                 disks are at least dumped.  Default: [priority medium]
394 #   program     - specify the dump system to use.  Valid values are "DUMP" and
395 #                 "GNUTAR".  Default: [program "DUMP"].
396 #   record      - record the backup in the time-stamp-database of the backup
397 #                 program (e.g. /etc/dumpdates for DUMP or
398 #                 @GNUTAR_LISTED_INCREMENTAL_DIRX@ for GNUTAR.).
399 #                 Default: [record yes]
400 #   skip-full   - skip the disk when a level 0 is due, to allow full backups
401 #                 outside Amanda, eg when the machine is in single-user mode.
402 #   skip-incr   - skip the disk when the level 0 is NOT due.  This is used in
403 #                 archive configurations, where only full dumps are done and
404 #                 the tapes saved.
405 #   starttime   - delay the start of the dump?  Default: no delay
406 #   strategy    - set the dump strategy.  Valid strategies are currently:
407 #                 "standard" - the standard one.
408 #                 "nofull"   - do level 1 dumps every time.  This can be used,
409 #                              for example, for small root filesystems that
410 #                              only change slightly relative to a site-wide
411 #                              prototype.  Amanda then backs up just the
412 #                              changes.
413 #                 "noinc"    - do level 0 dumps every time.
414 #                              Unfortunately, this is not currently
415 #                              implemented.  Use `dumpcycle 0'
416 #                              instead.
417 #                 "skip"     - skip all dumps.  Useful for sharing a single
418 #                              disklist in several configurations.
419 #                 "incronly" - do only incremental dumps. This is similar
420 #                              to strategy 'nofull', but will increase
421 #                              the dump level as usual. Full dumps will
422 #                              only be performed when an 'amadmin force' 
423 #                              has been issued 
424 #                 Default: [strategy standard]
425 #
426 # Note that you may specify previously defined dumptypes as a shorthand way
427 # of defining parameters.
428
429 define dumptype global {
430     comment "Global definitions"
431     # This is quite useful for setting global parameters, so you don't have
432     # to type them everywhere.  All dumptype definitions in this sample file
433     # do include these definitions, either directly or indirectly.
434     # There's nothing special about the name `global'; if you create any
435     # dumptype that does not contain the word `global' or the name of any
436     # other dumptype that contains it, these definitions won't apply.
437     # Note that these definitions may be overridden in other
438     # dumptypes, if the redefinitions appear *after* the `global'
439     # dumptype name.
440     # You may want to use this for globally enabling or disabling
441     # indexing, recording, etc.  Some examples:
442     # index yes
443     # record no
444 }
445
446 define dumptype always-full {
447     global
448     comment "Full dump of this filesystem always"
449     compress none
450     priority high
451     dumpcycle 0
452 }
453
454 define dumptype root-tar {
455     global
456     program "GNUTAR"
457     comment "root partitions dumped with tar"
458     compress none
459     index
460     exclude list "/usr/local/lib/amanda/exclude.gtar"
461     priority low
462 }
463
464 define dumptype user-tar {
465     root-tar
466     comment "user partitions dumped with tar"
467     priority medium
468 }
469
470 define dumptype high-tar {
471     root-tar
472     comment "partitions dumped with tar"
473     priority high
474 }
475
476 define dumptype comp-root-tar {
477     root-tar
478     comment "Root partitions with compression"
479     compress client fast
480 }
481
482 define dumptype comp-user-tar {
483     user-tar
484     compress client fast
485 }
486
487 define dumptype holding-disk {
488     global
489     comment "The master-host holding disk itself"
490     holdingdisk no # do not use the holding disk
491     priority medium
492 }
493
494 define dumptype comp-user {
495     global
496     comment "Non-root partitions on reasonably fast machines"
497     compress client fast
498     priority medium
499 }
500
501 define dumptype nocomp-user {
502     comp-user
503     comment "Non-root partitions on slow machines"
504     compress none
505 }
506
507 define dumptype comp-root {
508     global
509     comment "Root partitions with compression"
510     compress client fast
511     priority low
512 }
513
514 define dumptype nocomp-root {
515     comp-root
516     comment "Root partitions without compression"
517     compress none
518 }
519
520 define dumptype comp-high {
521     global
522     comment "very important partitions on fast machines"
523     compress client best
524     priority high
525 }
526
527 define dumptype nocomp-high {
528     comp-high
529     comment "very important partitions on slow machines"
530     compress none
531 }
532
533 define dumptype nocomp-test {
534     global
535     comment "test dump without compression, no /etc/dumpdates recording"
536     compress none
537     record no
538     priority medium
539 }
540
541 define dumptype comp-test {
542     nocomp-test
543     comment "test dump with compression, no /etc/dumpdates recording"
544     compress client fast
545 }
546
547 # network interfaces
548 #
549 # These are referred to by the disklist file.  They define the attributes
550 # of the network interface that the remote machine is accessed through.
551 # Notes: - netusage above defines the attributes that are used when the
552 #          disklist entry doesn't specify otherwise.
553 #        - the values below are only samples.
554 #        - specifying an interface does not force the traffic to pass
555 #          through that interface.  Your OS routing tables do that.  This
556 #          is just a mechanism to stop Amanda trashing your network.
557 # Attributes are:
558 #       use             - bandwidth above which amanda won't start
559 #                         backups using this interface.  Note that if
560 #                         a single backup will take more than that,
561 #                         amanda won't try to make it run slower!
562
563 define interface local {
564     comment "a local disk"
565     use 1000 kbps
566 }
567
568 define interface le0 {
569     comment "10 Mbps ethernet"
570     use 400 kbps
571 }
572
573 # You may include other amanda configuration files, so you can share
574 # dumptypes, tapetypes and interface definitions among several
575 # configurations.
576
577 #includefile "/usr/local/amanda.conf.main"