Home » Questions » Computers [ Ask a new question ]

Creating a compressed archive with "tar" over the network

Creating a compressed archive with "tar" over the network

I want to copy a local disk image to another computer in the local network. It is a large directory (around 15 GB) and to speed it up I use this little trick:

Asked by: Guest | Views: 386
Total answers/comments: 1
Guest [Entry]

"How effective this is depends on where your commands are executed, and where the data is.

Assuming:

/Volumes/myserver is a network share,
/Users/francis/image-dir is on the client's local drive, and
both creation and extraction commands are being executed on the client,

I think you're correct -- no uncompressed data is crossing the network.

In the create case, you're reading uncompressed data from the local drive, compressing it, and writing the compressed data to the network drive. Network transmission is compressed.
In the extract case, you're reading compressed data from the network drive, uncompressing it, and writing the uncompressed data to the local drive. Again, network transmission is compressed."