Transport linux to remote host

This way you can copy entire linux server

On source:

tar --exclude /dev --exclude /proc --exclude /sys -c / | nc destination.ip.address 1234

On destination

Boot somehow (for example from bootable CDROM) and:

nc -l -p 1234 | tar -x -C /target

After transport finishes:

chroot

mkdir /target
mount -o dev dev /target/dev
mount -o proc proc /target/proc
mount -o sys sys /target/sys
chroot /target
source /etc/profile

grub

grub
  root (hd0,0)
  setup (hd0)
  quit

exit & reboot

exit
reboot
 
linux_transfer.txt · Last modified: 31.03.2010 17:51 (external edit)
 
Recent changes RSS feed Creative Commons License Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki