I also use Knoppix to do a bare metal restore of a CentOS 4 machine.

Here are our essential steps :

1) partition the disks (fdisk)
2) create raid (mdadm)
3) setup LVM (pvcreate, vgcreate, vgchange, lvcreate)
4) create filesystems (mke2fs, mkswap)
5) mount the filesystem
6) extract the backup from the backup server using a method like Carl 
suggested

[EMAIL PROTECTED]:~$ /usr/share/backuppc/bin/BackupPC_tarCreate -h
client.example.tld -n -1 -s / / |gzip -1 |nc client.example.tld 8888

[EMAIL PROTECTED]:/mnt/targetdisk# nc -l -p 8888 | tar xzvp

7) restore ACLs since backuppc doesn't handle those (setfacl --restore)
       (we use a cronjob to backup the ACLs with getfacl)


--------------------------------------------------
From: "Rob Morin" <[EMAIL PROTECTED]>
Sent: Monday, November 05, 2007 10:13 AM
To: "Toni Van Remortel" <[EMAIL PROTECTED]>
Cc: <[email protected]>
Subject: Re: [BackupPC-users] Restoring entire Linux machine

> If possible i would like to hear more talk on doing something like the
> restore from live  distro as doing reliable and non time consuming
> images is a bitch... Are there any docs or detailed procedures on how to
> restore to a blank hard drive via a complete back up. I backup up "/"
> except for the afore  mentioned /proc /tmp bla bla  ... but what would a
> recommend live cd be? I use Debian Etch for instance....
>
> Rob Morin
> Director of Technologies
> Dido Internet Inc.
> Montreal,Canada
> http://www.dido.ca
> 514-990-4444
>
>
>
> Toni Van Remortel wrote:
>> Nick Triantafillou wrote:
>>
>>> Hi all,
>>>
>>> Would the basic procedure of restoring a Linux machine be to re-install
>>> the base system, get backuppc working (ssh keys etc) then restore the
>>> folders one at a time (or somesuch) to the client machine?
>>>
>>> Or is some kind of re-imaging/netbootable restore method possible to
>>> avoid that initial step so we're not overwriting every single file we
>>> just installed when trying to fix the broken system?
>>>
>>>
>> In theory, you could do this:
>> - take backups from / on the not-yet-dead server, except /dev /proc /sys
>> /tmp, with rsync
>> - start the reanimated server with a live cd, set up rsyncd with 1
>> module: / (which points to your /dev/sdXY)
>> - restore the server from BackupPC.
>> This should work, but will limit you to a detail level as high as your
>> backup:
>> - backing up /etc, /usr and /var separately from the original server,
>> allows you to restore them separately to eg other locations (or other
>> partitions). But you are not restricted to it (so you can restore it all
>> to 1 partition).
>>
>> But my recommendation on full restoration is this:
>> - take backups of /etc and /var/lib (or entire /var)
>> - reinstall your reanimated server with the same distro and version
>> - restore /etc and /var/lib AFTER installing all the needed software on
>> your server (like apache2 and mysql)
>> This is my method. Not yet needed, but as I have some experience in
>> embedded Linux systems, I know what you need to get a system up and
>> running ;-)
>>
>> More tips welcome, as usual.
>>
>> Regards,
>>
>>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems?  Stop.
> Now Search log events and configuration files using AJAX and a browser.
> Download your FREE copy of Splunk now >> http://get.splunk.com/
> _______________________________________________
> BackupPC-users mailing list
> [email protected]
> List:    https://lists.sourceforge.net/lists/listinfo/backuppc-users
> Wiki:    http://backuppc.wiki.sourceforge.net
> Project: http://backuppc.sourceforge.net/
> 

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
BackupPC-users mailing list
[email protected]
List:    https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:    http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/

Reply via email to