![]() |
HowTo.AddAmandaClient HistoryHide minor edits - Show changes to markup August 24, 2006, at 03:42 PM
by --
Changed lines 3-4 from:
Amanda (The Advanced Maryland Automatic Network Disk Archiver) to:
Amanda www.amanda.org (The Advanced Maryland Automatic Network Disk Archiver) August 24, 2006, at 03:41 PM
by --
Changed line 132 from:
to:
time-hires-1.65\\ Changed line 174 from:
to:
lsof - 4.77.dfsg.1-1 - list Open Files - a diagnostic tool.\\ Changed line 179 from:
to:
ncursesw - 5.5-1 - ncurses libraries with wide char support.\\ Changed line 184 from:
to:
ntpclient - 2003_194-3 - Using rfc1305 (NTP), retrieves a remote date and time\\ Changed line 196 from:
to:
tar - 1.15.1-1 - heavyweight version of the tape archiver\\ August 24, 2006, at 03:33 PM
by --
Changed lines 63-65 from:
to:
# ln -s /share/hdd/conf/opt/Amanda/lib/libamclient-2.5.0p2.so /lib/libamclient-2.5.0p2.so Changed lines 68-69 from:
to:
# ln -s /share/hdd/data/amanda /tmp/amanda August 24, 2006, at 03:30 PM
by --
Added lines 59-60:
n.b. Amanda's home directory /opt/Amanda is a link to /share/hdd/conf/opt/Amanda Changed lines 122-123 from:
=============================== to:
=============================== Added line 137:
Changed lines 139-140 from:
======================= to:
======================= August 24, 2006, at 03:21 PM
by -- Add an Amanda network backup client
Added lines 1-200:
Amanda backup clientAmanda (The Advanced Maryland Automatic Network Disk Archiver) Amanda is an excellent open source client/server automated network backup solution. Which I believe will allow more serious use of the slug as a NAS system (the alternative I've used to date is to write individual users directories to DVD-RW). This may be of most use to people who have already installed an Amanda server within their environment. My slug is an NFS NAS file server, with SSH logins, SFTP, GNU gcc compilation toolchain, and most of the standard linux core utilities (see below for full list, not all are necessary). Amanda client and server versions: 2.5.0p2 unslung version: 3.18beta You'll need to create an amanda user (same user as on your server) on your slug with membership of group root Download and untar the amanda distribution on to your slug Then it is fairly standard unix/linux compilation procedureas amandauser: bash-2.05b$ ./configure <See configuration options below> Then as root: bash-2.05b$ make install I had lots of path problems, so once you have amandauser setup with PATH and LD_LIBRARY_PATH and your installing as root, run a root bash shell and then source amandauser's .bashrc The main compilation problem was (apparently) common-src/genversion.c truncating lines when producing common-src/version.c. size_t len = strlen(string) + 1;
new_len = strlen(var)
+ SIZEOF("=\\\"")
+ strlen(val)
+ SIZEOF("\\\"")
+ 1;
new_len = strlen(var)
+ SIZEOF("=")
+ strlen(number)
+ 1;
v_len = SIZEOF("Amanda-") + strlen(v) + 1;
Changing +1 to +3 created version.c correctly and allowed compilation. make gives yacc errors with amrecover so build without ./configure --prefix=/share/hdd/conf/opt/Amanda --with-user=amandauser --with-group=root --without-server --without-amrecover --with-includes=/opt/armeb/armv5b-softfloat-linux/sys-include LDFLAGS=-L/share/hdd/data/armeb/armv5b-softfloat-linux/lib Runtime libs not found so link the libraries to /lib
amcheck gave 0kb available in /tmp/amanda error so give quick fix.
ConfigurationClient configuration file entries xinetd fails silently so use inetd (used on both the server and the client) /etc/inetd.conf amanda dgram udp wait amandauser /share/hdd/conf/opt/Amanda/libexec/amandad amandad /opt/Amanda/.amandahosts server.full.domain.name amandauser amdump /etc/services (already contained amanda entries) amanda 10080/udp # amanda backup services Also make sure /etc/hosts has an entry specifying server.full.domain.name Finally
add the disks you wish to backup to your servers configuration files /opt/Amanda/etc/amanda/<configuration>/disklist client.full.domain.name /dev/sdba1 user-tar and allow the client to connect to the server by adding to the servers /opt/Amanda/.amandahosts client.full.domain.name amandauser amandad amindexd amidxtaped Then check by running amcheck on the server /opt/Amanda/sbin/amcheck <configuration> Then run amdump on the server /opt/Amanda/sbin/amdump <configuration> N.B.
This took several weeks to get the packages to compile and install and to work out the .amandahosts service entries, the silent failures, problems when the Fully Qualified Domain Name isn't quite what you'd expected it to be, etc. BUT it does work, it backs up, and it restores (running amrecover on the server). So if at first you don't succeed, carry on until your eyeballs bleed :) Compiled and installed packages dump-0.4b41 autoconf - 2.59-2 - Creating scripts to configure source code packages using tem
plates
view ·
edit ·
print ·
history ·
Last edited by Marc O'Brien.
Based on work by Marc O'Brien. Originally by mobriensgulacuk. Page last modified on August 24, 2006, at 03:42 PM
|