Amanda backup client
Amanda www.amanda.org (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 procedure
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
n.b. Amanda's home directory /opt/Amanda is a link to /share/hdd/conf/opt/Amanda
Runtime libs not found so link the libraries to /lib
# ln -s /share/hdd/conf/opt/Amanda/lib/libamclient-2.5.0p2.so /lib/libamclient-2.5.0p2.so
amcheck gave 0kb available in /tmp/amanda error so give quick fix.
# ln -s /share/hdd/data/amanda /tmp/amanda
Client configuration file entries
xinetd fails silently so use inetd (used on both the server and the client)
amanda dgram udp wait amandauser /share/hdd/conf/opt/Amanda/libexec/amandad amandad
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
add the disks you wish to backup to your servers configuration files
client.full.domain.name /dev/sdba1 user-tar
and allow the client to connect to the server by adding to the servers
client.full.domain.name amandauser amandad amindexd amidxtaped
Then check by running amcheck on the server
Then run amdump on the server
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
Installed ipkg packages
autoconf - 2.59-2 - Creating scripts to configure source code packages using tem