Date: Tue, 30 Mar 2004 13:21:11 -0800 From: Joshua Lokken <joshua@twobirds.us> To: Zev Thompson <zevt@schemasoft.com> Cc: freebsd-questions@freebsd.org Subject: Re: tar & ssh: strange gzip error message? Message-ID: <20040330212111.GB2104@cs025_2k> In-Reply-To: <365B60B6-827D-11D8-8872-000A27AFDA88@schemasoft.com> References: <365B60B6-827D-11D8-8872-000A27AFDA88@schemasoft.com>
next in thread | previous in thread | raw e-mail | index | archive | help
* Zev Thompson <zevt@schemasoft.com> [2004-03-30 11:14]: > 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, I don't think so... [joshua@cs025_2k]$ ssh joshua@twobirds.us "cd /test && tar -cvzf - *" | tar -xzf - -C . GUIDE.pdf HeterogenousClusters.pdf SecurityAndopenMosix.pdf [joshua@cs035_2k]$ Both forms work happily here, but i did notice on subsequent copies of the same files I experienced some data corruption: GUIDE.pdf HeterogenousClusters.pdf SecurityAndopenMosix.pdf tar: SecurityAndopenMosix.pdf: file changed as we read it linux-kongress_2003_openMosix.pdf tar: Error exit delayed from previous errors -- Joshua Suffocating together ... would create heroic camaraderie. -- Khan Noonian Singh, "Space Seed", stardate 3142.8
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040330212111.GB2104>