I want to setup amanda to backup some important data, but I am afraid
that I do not understand correctly how amanda works inside. I am not
sure if I am doing right or in a best practice way.
As the amount of data is very large (630GB), thus the backup time would
be very long (especially L0's) I divided the data into data which
changes fast and should be backed up daily (DailySet1) and data which is
very static and should be backed up weekly. The weekly data I also
divided into 4 parts (WeeklySet1-4) so that the runtime of the backup is
shorter.
The parameters for DailySet1 are:
dumpcycle 4 weeks
runspercycle 28
tapecycle 30 tapes
runtapes 4
tapelength 10 gbytes
tape_splitsize 1000 mbytes
The parameters for the WeeklySet1-4 are:
dumpcycle 4 weeks
runspercycle 4
tapecycle 6 tapes
runtapes 4
tapelength 50 gbytes
tape_splitsize 10000 mbytes
I am using Amanda 2.6.1p1-2 on a Ubuntu Lucid distro.
The largest DLE in the daily set is about 30G, that's the reason why I
used 10G tapes and let amanda run 4 tapes. I split the tapes into 1G
chunks to fill the tapes better.
The largest DLE in the weekly sets is about 180GB, that's the reason why
I used 50G tapes and let amanda run 4 tapes. I split the tapes into 10G
chunks to fill the tapes better.
I chose to use 30 tapes * 10GB + (6 tapes * 50GB) * 4 to fit the disk
space of 1,8T.
The keep time of the data does not need to be very long (I do not need
many old versions of specific data). It should be enough to have 2 week
old versions of the backed up data (two runs in WeeklySets and 14 runs
in DailySet).
In my understanding I would need at least L0 dumps every two weeks. To
keep the amount of data small and the time to backup short the amount of
incrementals should be as large as possible.
How do I accomplish all my needs with the resources I have?
Is the way I am thinking completely nonsense?
Are there any best practice rules tipps or recommendations for me?
Beyond I attach my configurations. I removed some default lines, not
needed dumptypes and disktypes and the comments for better readability.
Also I attach the disklists for all my sets.
I hope that anyone can help me
Any comments are appreciated. Thanks in advance!
Cheers,
Thomas
-----------------------------------------------------------------------
DailySet1 - disklist (runs daily) - about 50G:
----------------------------------
store01 Dokumente /storage/dokumente client-tar-compress-span # 10G(growing)
store01 WindowsHomes /storage/winhome client-tar-compress-span # 30G
store01 Scratch /storage/scratch client-tar-compress-span # 1G
store01 RootHome /root client-tar-compress-span # <1G
store01 KonfigFiles /etc client-tar-compress-span # <1G
hochschwab Mailserver /srv/mail client-tar-encrypt-compress-span # 2G
hochschwab RootHome /root client-tar-encrypt-compress-span # <1G
hochschwab KonfigFiles /etc client-tar-encrypt-compress-span # <1G
hochschwab Backups /var/backup client-tar-encrypt-compress-span # <1G
riegerin RootHome /root client-tar-compress-span # <1G
riegerin KonfigFiles /etc client-tar-compress-span # <1G
calendar Roothome /root client-tar-compress-span # <1G
calendar KonfigFiles /etc client-tar-compress-span # <1G
calendar Kalender /var/spool/caldavd client-tar-compress-span # <1G
store02 RootHome /root client-tar-compress-span # <1G
store02 KonfigFiles /etc client-tar-compress-span # <1G
---------------------------------------------------------------------------------------
WeeklySet1 - disklist (runs Mondays) - about 180G and growing:
-------------------------------------
store01 /storage/bilder client-tar-compress-span # 180G(growing)
---------------------------------------------------------------------------------------
WeeklySet2 - disklist (runs Tuesdays) - about 105G and growing:
-------------------------------------
store02 //macmini/Medien/Musik client-tar-compress-span # 100G
hochschwab /srv/www/berge client-tar-encrypt-compress-span # 5G(growing)
---------------------------------------------------------------------------------------
WeeklySet3 - disklist (runs Wednesdays) - about 190G:
----------------------------------------
store01 /storage/data/Amiga client-tar-compress-span # <1G
store01 /storage/data/MacOSX client-tar-compress-span # 60G
store01 /storage/data/Windows client-tar-compress-span # 130G
---------------------------------------------------------------------------------------
WeeklySet4 - disklist (runs Thursdays) - about 111G:
---------------------------------------
store01 /storage/data/Hardware client-tar-compress-span # 50G
store01 /storage/data/Karten client-tar-compress-span # 18G
store01 /storage/data/Scripte client-tar-compress-span # minimal
store01 /storage/data/Tutorials client-tar-compress-span # 43G
---------------------------------------------------------------------------------------
DailySet1 - amanda.conf:
------------------------
inparallel 4
dumporder "sssS"
taperalgo largestfit
displayunit "m"
usetimestamps yes
dumpcycle 4 weeks
runspercycle 28
tapecycle 30 tapes
bumpsize 20 Mb
bumppercent 10
bumpdays 1
bumpmult 4
etimeout 300
dtimeout 1800
ctimeout 30
runtapes 4
tpchanger "chg-disk"
tapedev "file:/storage/amanda/tapes/DailySet1"
changerfile "/etc/amanda/DailySet1/changer"
changerdev " < at > DEFAULT_CHANGER_DEVICE < at > "
tapetype DISK
labelstr "^DailySet1-[0-9][0-9]*$"
amrecover_do_fsf yes
amrecover_check_label yes
amrecover_changer " < at > DEFAULT_TAPE_DEVICE < at > "
autoflush no
define tapetype DISK {
comment "Backup to HDD"
length 10 gbytes
}
define dumptype global {
comment "Global definitions"
index yes
record no
split_diskbuffer "/tmp"
fallback_splitsize 64m
}
define dumptype client-tar-encrypt-compress-span {
global
comment "TAR with client compression and encryption and tape spanning"
compress client fast
strategy standard
priority high
encrypt client
client_encrypt "/usr/sbin/amcrypt"
client_decrypt_option "-d"
program "GNUTAR"
tape_splitsize 1000 mbytes # chunksize of dumps on tape
}
define dumptype client-tar-compress-span {
global
comment "TAR with client compression and tape spanning"
compress client fast
strategy standard
priority high
program "GNUTAR"
tape_splitsize 1000 mbytes # chunksize of dumps on tape
}
define interface local {
comment "a local disk"
}
define interface eth0 {
comment "1000 Mbps ethernet"
}
---------------------------------------------------------------------------
WeeklySet1 - amanda.conf:
-------------------------
inparallel 4
dumporder "sssS"
taperalgo largestfit
displayunit "m"
usetimestamps yes
dumpcycle 4 weeks
runspercycle 4
tapecycle 6 tapes
bumpsize 20 Mb
bumppercent 10
bumpdays 1
bumpmult 4
etimeout 300
dtimeout 1800
ctimeout 30
runtapes 4
tpchanger "chg-disk"
tapedev "file:/storage/amanda/tapes/WeeklySet1"
changerfile "/etc/amanda/WeeklySet1/changer"
changerdev " < at > DEFAULT_CHANGER_DEVICE < at > "
tapetype DISK
labelstr "^WeeklySet1-[0-9][0-9]*$"
amrecover_do_fsf yes
amrecover_check_label yes
amrecover_changer " < at > DEFAULT_TAPE_DEVICE < at > "
autoflush no
define tapetype DISK {
comment "Backup to HDD"
length 50 gbytes
}
define dumptype client-tar-encrypt-compress-span {
global
comment "TAR with client compression and encryption and tape spanning"
compress client fast
strategy standard
priority high
encrypt client
client_encrypt "/usr/sbin/amcrypt"
client_decrypt_option "-d"
program "GNUTAR"
tape_splitsize 10000 mbytes # chunksize of dumps on tape
}
define dumptype client-tar-compress-span {
global
comment "TAR with client compression and tape spanning"
compress client fast
strategy standard
priority high
program "GNUTAR"
tape_splitsize 10000 mbytes # chunksize of dumps on tape
}
define interface local {
comment "a local disk"
}
define interface eth0 {
comment "1000 Mbps ethernet"
}
----------------------------------------------------------------------------------------------------
WeeklySet2-4 - amanda.conf: same as WeeklySet1 just keyword WeeklySet1
replaced by the correct word.
----------------------------------------------------------------------------------------------------
Space on /storage where the tapes reside: 1,8T
----------------------------------------------------------------------------------------------------
