I recognice the problem. Among other things I needed to switch from localhost to the correct host name :-(
Two reservations: 1. I am no shell script expert. There is only a little error checking, so this could bite you. 2. The technique is not based on any official Amanda documentation. It worked for me when I needed it with 2.4.2p1 and RedHat 8.0. Please feel free to comment, correct or ignore /Mike From: Thomas Franz <[EMAIL PROTECTED]> Organization: DSS Incore Service GmbH To: [EMAIL PROTECTED] Subject: rename amanda clients Date sent: Mon, 20 Oct 2003 14:50:03 +0200 > Hello, > > sometimes, I have to rename a server(amanda client) in this case: > server.domain1 -> server.domain2 > ( a server is moving into another zone) > > Now, I have changed the disklist , the directories in "index-dir" and all > occurances in "log.*" . But, if I want to restore a file with amrecover, > it does not work, because on the tape there is still the old name ( of > course !). > > -------------------------debug-file------------------------------ > amidxtaped: time 0.073: amandahosts security check passed > amidxtaped: time 0.073: > CONFIG=DailySet1 > amidxtaped: time 0.073: > LABEL=DailySet1-077 > amidxtaped: time 0.073: > FSF=16 > amidxtaped: time 0.073: > HEADER > amidxtaped: time 0.073: > DEVICE=/dev/nsa0 > amidxtaped: time 0.073: > HOST=^server.domain2$ > amidxtaped: time 0.073: > DISK=^/home$ > amidxtaped: time 0.073: > DATESTAMP=20031011 > amidxtaped: time 0.073: > END > amidxtaped: time 0.075: amrestore_nargs=0 > amidxtaped: time 0.075: Ready to execv amrestore with: > path = /usr/local/sbin/amrestore > argv[0] = "amrestore" > argv[1] = "-p" > argv[2] = "-h" > argv[3] = "-l" > argv[4] = "DailySet1-077" > argv[5] = "-f" > argv[6] = "16" > argv[7] = "/dev/nsa0" > argv[8] = "^server.domain2$" > argv[9] = "^/home$" > argv[10] = "20031011" > amrestore: 16: skipping server.domain1._home.20031011.0 > amrestore: 17: skipping xxxx1.domain1._etc.20031011.0 > ..................................................... > amrestore: 35: reached end of tape: date 20031013 > amidxtaped: time 163.109: amrestore terminated normally with status: 1 > amidxtaped: time 163.109: rewinding tape ... amidxtaped: time 206.223: > done amidxtaped: time 206.223: pid 18486 finish time Mon Oct 20 11:12:21 > 2003 ------------------------end of debug-file-------------------------- > > Is there any workaround to keep the database before renaming a server ? > > > best regards > > Thomas Franz -- Michael Evans [EMAIL PROTECTED]
mv-disk.zip
Description: Zip archive