Hello,
I have about 10TB data to backup. I can backup max 1TB a night due network limitations.
I have divided all data to 14 datasets each dataset will be backed up once every two weeks - full backup.Every week tapes already written are taken offsite and they never come back for reuse.
Now I'm trying to configure amanda but I found that indexes are removed I have one or 2 index files for each dataset older are deleted. How to keep indexes. Where i made mistake in my conf file.
thanks
cat amanda.conf
org "Example 1" # your organization name for reports
mailer "/usr/bin/mail"
mailto "amanda@example" # space separated list of operators at your site
send-amreport-on all
dumpuser "amandabackup"
tapetype "DIL" # what kind of tape it is
dumpcycle 0 # the number of days in the normal dump cycle
runspercycle 1 # the number of amdump runs in dumpcycle days
tapecycle 29 # the number of tapes in rotation
runtapes 5 # number of tapes to be used in a single run of amdump
usetimestamps yes
maxdumpsize 15000gb
labelstr "^D[IL][L]?[0-9][0-9][0-9][0-9]?[A-Z][0-9]*$" # label constraint regex: all tapes must match
printer "pluckley"
diskfile "/etc/amanda/DailySet1/disklist"
infofile "/etc/amanda/DailySet1/curinfo" # database DIRECTORY
logdir "/etc/amanda/DailySet1/logs" # log directory
indexdir "/etc/amanda/DailySet1/index" # index directory
tapelist "/etc/amanda/DailySet1/tapelist" # list of used tapes
dtimeout 43200 # number of idle seconds before a dump is aborted
ctimeout 600 # max number of secconds amcheck waits for each client
etimeout 43200 # number of seconds per filesystem for estimates
inparallel 20
dumporder "ssssssssssssssssssss"
taperalgo first
displayunit "g"
netusage 900 mbps
maxdumps 1
bumpsize 20m
bumppercent 20
bumpdays 1 day
amrecover_changer "changer"
device_output_buffer_size 65536k
reserve 30
autoflush yes
amrecover_do_fsf on
amrecover_check_label on
holdingdisk dataPool {
comment "Main holding area"
directory "/dataPool/amandapool"
use 8000Gb
chunksize 2047Mb
}
define dumptype NEO {
comment "*splitsize* can only be defined in the scope of a dumptype definition, not a device"
auth "bsdtcp"
tape_splitsize 20 Gb
fallback_splitsize 1 Gb
index yes
holdingdisk yes
program "GNUTAR"
compress none
record yes
exclude list "/etc/amanda/amanda.excludes"
}
define dumptype BIG {
NEO
index yes
estimate calcsize
}
define dumptype NORMAL {
NEO
index yes
estimate client
}
define script-tool script_zfs_snapshot {
comment "amzfs-snapshot"
plugin "amzfs-snapshot"
execute-where client
execute-on pre-dle-amcheck, post-dle-amcheck, pre-dle-estimate, post-dle-estimate, pre-dle-backup, post-dle-backup
property "DF-PATH" "/usr/sbin/df"
property "ZFS-PATH" "/usr/sbin/zfs"
}
define application-tool app_amgtar {
comment "amgtar"
plugin "amgtar"
property "ATIME-PRESERVE" "no"
}
define dumptype zfs-snapshot {
program "APPLICATION"
application "app_amgtar"
script "script_zfs_snapshot"
auth "bsdtcp"
estimate calcsize
tape_splitsize 20 Gb
fallback_splitsize 1 Gb
index yes
holdingdisk yes
compress none
record yes
exclude list "/etc/amanda/amanda.excludes"
}
define tapetype DIL {
comment "Created by amtapetype; compression enabled"
length 757110016 kbytes
filemark 0 kbytes
speed 106000 kps
blocksize 2048 kbytes
readblocksize 4m
}
define changer "robot" {
tpchanger "chg-robot:/dev/sg6"
changerfile "/etc/amanda/DailySet1/chg-zd-mtx-state"
property "tape-device" "0=tape:/dev/nst1"
property append "tape-device" "1=tape:/dev/nst2"
property "eject-before-unload" "no"
property "use-slots" "1-29"
property "load-poll" "0s poll 5 s until 180 s"
property "mtx" "/usr/sbin/mtx"
property "fast-search" "false"
property "drive-choice" "lru"
}
tpchanger "robot"
