Imported Upstream version 2.4.5p1
[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 -100 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 #   estimate      Determine the way AMANDA does it's estimate. 
354 #                 "client"      - Use the same program as the dumping program,
355 #                               this is the most accurate way to do estimates, 
356 #                               but it can take a long time.
357 #                 "calcsize"    - Use a faster program to do estimates, but the
358 #                               result is less accurate.
359 #                 "server"      - Use only statistics from the previous run to 
360 #                               give an estimate, 
361 #                               it takes only a few seconds but the result is not 
362 #                               accurate if your disk usage changes from day to day.
363 #                 Default: [client]
364 #   exclude     - specify files and directories to be excluded from the dump.
365 #                 Useful with gnutar only; silently ignored by dump and samba.
366 #                 Valid values are:
367 #                 "pattern"       - a shell glob pattern defining which files
368 #                                   to exclude.
369 #                                   gnutar gets --exclude="pattern"
370 #                 list "filename" - a file (on the client!) containing patterns
371 #                                   re's (1 per line) defining which files to
372 #                                   exclude.
373 #                                   gnutar gets --exclude-from="filename"
374 #                 Note that the `full pathname' of a file within its
375 #                 filesystem starts with `./', because of the way amanda runs
376 #                 gnutar: `tar -C $mountpoint -cf - --lots-of-options .' (note
377 #                 the final dot!)  Thus, if you're backing up `/usr' with a
378 #                 diskfile entry like ``host /usr gnutar-root', but you don't
379 #                 want to backup /usr/tmp, your exclude list should contain
380 #                 the pattern `./tmp', as this is relative to the `/usr' above.
381 #                 Please refer to the man-page of gnutar for more information.
382 #                 If a relative pathname is specified as the exclude list,
383 #                 it is searched from within the directory that is
384 #                 going to be backed up.
385 #                 Default: include all files
386 #   holdingdisk - should the holding disk be used for this dump.  Useful for
387 #                 dumping the holding disk itself.  Default: [holdingdisk yes]
388 #   ignore      - do not back this filesystem up.  Useful for sharing a single
389 #                 disklist in several configurations.
390 #   index       - keep an index of the files backed up.  Default: [index no]
391 #   kencrypt    - encrypt the data stream between the client and server.
392 #                 Default: [kencrypt no]
393 #   maxdumps    - max number of concurrent dumps to run on the client.
394 #                 Default: [maxdumps 1]
395 #   maxpromoteday - max number of day for a promotion, set it 0 if you don't
396 #                 want promotion, set it to 1 or 2 if your disk get
397 #                 overpromoted.
398 #                 Default: [10000]
399 #   priority    - priority level of the dump.  Valid levels are "low", "medium"
400 #                 or "high".  These are really only used when Amanda has no
401 #                 tape to write to because of some error.  In that "degraded
402 #                 mode", as many incrementals as will fit on the holding disk
403 #                 are done, higher priority first, to insure the important
404 #                 disks are at least dumped.  Default: [priority medium]
405 #   program     - specify the dump system to use.  Valid values are "DUMP" and
406 #                 "GNUTAR".  Default: [program "DUMP"].
407 #   record      - record the backup in the time-stamp-database of the backup
408 #                 program (e.g. /etc/dumpdates for DUMP or
409 #                 @GNUTAR_LISTED_INCREMENTAL_DIRX@ for GNUTAR.).
410 #                 Default: [record yes]
411 #   skip-full   - skip the disk when a level 0 is due, to allow full backups
412 #                 outside Amanda, eg when the machine is in single-user mode.
413 #   skip-incr   - skip the disk when the level 0 is NOT due.  This is used in
414 #                 archive configurations, where only full dumps are done and
415 #                 the tapes saved.
416 #   starttime   - delay the start of the dump?  Default: no delay
417 #   strategy    - set the dump strategy.  Valid strategies are currently:
418 #                 "standard" - the standard one.
419 #                 "nofull"   - do level 1 dumps every time.  This can be used,
420 #                              for example, for small root filesystems that
421 #                              only change slightly relative to a site-wide
422 #                              prototype.  Amanda then backs up just the
423 #                              changes.
424 #                 "noinc"    - do level 0 dumps every time.
425 #                              Unfortunately, this is not currently
426 #                              implemented.  Use `dumpcycle 0'
427 #                              instead.
428 #                 "skip"     - skip all dumps.  Useful for sharing a single
429 #                              disklist in several configurations.
430 #                 "incronly" - do only incremental dumps. This is similar
431 #                              to strategy 'nofull', but will increase
432 #                              the dump level as usual. Full dumps will
433 #                              only be performed when an 'amadmin force' 
434 #                              has been issued 
435 #                 Default: [strategy standard]
436 #
437 # Note that you may specify previously defined dumptypes as a shorthand way
438 # of defining parameters.
439
440 define dumptype global {
441     comment "Global definitions"
442     # This is quite useful for setting global parameters, so you don't have
443     # to type them everywhere.  All dumptype definitions in this sample file
444     # do include these definitions, either directly or indirectly.
445     # There's nothing special about the name `global'; if you create any
446     # dumptype that does not contain the word `global' or the name of any
447     # other dumptype that contains it, these definitions won't apply.
448     # Note that these definitions may be overridden in other
449     # dumptypes, if the redefinitions appear *after* the `global'
450     # dumptype name.
451     # You may want to use this for globally enabling or disabling
452     # indexing, recording, etc.  Some examples:
453     # index yes
454     # record no
455 }
456
457 define dumptype always-full {
458     global
459     comment "Full dump of this filesystem always"
460     compress none
461     priority high
462     dumpcycle 0
463 }
464
465 define dumptype root-tar {
466     global
467     program "GNUTAR"
468     comment "root partitions dumped with tar"
469     compress none
470     index
471     exclude list "/usr/local/lib/amanda/exclude.gtar"
472     priority low
473 }
474
475 define dumptype user-tar {
476     root-tar
477     comment "user partitions dumped with tar"
478     priority medium
479 }
480
481 define dumptype high-tar {
482     root-tar
483     comment "partitions dumped with tar"
484     priority high
485 }
486
487 define dumptype comp-root-tar {
488     root-tar
489     comment "Root partitions with compression"
490     compress client fast
491 }
492
493 define dumptype comp-user-tar {
494     user-tar
495     compress client fast
496 }
497
498 define dumptype holding-disk {
499     global
500     comment "The master-host holding disk itself"
501     holdingdisk no # do not use the holding disk
502     priority medium
503 }
504
505 define dumptype comp-user {
506     global
507     comment "Non-root partitions on reasonably fast machines"
508     compress client fast
509     priority medium
510 }
511
512 define dumptype nocomp-user {
513     comp-user
514     comment "Non-root partitions on slow machines"
515     compress none
516 }
517
518 define dumptype comp-root {
519     global
520     comment "Root partitions with compression"
521     compress client fast
522     priority low
523 }
524
525 define dumptype nocomp-root {
526     comp-root
527     comment "Root partitions without compression"
528     compress none
529 }
530
531 define dumptype comp-high {
532     global
533     comment "very important partitions on fast machines"
534     compress client best
535     priority high
536 }
537
538 define dumptype nocomp-high {
539     comp-high
540     comment "very important partitions on slow machines"
541     compress none
542 }
543
544 define dumptype nocomp-test {
545     global
546     comment "test dump without compression, no /etc/dumpdates recording"
547     compress none
548     record no
549     priority medium
550 }
551
552 define dumptype comp-test {
553     nocomp-test
554     comment "test dump with compression, no /etc/dumpdates recording"
555     compress client fast
556 }
557
558 # network interfaces
559 #
560 # These are referred to by the disklist file.  They define the attributes
561 # of the network interface that the remote machine is accessed through.
562 # Notes: - netusage above defines the attributes that are used when the
563 #          disklist entry doesn't specify otherwise.
564 #        - the values below are only samples.
565 #        - specifying an interface does not force the traffic to pass
566 #          through that interface.  Your OS routing tables do that.  This
567 #          is just a mechanism to stop Amanda trashing your network.
568 # Attributes are:
569 #       use             - bandwidth above which amanda won't start
570 #                         backups using this interface.  Note that if
571 #                         a single backup will take more than that,
572 #                         amanda won't try to make it run slower!
573
574 define interface local {
575     comment "a local disk"
576     use 1000 kbps
577 }
578
579 define interface le0 {
580     comment "10 Mbps ethernet"
581     use 400 kbps
582 }
583
584 # You may include other amanda configuration files, so you can share
585 # dumptypes, tapetypes and interface definitions among several
586 # configurations.
587
588 #includefile "/usr/local/amanda.conf.main"