Home > Uncategorized, it > cloning machines (servers, pc) via network, compressed

cloning machines (servers, pc) via network, compressed

sometimes you need to clone a server on the fly (directly from one server/pc to the other without a local copy). Usually I’m using clonezilla. But for some reasons, it was unable to transfer the data between the nodes. So I just was looking for a possibility to clone the source to the target disk within a possibility to compress (fasten) the transfer.

and I found some solution:

booting up some rescue disc (e.g. debian) and running some (target with ip: 192.168.0.123):

root @source$: dd if=/dev/hda bs=1024k | buffer -s 512k -S 10m | gzip | netcat 192.168.0.123 1234

root @target$: netcat -l -p 1234 | gunzip | dd of=/dev/hda

this worked for me. please report if you’re going fine ;)

Categories: Uncategorized, it Tags:
  1. No comments yet.
  1. No trackbacks yet.