Copy a file over the network, but packed

From Linuxintro

You want maximum speed when copying files over the network. To expedite transmission, it can be useful to compress the data before sending it because the amount of data to be transmitted gets reduced. On the other hand, when compressing, the CPU can become the bottleneck in the equation. However if you want to try it, here is a command that compresses before sending:

# bzip2 -kvzc COMPLETE_DATA_BACKUP_7_1 | ssh root@target "(cat >/mnt/sdb1/backup7.bz2)" &