On Fri, Jun 14, 2002 at 12:41:27PM +1000, Chris Freeman wrote:
> Hi all,
> I have to do a complete restore of a Debian server from one of our
> backup tapes. The whole server was rendered useless due to a sysadmin
> mishap and has since been rebuilt. If possible I would like to restore
> the server exactly the same as it was before the mishap. So basically I
> would just like any comments on the method that I plan to use to rebuild
> it. If anyone can think of any issues that I have overlooked, or has any
> suggestions about my method than these would be very appreciated.
>
> My thoughts:
> -rebuild the box with same Debian install and same partitioning (already
> done).
> -build Amanda and then restore all the data to an empty directory. (are
> there any issues with restoring from a fresh install of Amanda?
> Obviously there will be no index files on the debian server)
> -boot the box into rescue mode from the CD. (mount HDD's etc)
> -copy the data to root level and put in to all relevant partitions.
> -chroot to HDD and run lilo. (to reset the boot record).
> -reboot box and keep fingers crossed.
Here's my (as of yet untested) procedure. It avoids having to reubild
Amanda and protects against cruft files left from the temporary install.
For bare-metal non-tape-server recovery:
* Partition & mkfs target system with same partition scheme, but make
the old swap partition an e2fs partition
* Perform a minimal Debian install to the "swap" partition
* Install gnupg, gzip, netcat, & netcat
* Install the key that I encrypted my backups with
* Mount the destination partitions on /target
* For each backed-up image:
- Start netcat listening on the target & pipe its output through zcat,
gpg & tar (or restore, if I used dump)
- On the server, dd the backup image from tape & through netcat to the
target
* cd /target && chroot . /sbin/lilo
* umount & reboot
* Change the temporary parititon's partition type (if necessary), wipe
it with dd to erase my gpg private key, mkswap it, and swapon it
To recover a tapeserver, my procedure is the same, only without netcat
in the pipeline.
I use Amanda's tape label feature to print indexes of each tape. If
you're not using it, and your indexes are lost, you should be able to
read the Amanda header off each file on the tape to find out what it
is and where it goes.
--
William Aoki [EMAIL PROTECTED] /"\ ASCII Ribbon Campaign
B1FB C169 C7A6 238B 280B <- key change \ / No HTML in mail or news!
99AF A093 29AE 0AE1 9734 prev. expired X
/ \