remote dump and restore
ref
http://www.freebsd.org/doc/ja_JP.eucJP/books/handbook/backup-basics.html
http://hirotyanteikoku.cocolog-nifty.com/cocolog/2009/02/ubuntu-5d6b.html
dump
$ sudo -s
# dump -0uan -f - / | gzip -2 | ssh -c blowfish myname@xxx.xxx.xxx.xxx dd of=/home/myname/root.dump.gz
# dump -0uan -f - /boot | gzip -2 | ssh -c blowfish myname@xxx.xxx.xxx.xxx dd of=/home/myname/boot.dump.gz
restore
- install newsystem
- make centos5 liveCD (centos5 can mount LVM)
- boot from the liveCD
- login as root
- setup netwrok
- yum install dump
- mkdir /mnt/root
- mount root of newsystem to /mnt/root (# mount /dev/systemname/root /mnt/root)
- cd /mnt/root
- rm -Rf bin sbin usr etc ...
- zcat root.dump.gz | restore -rf -
- gedit /mnt/root/etc/fstab
- edit line "/" "/boot" and "swap"