I finally got the SuSE distributed amanda working, and also managed to
back up Win XP and Vista Home Edition files. I attach details, which
might be helpful to some.
-
First, an apology to SuSE. Their distribution does include
documentation at:
/usr/share/doc/packages/amanda/amanda-howto-collection.pdf
Although, strictly, this is for amanda 2.5.0, it is sufficiently
relevant to SuSE 11.4’s amanda 2.6.1.1-13.7 to be useful. It’s a lot
easier with documentation!
-
We need the changes discussed above:
mozart:/etc> type ps
ps is /bin/ps
In SuSE 11.4, Constants.pm is at
/usr/lib/perl5/vendor_perl/5.12.3/Amanda/Constants.pm
At line 83, it had:
$PS = “”;
which should be changed to:
$PS = “/bin/ps”;
In addition, OpenSuSE 11.4’s originally distributed gnu tar 1.25 is
incompatible with amanda, and should be replaced with gnu tar 1.26.
- I found some of the documentation confusing, so include files that
worked. First the files under xinetd.d:
-------8<---------/etc/xinetd.d/amanda-----------8<-------
default: off
description: Amanda backup client
service amanda
{
socket_type = dgram
protocol = udp
wait = yes
user = amanda
group = amanda
server = /usr/lib/amanda/amandad
server_args = -auth=bsdudp amdump amindexd amidxtaped
}
--------8<---------/etc/xinetd.d/amandaidx-----------8<-------
default: off
description: Amanda backup server with indexing capabilities
service amandaidx
{
socket_type = stream
protocol = tcp
wait = no
user = amanda
group = amanda
server = /usr/lib/amanda/amindexd
}
--------8<---------/etc/xinetd.d/amidxtape-----------8<--------
default: off
description: Amanda backup server with indexing capabilities
service amidxtape
{
socket_type = stream
protocol = tcp
wait = no
user = amanda
group = amanda
server = /usr/lib/amanda/amidxtaped
}
----------8<--------------------8<----------
Note that in the above files “server” refers to server CODE. In the
.conf files, below, “server” relates to the server machine NAME.
Amanda needs both amanda.conf and amanda-client.conf, even where it
is only server machine files being backed up. Note that the “auth”
(here bsdudp) must be consistent between xinetd.d files and .conf files:
—8<---------/etc/amanda/DailySet1/amanda-client.conf-----------8<—
conf “DailySet1”
client_username “mozart”
index_server “mozart” # your amindexd server
tape_server “mozart” # your amidxtaped server
tapedev “/dev/nst0”
auth “bsdudp”
gnutar_list_dir “/raid/var/admin/amanda/DailySet1/gnutar-lists”
amandates “/raid/var/admin/amanda/DailySet1/amandates”
----------8<--------------------8<----------
There are many examples of amanda.conf file around, so this is an
abbreviated version:
----------8<----------/etc/amanda/DailySet1/amanda.conf----------8<----------
org “DailySet1” # your organization name for reports
mailto “xxxxx” # space separated list of operators at your site
dumpuser “amanda” # the user to run dumps under
inparallel 4 # maximum dumpers that will run in parallel (max 63)
netusage 800 Kbps # maximum net bandwidth for Amanda, in KB per sec
dumpcycle 14 days # the number of days in the normal dump cycle
runspercycle 14 # the number of amdump runs in dumpcycle days
tapecycle 15 tapes # the number of tapes in rotation
bumpsize 20 Mb # minimum savings (threshold) to bump level 1 → 2
bumpdays 1 # minimum days at each level
bumpmult 4 # threshold = bumpsize * bumpmult^(level-1)
etimeout 300 # number of seconds per filesystem for estimates.
dtimeout 1800 # number of idle seconds before a dump is aborted.
ctimeout 30 # maximum number of seconds that amcheck waits for each client host
runtapes 1 # number of tapes to be used in a single run of amdump
tapedev “tape:/dev/nst0” # the no-rewind tape device to be used
tapetype C5683A # what kind of tape it is (see tapetypes below)
labelstr “^TAPE[0-9][0-9]*$” # label constraint regex: all tapes must match
holdingdisk hd1 {
comment “main holding disk”
directory “/raid/holding”
}
reserve 30 # percent
infofile “/raid/var/admin/amanda/DailySet1/curinfo” # database DIRECTORY
logdir “/raid/var/admin/amanda/DailySet1” # log directory
indexdir “/raid/var/admin/amanda/DailySet1/index” # index directory
tapelist “/raid/var/admin/amanda/DailySet1/tapelist” # list of used tapes
tapelist is stored, by default, in the directory that contains amanda.conf
for tapetype C5683A length was 19488 mbytes. Reduce by 7%.
define tapetype C5683A {
length 18124 mbytes
filemark 538 kbytes
speed 3073 kbytes
}
define dumptype global {
comment “Global definitions”
auth “bsdudp” # NB AUTH.
}
define dumptype root-tar {
global
program “GNUTAR”
comment “root partitions dumped with tar”
compress none
index
exclude list “/usr/lib/amanda/exclude.gtar”
priority low
}
define dumptype user-tar {
root-tar
comment “user partitions dumped with tar”
priority medium
}
define dumptype comp-user-tar {
user-tar
program “GNUTAR”
comment “partitions dumped with tar”
compress client fast
index
exclude list “./amanda.exclude”
priority medium
}
for Samba shares
define dumptype comp-user-tar-samba {
global
program “GNUTAR”
comment “SAMBA partitions dumped with tar”
# options no-compress, index
priority medium
}
define interface local {
comment “a local disk”
use 1000 kbps
}
define interface eth0 {
comment “100 Mbps ethernet”
use 8000 kbps
}
-------8<----------/var/lib/amanda/.amandahosts----------8<-----
localhost amanda
mozart amanda amindexd amidxtaped
localhost root amindexd amidxtaped
ronnie amandabackup
vivaldi amandabackup
----------8<--------------------8<----------
amandapass provided passwords associated with Samba shares on PCs:
----------8<-----------/etc/amandapass---------8<----------
//ronnie/300d_00000 amandabackup%ronnie_amanda_password
[etc etc]
//vivaldi/users amandabackup%vivaldi_amanda_password
[etc etc]
----------8<--------------------8<----------
-
Installation of amanda on the WinXP and Vista system was achieved
using zmanda community edition packages from:
Download Amanda Network Backup - Pre Packaged and Tested
of ZWC-Community-2.6.1-32bit.zip and ZWC-Community-2.6.1-64bit.zip
respectively. During installation this automatically sets up a user
amandabackup, and asks for the associated password. It all seemed to
work without fuss.
-
One final point: for some reason, to get amrestore working properly,
on the SuSE server I had to:
chown amanda:amanda /dev/nst0
Hope all this is helpful — it may look obvious, but some of the
documentation ambiguities meant a lot of trial and error!