# If your configuration is called, say, "csd", then this file normally goes
# in /etc/amanda/csd/amanda.conf.

org "ZPID"
mailto "operator@zpid.de"
dumpuser "amanda"	# the user to run dumps under

inparallel 4		# maximum dumpers that will run in parallel
netusage 100000 Kbps	# maximum net bandwidth for Amanda, in KB per sec

dumpcycle 1 weeks	# the number of days in the normal dump cycle
runspercycle 3          # the number of amdump runs in dumpcycle days
tapecycle 18 tapes	# the number of tapes in rotation

bumpsize 200 Mb		# minimum savings (threshold) to bump level 1 -> 2
bumpdays 3		# minimum days at each level
bumpmult 5		# threshold = bumpsize * bumpmult^(level-1)

ctimeout 60		# amcheck timeout in secs per host
#dtimeout 1800		# amdump dumper timeout in secs per filesystem
etimeout 300		# amdump planner timeout in secs per filesystem
			

runtapes 1		# number of tapes to be used in a single run of amdump
tapedev "/dev/nst0"	# the no-rewind tape device to be used

tapetype SDLT			# what kind of tape it is (see tapetypes below)
labelstr "^zpidsdlt[0-9][0-9]*$" # label constraint regex: all tapes must match

holdingdisk hd1 {
    comment "main holding disk"
    directory "/backup"	# where the holding disk is
    use -200 Mb		# how much space can we use on it
			# a negative value mean: use all space except that value
    }


infofile "/var/lib/amanda/sdlt/curinfo"	# database filename
logdir   "/var/lib/amanda/sdlt"		# log directory
indexdir "/var/lib/amanda/sdlt/index"	# index directory

columnspec "HostName=0:8,Disk=1:9,Level=1:1,OrigKB=0:9,OutKB=0:9,Compress=1:5,DumpTime=1:6,DumpRate=0:8,TapeTime=1:6,TapeRate=0:8"


define tapetype SDLT {
    comment "160 GB SDLT drive"
    length 160000 mbytes
    filemark 2000 kbytes
    speed 5000 kbytes
}

define dumptype global {
    comment "Global definitions"
    # You may want to use this for globally enabling or disabling
    # indexing, recording, etc.  Some examples:
    # index yes
    # record no
    # skip-incr yes
}

define dumptype root-tar-index {
    global
    program "GNUTAR"
    comment "root partitions dumped with tar"
    compress none
    index yes
    #exclude list "/usr/local/lib/amanda/exclude.gtar"
    priority low
}

define dumptype user-tar-index {
    root-tar-index
    comment "user partitions dumped with tar"
    priority medium
}

define dumptype exp-tar-index {
    root-tar-index
    comment "export partition dumped with tar"
    exclude list "/export/00amanda.excludes"
    priority medium
}

define dumptype high-tar {
    root-tar-index
    comment "partitions dumped with tar"
    priority high
}

define dumptype comp-root-tar {
    root-tar-index
    comment "Root partitions with compression"
    compress client fast
}

define dumptype comp-user-tar {
    user-tar-index
    compress client fast
}

define dumptype holding-disk {
    global
    comment "The master-host holding disk itself"
    holdingdisk no # do not use the holding disk
    priority medium
}

define dumptype comp-user {
    global
    comment "Non-root partitions on reasonably fast machines"
    compress client fast
    priority medium
}

define dumptype nocomp-user {
    comp-user
    comment "Non-root partitions on slow machines"
    compress none
}

define dumptype nocomp-user-index {
    index yes
    comp-user
    comment "Non-root partitions on slow machines"
    compress none
}

define dumptype skip-incr-index {
    nocomp-user-index
    comment "Some partitions cannot sensibly be backed up incrementally"
    skip-incr yes
}

define dumptype comp-root {
    global
    comment "Root partitions with compression"
    compress client fast
    priority low
}

define dumptype nocomp-root {
    comp-root
    comment "Root partitions without compression"
    compress none
}

define dumptype nocomp-root-index {
    index yes
    comp-root
    comment "Root partitions without compression"
    compress none
}

define dumptype comp-high {
    global
    comment "very important partitions on fast machines"
    compress client best
    priority high
}

define dumptype nocomp-high {
    comp-high
    comment "very important partitions on slow machines"
    compress none
}

define dumptype nocomp-high-index {
    index yes
    comp-high
    comment "very important partitions without compression"
    compress none
}

define dumptype nocomp-test {
    global
    comment "test dump without compression, no /etc/dumpdates recording"
    compress none
    record no
    priority medium
}

define dumptype comp-test {
    nocomp-test
    comment "test dump with compression, no /etc/dumpdates recording"
    compress client fast
}


define interface local {
    comment "a local disk"
    use 2000 kbps
}

define interface eth0 {
    comment "100 Mbps ethernet"
    use 100000 kbps
}