Tar files over the network
Linux

When transferring large amounts of data, its a good idea to tar/gzip it first. What if there is not enough space on the source system to contain both the original content and the tar/gzipped content?

One common solution would be to use tar gzip over the network:

#tar zcvf - /mydata | ssh root​@​remote.server.com "cat > /data/mydata.tar.gz"

Where "mydata" is the source directory on the source system and "/data/mydata.tar.gz" is the destination directory on the destination system.

Last Updated on Tuesday, 10 November 2009 08:21
 

Add your comment

Your name:
Subject:
Comment:
  The word for verification. Lowercase letters only with no spaces.
Word verification:
yvComment v.1.24.0