pigz

The purpose of this document is to explain pigz. yum -y install pigz

Compress a directory tar -cf - /dir | pigz --to-stdout --verbose > file.tgz

Extract a directory unpigz --to-stdout --verbose file.tgz | tar -xf -

Pigz with Netcat Note: does not work with symlinks.

Source (wait for pull) tar -cf - /prod/mysql | pv --size $(du -sb /prod/mysql/. | cut -f1) | pigz -5 | nc -l 8888

Destination (initiates pull) cd /tank/prod/ && time nc <remote_ip> 8888 | gunzip | tar -xvf -

[Edit]