taring to a remote node

2007-12-25 10:50:00

My question was:

I need to copy filesystems from one node to another across a WAN link. I am

using

tar -cvphf - . | remsh remotehost "(cd /remote_dir ; tar xvphf - )"

which works fine, but I would like to incorporate some compression in there

because it is about 15GB of data and is taking forever. I am brain-freezing

on this. Any ideas?

I missed the -c flag in the man page for compress so I was having problems.

The overwhelming response, first from Russ Poffenberger was:

tar -cvphf - . | compress -c | remsh remotehost "(cd /remote_dir ;

uncompress -c | tar xvphf - )"

The -c flag compresses to standard out, which is exactly what I needed.

Several people suggested a combination of gnutar and gzip but this is handy

and appears to be about 5 times as fast as uncompressed. Thanks for all the

responses.

Roger D. Leonard

Roger D. Leonard

Unix Systems Engineer

HealthAmerica, Pgh PA

rleonard@cvty.com

Comments

Got something to say?

You must be logged in to post a comment.