RE: Rebuilding my backup server
Title: Re: Rebuilding my backup server Dear all, Thanks for all your help. I upgraded to Fedora Core 2 and got all my e-mails backs. What I did, whcih I will be submitting a patch to the RESTORE doc is: Installed the amanda RPM and used amrestore i.e.: amrestore /dev/nst0 hostname '/etc$' which searched for that partition. I got the latest level 0, then level 1 for /etc and /home Then used "tar -xvpf filename" to get all the files. Much, much easier than mt -f /dev/nst0 fsf 1 and using dd. Thoughts? Gavin. -Original Message- From: Paul Bijnens [mailto:[EMAIL PROTECTED] Sent: Fri 02/07/2004 09:40 To: Gavin Henry Cc: [EMAIL PROTECTED] Subject: Re: Rebuilding my backup server Gavin Henry wrote: Disaster strikes!!! My Red Hat 8.0 backup server hard drive has died, and I need some advice in rebuilding it. I have all the backups tapes and I have backup up /etc /home /var and a few other things. My question is, "How do I get all the configuration files back from the tapes without having Amanda installed? Any tips would be great!!!Tip one: stay calm.Tip two: Read docs/RESTORE.In short: As root do:use basic unix commands to position tape like: mt -f /dev/nst0 fsf 1use basic dd to read the 32k header of each file on tape: dd if=/dev/rmt/0n bs=32k count=1And notice it contains the command you need to type to restorethat backup image: (position again using mt above, and cd to the correct top directory!) dd if=/dev/nst0 bs=32k skip=1 | gzip -d | gtar -xpvf ---Paul Bijnens, Xplanation Tel +32 16 397.511Technologielaan 21 bus 2, B-3001 Leuven, BELGIUM Fax +32 16 397.512http://www.xplanation.com/ email: [EMAIL PROTECTED] I think I've got the hang of it now: exit, ^D, ^C, ^\, ^Z, ^Q, F6, ** quit, ZZ, :q, :q!, M-Z, ^X^C, logoff, logout, close, bye, /bye, ** stop, end, F3, ~., ^]c, +++ ATH, disconnect, halt, abort, hangup, ** PF4, F20, ^X^X, :D::D, KJOB, F14-f-e, F8-e, kill -1 $$, shutdown, ** kill -9 1, Alt-F4, Ctrl-Alt-Del, AltGr-NumLock, Stop-A, ... ** ... "Are you sure?" ... YES ... Phew ... I'm out
using tar and exclude
Does anyone know of any step by step how-to's that deal with using the exclude file option with amanda on tar based backups? thanks
Re: authorisation failure
On Thu, Jul 01, 2004 at 11:13:44AM +0100, Tony van der Hoff wrote: OK, it turnes out that the entry in .amandahosts now (since the upgrade) requires the FQDN for tony-lx, i.e. tony-lx.magpieway.net. It now works. I've just had a similar adventure here. I've already solved it; this post is for the benefit of the archives. Without going into all the details, the solution to my problem seems to be that if your Amanda server has multiple FQDNs, you need to list *all* of them in .amandahosts on the clients, since you have no control over which FQDN Amanda will think it needs to look up on any given run. Whether this is necessary seems to depend on the nameserver software that the Amanda *client* is resolving against (i.e. which nameserver is running on the host(s) listed in the client's /etc/resolv.conf). Our Amanda server has two FQDNs. Our clients have been happily getting backed up for a year, with only one of the server's FQDNs in their .amandahosts files. But when I switched one client over to our test BIND 9.2.3 nameserver (production is BIND 8.2.3), that client started getting amandahostsauth failed errors until I added a .amandahosts entry for the server's second FQDN. To confirm this, I ran amcheck -c ten times. Two runs succeeded, eight failed (same amandahostsauth failed error for the same client). After I made the .amandahosts change on that client, I ran 90 more amcheck -c's; all of them succeeded. It looks as though, when amandad(?) does a reverse lookup on the Amanda server's IP address, the old BIND predictably returns one of the host's FQDN's, but the new BIND can return either of them. -- | | /\ |-_|/ Eric Siegerman, Toronto, Ont.[EMAIL PROTECTED] | | / It must be said that they would have sounded better if the singer wouldn't throw his fellow band members to the ground and toss the drum kit around during songs. - Patrick Lenneau
Re: Rebuilding my backup server
On Fri, Jul 02, 2004 at 10:42:00AM +0100, Gavin Henry wrote: I do use knoppix heavily, maybe it's my ignorance, but how will it know what to restore without my disklists and conf files? You can't use amrecover until you get that stuff off the tape, but you can use amrestore, which, by design, doesn't need any of Amanda's on-disk data; all it needs is the backup media. To start, you can use amrestore to get a coarse-grained overview of the tape, using something like: mt rewind amrestore /dev/nst0 nonexistent-host-name Amrestore (N.B., not amrecover) will happily trundle through the tape looking for DLEs for nonexistent-host-name, and in the process of not finding any, it'll print a nice list of the files on the tape. A lot less painful than all those dd's... -- | | /\ |-_|/ Eric Siegerman, Toronto, Ont.[EMAIL PROTECTED] | | / It must be said that they would have sounded better if the singer wouldn't throw his fellow band members to the ground and toss the drum kit around during songs. - Patrick Lenneau
Re: Rebuilding my backup server
On Fri, Jul 02, 2004 at 04:54:58AM -0400, Gene Heskett wrote: 5. dd again, this time useing a very large count, and feed that to gzip if needed, otherwise straight to tar. Minor improvement: instead of using a very large count, simply don't provide a count= argument at all: dd bs=32k skip=1 | whatever Without a count=, dd will run till end-of-file, and not worry about how many blocks it's copied. -- | | /\ |-_|/ Eric Siegerman, Toronto, Ont.[EMAIL PROTECTED] | | / It must be said that they would have sounded better if the singer wouldn't throw his fellow band members to the ground and toss the drum kit around during songs. - Patrick Lenneau
Re: Rebuilding my backup server
On Monday 05 July 2004 19:54, Eric Siegerman wrote: On Fri, Jul 02, 2004 at 04:54:58AM -0400, Gene Heskett wrote: 5. dd again, this time useing a very large count, and feed that to gzip if needed, otherwise straight to tar. Minor improvement: instead of using a very large count, simply don't provide a count= argument at all: dd bs=32k skip=1 | whatever Without a count=, dd will run till end-of-file, and not worry about how many blocks it's copied. Touche`!, I had forgotten that detail. Thanks for clarifying that. -- Cheers, Gene There are 4 boxes to be used in defense of liberty. Soap, ballot, jury, and ammo. Please use in that order, starting now. -Ed Howdershelt, Author Additions to this message made by Gene Heskett are Copyright 2004, Maurice E. Heskett, all rights reserved.