Ubuntu netcat

Netcat / nc
Fantastic little program!

network dump of a partition
e.g.

network dump qcow2 image to hdd
Dump a qemu .qcow2 VM over network to another pc. Mount the qcow2 image with nbd and dump as a block device via dd. Very fast!

Source

sudo -i qemu-nbd -c /dev/nbd0 kodi.qcow2 dd if=/dev/nbd0 | gzip -cf | nc 192.168.0.8 7000 -q 10

Target

sudo -i nc -l -p 7000 | gzip -dfc | dd of=/dev/sda