Difference between revisions of "Copy a file over the network, but packed"

From Linuxintro
imported>ThorstenStaerk
(Created page with " # bzip2 -kvzc COMPLETE_DATA_BACKUP_7_1 | ssh root@target "(cat >/mnt/sdb1/backup7.bz2)" &")
 
imported>ThorstenStaerk
 
Line 1: Line 1:
 +
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)" &
 
  # bzip2 -kvzc COMPLETE_DATA_BACKUP_7_1 | ssh root@target "(cat >/mnt/sdb1/backup7.bz2)" &

Latest revision as of 15:05, 19 February 2015

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)" &