>... it would be nice is I could get Amanda to >backup up which ever of the servers responded. >... >Any ideas
Let's assume the two servers are named S1 and S2 and the disk is named BIG. Also assume they are currently using dumptype "redundant". Write a wrapper script around amdump, such as what I use: ftp://gandalf.cc.purdue.edu/pub/amanda/run-amanda (this is a good idea in general, not just for your situation). Add this line to your amanda.conf: includefile "redundant-servers" Change disklist to put S1/BIG in dumptype S1-redundant and S2/BIG in S2-redundant (do not put those dumptypes in amanda.conf -- that's next). Change the wrapper (or, in my case, add a "pre.amdump" script) to ping each server (or whatever) to decide which one is up, or pick one if both are. Write a new copy of "redundant-servers" like this (assuming you decide to dump S1): define dumptype S1-redundant { redundant # inherit the rest of the parameters } define dumptype S2-redundant { redundant # inherit the rest of the parameters strategy skip # do not do this host/disk this time } If you decide to do S2/BIG, put the "strategy" line in that dumptype. When Amanda runs, it will dump the one without the strategy line and do the other. Another way to do this would be to put both entries in a template disklist file but commented out. The wrapper script code would copy that file to the real disklist, uncommenting the one that should be backed up. There are a couple of problems with either of these. One is that Amanda will not be happy about backing up (e.g.) S2 once and then not getting to do it again for months. At some point it will start whining about you overwriting the last good backup. Using the disklist trick would help this, but when the primary system is down and the secondary is picked, Amanda would probably decide it had been forever since the last backup and schedule a full dump, which may or may not be a problem. There are probably some evil things you could do with symlinks in the curinfo database area that would get around this, but I'd want to think about it before diving in. There will also be issues if things flip back and forth very often because the backup program will not know about the incremental done on the "other" system unless you do some magic merging on /etc/dumpdates (or the GNU tar listed incremental files). Don't know if any of this really helps, but maybe it will give you a few ideas to point in a good direction. >Anthony Worrall John R. Jackson, Technical Software Specialist, [EMAIL PROTECTED]
