This is for a High-Bandwidth Network. If you have a Low-Bandwidth Network you can try to switch lzo with bzip2.
Target:
nc -v -l -p 19000 | lzop -c -d | pv -s 70G | dd bs=16M of=/root/foo.img
- listen on port 19000 for connections.
- decompress the datapackages.
- pv displays a status bar.
- and wirte them into a file.
Source:
dd bs=16M if=/root/bar.img | lzop -3 -c | nc -v 10.0.01 19000
- dd reads the file in 16MB Blocks.
- each block will be compressed with lzo.
- nc connects 10.0.01 on port 19000 and pushes data.