Friday, July 18, 2008

Creating Partimages of Host Machines (Very Customized For My Environment)


- Boot up the Knoppix CDROM into textual mode in RAM
knoppix 2 toram

- Eject the CDROM for possible use in another host

- Setup basic networking.

- Setup Ethernet interface:
ifconfig eth0 <ip> netmask <nm> up
- Setup default gateway (this can be skipped if files on same subnet):
route add default gw <ip_address>

- Setup correct date / time info. This information will be assumed to be correct by the partimage backup script.

export TZ=CDT
date 07181314 (MMDDhhmm)

- Assign "normal" root password

- Start up SSH server

/etc/init.d/ssh start

- SCREEN a new BASH session

chmod 755 /var/run/screen
screen bash

- Make a working directory and cd there:

mkdir /tmp/partimage
cd /tmp/partimage

- Scp the "partimage-backup.pl" script and the <hostname>-source-me.txt file.

- Source the <hostname>-source-me.txt file in.

- Use perl to execute the "partimage-backup.pl" script.