> But I'm interested -- let us know what you come up with. And, FWIW, I
been running successfully since 3/2 so here's a little doc on what i
did. all i've got to do now is craft a bootable cdr with
reiserfs,kerberos,ssh,ftp,amanda support and i'll be
bare-metal-golden. i'll wait a little on that though, i've itched my
backup itch enough for now.
thanks for all the help!
--
+--------------------------------------------------------------+
| Jon Stearley (505) 845-7571 (FAX 844-2067) |
| Compaq Federal LLC High Performance Solutions |
| Sandia National Laboratories Scalable Systems Integration |
+--------------------------------------------------------------+
Situation:
1. I have a computer I'd like to backup
2. I love and trust amanda for backups
3. I can ftp stuff into a huge robotic tape library I don't have to
babysit or maintain
So here's what I did (with snappy help from the amanda-users list):
1. grabbed, built, and installed amanda-2.4.3b2
2. carved out a chunk of disk for amanda tmp space
(mounted at /scratch/amanda)
3. setup amanda.conf, here's some key settings:
dumpcycle 5 weeks
runspercycle 25
tapecycle 30 tapes
tpchanger "chg-multi"
changerfile "/scratch/amanda/etc/chg-multi.conf"
tapetype FILE
logdir "/scratch/amanda/var"
indexdir "/scratch/amanda/var/index"
infofile "/scratch/amanda/var/curinfo"
define tapetype FILE {
length 1900 mbytes # 2G filesize limit on my linux kernel
}
define dumptype ex-tar {
index yes
record yes
holdingdisk no
program "GNUTAR" # reiserfs is wonderful!!!
compress client fast
exclude "./tmp"
}
4. setup chg-multi.conf like:
multieject 0
gravity 0
needeject 0
ejectdelay 0
statefile /scratch/amanda/data/changer-state
firstslot 0
lastslot 29
slot 0 file:/scratch/amanda/data/0
slot 1 file:/scratch/amanda/data/1
slot 2 file:/scratch/amanda/data/2
slot 3 file:/scratch/amanda/data/3
(so on and so forth for rest of slots)
5. setup my disklist file,
added amanda lines to /etc/{services,inetd.conf} and HUP'd inetd
6. setup my "tape" drives (from a bash shell):
cd /scratch/amanda/data
i=0
while ((i<30));do
mkdir -p $i/data # install a "drive" and load a "tape"
let i+=1
done
amtape mercy reset
while ((i<30));do
amlabel mercy mercy$i # label the "tape"
amtape mercy slot next # autoload the next "tape"
let i+=1
done
(of course, all of /scratch/amanda is writeable by my backup
pseudouser)
7. wrote a bitty script to ftp stuff into the robot
#!/bin/sh
FTPCOMMANDS=/tmp/ftpcommands.$$
echo " " > $FTPCOMMANDS
echo "cd amanda" >> $FTPCOMMANDS
for i in `find . -type d`; do
echo "mkdir $i" >> $FTPCOMMANDS;
done
for i in `find . -type f -newer /scratch/amanda/data/changer-state`;
do
echo "put $i" >> $FTPCOMMANDS;
done
echo quit >> $FTPCOMMANDS
# run rgy_edit on angara to produce the .keytab file
# kta -a jrstear -p kerb_passwd_here -f .keytab
kinit -k -t .keytab jrstear
ftp rsmss < $FTPCOMMANDS
kdestroy
8. setup my backup cronjob like:
1 0 * * 2-6 cd /scratch/amanda; \
/usr/local/pkg/amanda/current/sbin/amtape mercy slot next; \
/usr/local/pkg/amanda/current/sbin/amdump mercy; ./ftpit
9. put a tar copy of /usr/local/pkg/amanda in /amanda/scratch for
recovery bootstrap starters
sometime i'll craft a bootable cd with the ability to retrieve
/scratch/amanda from the tape archives and run amanda, but i've
scratched my backup itch for now...