1 ### !!! WARNING !!! !!! WARNING !!! !!! WARNING !!! !!! WARNING !!! ###
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). ###
9 ### !!! WARNING !!! !!! WARNING !!! !!! WARNING !!! !!! WARNING !!! ###
12 # amanda.conf - sample Amanda configuration file. This started off life as
13 # the actual config file in use at CS.UMD.EDU.
15 # If your configuration is called, say, "csd", then this file normally goes
16 # in @CONFIG_DIR@/csd/amanda.conf.
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
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 netusage 600 Kbps # maximum net bandwidth for Amanda, in KB per sec
28 dumpcycle 4 weeks # the number of days in the normal dump cycle
29 runspercycle 20 # the number of amdump runs in dumpcycle days
30 # (4 weeks * 5 amdump runs per week -- just weekdays)
31 tapecycle 25 tapes # the number of tapes in rotation
32 # 4 weeks (dumpcycle) times 5 tapes per week (just
33 # the weekdays) plus a few to handle errors that
34 # need amflush and so we do not overwrite the full
35 # backups performed at the beginning of the previous
38 # WARNING: don't use `inf' for tapecycle, it's broken!
41 bumpsize 20 Mb # minimum savings (threshold) to bump level 1 -> 2
42 bumpdays 1 # minimum days at each level
43 bumpmult 4 # threshold = bumpsize * bumpmult^(level-1)
45 etimeout 300 # number of seconds per filesystem for estimates.
46 #etimeout -600 # total number of seconds for estimates.
47 # a positive number will be multiplied by the number of filesystems on
48 # each host; a negative number will be taken as an absolute total time-out.
49 # The default is 5 minutes per filesystem.
51 dtimeout 1800 # number of idle seconds before a dump is aborted.
53 ctimeout 30 # maximum number of seconds that amcheck waits
54 # for each client host
57 # A positive integer telling taper how many 32k buffers to allocate.
58 # WARNING! If this is set too high, taper will not be able to allocate
59 # the memory and will die. The default is 20 (640k).
62 # Specify tape device and/or tape changer. If you don't have a tape
63 # changer, and you don't want to use more than one tape per run of
64 # amdump, just comment out the definition of tpchanger.
66 # Some tape changers require tapedev to be defined; others will use
67 # their own tape device selection mechanism. Some use a separate tape
68 # changer device (changerdev), others will simply ignore this
69 # parameter. Some rely on a configuration file (changerfile) to
70 # obtain more information about tape devices, number of slots, etc;
71 # others just need to store some data in files, whose names will start
72 # with changerfile. For more information about individual tape
73 # changers, read docs/TAPE.CHANGERS.
75 # At most one changerfile entry must be defined; select the most
76 # appropriate one for your configuration. If you select man-changer,
77 # keep the first one; if you decide not to use a tape changer, you may
78 # comment them all out.
80 runtapes 1 # number of tapes to be used in a single run of amdump
81 tpchanger "chg-scsi" # the tape-changer glue script
82 tapedev "0" # the no-rewind tape device to be used
83 changerfile "@CONFIG_DIR@/@DEFAULT_CONFIG@/chg-scsi.conf"
85 tapetype HP-DAT # what kind of tape it is (see tapetypes below)
86 labelstr "^@DEFAULT_CONFIG@[0-9][0-9]*$" # label constraint regex: all tapes must match
88 # Specify holding disks. These are used as a temporary staging area for
89 # dumps before they are written to tape and are recommended for most sites.
90 # The advantages include: tape drive is more likely to operate in streaming
91 # mode (which reduces tape and drive wear, reduces total dump time); multiple
92 # dumps can be done in parallel (which can dramatically reduce total dump time.
93 # The main disadvantage is that dumps on the holding disk need to be flushed
94 # (with amflush) to tape after an operating system crash or a tape failure.
95 # If no holding disks are specified then all dumps will be written directly
96 # to tape. If a dump is too big to fit on the holding disk than it will be
97 # written directly to tape. If more than one holding disk is specified then
98 # they will all be used based on activity and available space.
101 comment "main holding disk"
102 directory "/dumps/amanda" # where the holding disk is
103 use 290 Mb # how much space can we use on it
104 # a non-positive value means:
105 # use all space but that value
106 chunksize 1Gb # size of chunk if you want big dump to be
107 # dumped on multiple files on holding disks
108 # N Kb/Mb/Gb split images in chunks of size N
109 # The maximum value should be
110 # (MAX_FILE_SIZE - 1Mb)
111 # 0 same as INT_MAX bytes
114 # directory "/dumps2/amanda"
118 # directory "/mnt/disk4"
123 # If amanda cannot find a tape on which to store backups, it will run
124 # as many backups as it can to the holding disks. In order to save
125 # space for unattended backups, by default, amanda will only perform
126 # incremental backups in this case, i.e., it will reserve 100% of the
127 # holding disk space for the so-called degraded mode backups.
128 # However, if you specify a different value for the `reserve'
129 # parameter, amanda will not degrade backups if they will fit in the
130 # non-reserved portion of the holding disk.
132 # reserve 30 # percent
133 # This means save at least 30% of the holding disk space for degraded
136 # The format for a ColumnSpec is a ',' seperated list of triples.
137 # Each triple consists of
138 # + the name of the column (as in ColumnNameStrings)
139 # + prefix before the column
140 # + the width of the column, if set to -1 it will be recalculated
141 # to the maximum length of a line to print.
143 # "Disk=1:17,HostName=1:10,OutKB=1:7"
145 # "Disk=1:-1,HostName=1:10,OutKB=1:7"
147 # You need only specify those colums that should be changed from
148 # the default. If nothing is specified in the configfile, the
149 # above compiled in values will be in effect, resulting in an
150 # output as it was all the time.
151 # The names of the colums are:
152 # HostName, Disk, Level, OrigKB, OutKB, Compress, DumpTime, DumpRate,
153 # TapeTime and TapeRate.
155 # columnspec "Disk=1:18,HostName=0:10,OutKB=1:7"
158 # Amanda needs a few Mb of diskspace for the log and debug files,
159 # as well as a database. This stuff can grow large, so the conf directory
160 # isn't usually appropriate. Some sites use /usr/local/var and some /usr/adm.
161 # Create an amanda directory under there. You need a separate infofile and
162 # logdir for each configuration, so create subdirectories for each conf and
163 # put the files there. Specify the locations below.
165 # Note that, although the keyword below is infofile, it is only so for
166 # historic reasons, since now it is supposed to be a directory (unless
167 # you have selected some database format other than the `text' default)
168 infofile "/usr/adm/amanda/@DEFAULT_CONFIG@/curinfo" # database DIRECTORY
169 logdir "/usr/adm/amanda/@DEFAULT_CONFIG@" # log directory
170 indexdir "/usr/adm/amanda/@DEFAULT_CONFIG@/index" # index directory
171 #tapelist "/usr/adm/amanda/@DEFAULT_CONFIG@/tapelist" # list of used tapes
172 # tapelist is stored, by default, in the directory that contains amanda.conf
177 # Define the type of tape you use here, and use it in "tapetype"
178 # above. Some typical types of tapes are included here. The tapetype
179 # tells amanda how many MB will fit on the tape, how big the filemarks
180 # are, and how fast the tape device is.
182 # A filemark is the amount of wasted space every time a tape section
183 # ends. If you run `make tapetype' in tape-src, you'll get a program
184 # that generates tapetype entries, but it is slow as hell, use it only
185 # if you really must and, if you do, make sure you post the data to
186 # the amanda mailing list, so that others can use what you found out
187 # by searching the archives.
189 # For completeness Amanda should calculate the inter-record gaps too,
190 # but it doesn't. For EXABYTE and DAT tapes this is ok. Anyone using
191 # 9 tracks for amanda and need IRG calculations? Drop me a note if
194 # If you want amanda to print postscript paper tape labels
195 # add a line after the comment in the tapetype of the form
196 # lbl-templ "/path/to/postscript/template/label.ps"
198 # if you want the label to go to a printer other than the default
199 # for your system, you can also add a line above for a different
200 # printer. (i usually add that line after the dumpuser specification)
202 # dumpuser "operator" # the user to run dumps under
203 # printer "mypostscript" # printer to print paper label on
205 # here is an example of my definition for an EXB-8500
207 # define tapetype EXB-8500 {
209 # lbl-templ "/usr/local/amanda/config/lbl.exabyte.ps"
213 define tapetype QIC-60 {
214 comment "Archive Viper"
216 filemark 100 kbytes # don't know a better value
217 speed 100 kbytes # dito
220 define tapetype DEC-DLT2000 {
221 comment "DEC Differential Digital Linear Tape 2000"
227 # goluboff@butch.Colorado.EDU
228 # in amanda-users (Thu Dec 26 01:55:38 MEZ 1996)
229 define tapetype DLT {
230 comment "DLT tape drives"
231 length 20000 mbytes # 20 Gig tapes
232 filemark 2000 kbytes # I don't know what this means
233 speed 1536 kbytes # 1.5 Mb/s
236 define tapetype SURESTORE-1200E {
237 comment "HP AutoLoader"
243 define tapetype EXB-8500 {
244 comment "Exabyte EXB-8500 drive on decent machine"
250 define tapetype EXB-8200 {
251 comment "Exabyte EXB-8200 drive on decent machine"
257 define tapetype HP-DAT {
258 comment "DAT tape drives"
259 # data provided by Rob Browning <rlb@cs.utexas.edu>
265 define tapetype DAT {
266 comment "DAT tape drives"
267 length 1000 mbytes # these numbers are not accurate
268 filemark 100 kbytes # but you get the idea
272 define tapetype MIMSY-MEGATAPE {
273 comment "Megatape (Exabyte based) drive through Emulex on Vax 8600"
276 speed 170 kbytes # limited by the Emulex bus interface, ugh
282 # These are referred to by the disklist file. The dumptype specifies
283 # certain parameters for dumping including:
284 # auth - authentication scheme to use between server and client.
285 # Valid values are "bsd" and "krb4". Default: [auth bsd]
286 # comment - just a comment string
287 # comprate - set default compression rate. Should be followed by one or
288 # two numbers, optionally separated by a comma. The 1st is
289 # the full compression rate; the 2nd is the incremental rate.
290 # If the second is omitted, it is assumed equal to the first.
291 # The numbers represent the amount of the original file the
292 # compressed file is expected to take up.
293 # Default: [comprate 0.50, 0.50]
294 # compress - specify compression of the backed up data. Valid values are:
295 # "none" - don't compress the dump output.
296 # "client best" - compress on the client using the best (and
297 # probably slowest) algorithm.
298 # "client fast" - compress on the client using fast algorithm.
299 # "server best" - compress on the tape host using the best (and
300 # probably slowest) algorithm.
301 # "server fast" - compress on the tape host using a fast
302 # algorithm. This may be useful when a fast
303 # tape host is backing up slow clients.
304 # Default: [compress client fast]
305 # dumpcycle - set the number of days in the dump cycle, ie, set how often a
306 # full dump should be performed. Default: from DUMPCYCLE above
307 # exclude - specify files and directories to be excluded from the dump.
308 # Useful with gnutar only; silently ignored by dump and samba.
310 # "pattern" - a shell glob pattern defining which files
312 # gnutar gets --exclude="pattern"
313 # list "filename" - a file (on the client!) containing patterns
314 # re's (1 per line) defining which files to
316 # gnutar gets --exclude-from="filename"
317 # Note that the `full pathname' of a file within its
318 # filesystem starts with `./', because of the way amanda runs
319 # gnutar: `tar -C $mountpoint -cf - --lots-of-options .' (note
320 # the final dot!) Thus, if you're backing up `/usr' with a
321 # diskfile entry like ``host /usr gnutar-root', but you don't
322 # want to backup /usr/tmp, your exclude list should contain
323 # the pattern `./tmp', as this is relative to the `/usr' above.
324 # Please refer to the man-page of gnutar for more information.
325 # If a relative pathname is specified as the exclude list,
326 # it is searched from within the directory that is
327 # going to be backed up.
328 # Default: include all files
329 # holdingdisk - should the holding disk be used for this dump. Useful for
330 # dumping the holding disk itself. Default: [holdingdisk yes]
331 # ignore - do not back this filesystem up. Useful for sharing a single
332 # disklist in several configurations.
333 # index - keep an index of the files backed up. Default: [index no]
334 # kencrypt - encrypt the data stream between the client and server.
335 # Default: [kencrypt no]
336 # maxdumps - max number of concurrent dumps to run on the client.
337 # Default: [maxdumps 1]
338 # priority - priority level of the dump. Valid levels are "low", "medium"
339 # or "high". These are really only used when Amanda has no
340 # tape to write to because of some error. In that "degraded
341 # mode", as many incrementals as will fit on the holding disk
342 # are done, higher priority first, to insure the important
343 # disks are at least dumped. Default: [priority medium]
344 # program - specify the dump system to use. Valid values are "DUMP" and
345 # "GNUTAR". Default: [program "DUMP"].
346 # record - record the dump in /etc/dumpdates. Default: [record yes]
347 # skip-full - skip the disk when a level 0 is due, to allow full backups
348 # outside Amanda, eg when the machine is in single-user mode.
349 # skip-incr - skip the disk when the level 0 is NOT due. This is used in
350 # archive configurations, where only full dumps are done and
352 # starttime - delay the start of the dump? Default: no delay
353 # strategy - set the dump strategy. Valid strategies are currently:
354 # "standard" - the standard one.
355 # "nofull" - do level 1 dumps every time. This can be used,
356 # for example, for small root filesystems that
357 # only change slightly relative to a site-wide
358 # prototype. Amanda then backs up just the
360 # "noinc" - do level 0 dumps every time.
361 # Unfortunately, this is not currently
362 # implemented. Use `dumpcycle 0'
364 # "skip" - skip all dumps. Useful for sharing a single
365 # disklist in several configurations.
366 # "incronly" - do only incremental dumps. This is similar
367 # to strategy 'nofull', but will increase
368 # the dump level as usual. Full dumps will
369 # only be performed when an 'amadmin force'
371 # Default: [strategy standard]
373 # Note that you may specify previously defined dumptypes as a shorthand way
374 # of defining parameters.
376 define dumptype global {
377 comment "Global definitions"
378 # This is quite useful for setting global parameters, so you don't have
379 # to type them everywhere. All dumptype definitions in this sample file
380 # do include these definitions, either directly or indirectly.
381 # There's nothing special about the name `global'; if you create any
382 # dumptype that does not contain the word `global' or the name of any
383 # other dumptype that contains it, these definitions won't apply.
384 # Note that these definitions may be overridden in other
385 # dumptypes, if the redefinitions appear *after* the `global'
387 # You may want to use this for globally enabling or disabling
388 # indexing, recording, etc. Some examples:
393 define dumptype always-full {
395 comment "Full dump of this filesystem always"
401 define dumptype root-tar {
404 comment "root partitions dumped with tar"
407 exclude list "/usr/local/lib/amanda/exclude.gtar"
411 define dumptype user-tar {
413 comment "user partitions dumped with tar"
417 define dumptype high-tar {
419 comment "partitions dumped with tar"
423 define dumptype comp-root-tar {
425 comment "Root partitions with compression"
429 define dumptype comp-user-tar {
434 define dumptype holding-disk {
436 comment "The master-host holding disk itself"
437 holdingdisk no # do not use the holding disk
441 define dumptype comp-user {
443 comment "Non-root partitions on reasonably fast machines"
448 define dumptype nocomp-user {
450 comment "Non-root partitions on slow machines"
454 define dumptype comp-root {
456 comment "Root partitions with compression"
461 define dumptype nocomp-root {
463 comment "Root partitions without compression"
467 define dumptype comp-high {
469 comment "very important partitions on fast machines"
474 define dumptype nocomp-high {
476 comment "very important partitions on slow machines"
480 define dumptype nocomp-test {
482 comment "test dump without compression, no /etc/dumpdates recording"
488 define dumptype comp-test {
490 comment "test dump with compression, no /etc/dumpdates recording"
496 # These are referred to by the disklist file. They define the attributes
497 # of the network interface that the remote machine is accessed through.
498 # Notes: - netusage above defines the attributes that are used when the
499 # disklist entry doesn't specify otherwise.
500 # - the values below are only samples.
501 # - specifying an interface does not force the traffic to pass
502 # through that interface. Your OS routing tables do that. This
503 # is just a mechanism to stop Amanda trashing your network.
505 # use - bandwidth above which amanda won't start
506 # backups using this interface. Note that if
507 # a single backup will take more than that,
508 # amanda won't try to make it run slower!
510 define interface local {
511 comment "a local disk"
515 define interface le0 {
516 comment "10 Mbps ethernet"
520 # You may include other amanda configuration files, so you can share
521 # dumptypes, tapetypes and interface definitions among several
524 #includefile "/usr/local/amanda.conf.main"