Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 30 Mar 2004 11:05:30 -0800
From:      Zev Thompson <zevt@schemasoft.com>
To:        freebsd-questions@freebsd.org
Subject:   tar & ssh: strange gzip error message?
Message-ID:  <365B60B6-827D-11D8-8872-000A27AFDA88@schemasoft.com>

next in thread | raw e-mail | index | archive | help
Hi all,

If I want to copy a bunch of files over ssh without extra servers, it's 
easy enough to use the following command:

[user@beastie]$ ssh user@example.com "cd /directory/to/copy && tar -cvf 
- *" | tar -xf - -C .

This works without complaint. However, when I change the options passed 
to tar, adding gzip compression on one end and decompression on the 
other:

[user@beastie]$ ssh user@example.com "cd /directory/to/copy && tar 
-cvzf - *" | tar -xzf - -C .

I get this error message:

gzip: stdin: decompression OK, trailing garbage ignored
tar: Child died with signal 13
tar: Error exit delayed from previous errors

Is my method wrong? It appears that the files transferred just fine, 
but I'm still curious as to what's going on. Thanks in advance to any 
replies.

Cheers,
Zev



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?365B60B6-827D-11D8-8872-000A27AFDA88>