From owner-freebsd-questions@FreeBSD.ORG Tue Mar 30 13:21:15 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id ECEC316A4CE for ; Tue, 30 Mar 2004 13:21:15 -0800 (PST) Received: from voyager.twobirds.us (c-24-18-214-102.client.comcast.net [24.18.214.102]) by mx1.FreeBSD.org (Postfix) with ESMTP id C227343D2D for ; Tue, 30 Mar 2004 13:21:15 -0800 (PST) (envelope-from joshua@twobirds.us) Received: from [12.18.154.2] (helo=localhost) by voyager.twobirds.us with esmtp (Exim 4.30; FreeBSD) id 1B8Qf3-000PK5-Q7; Tue, 30 Mar 2004 13:20:41 -0800 Date: Tue, 30 Mar 2004 13:21:11 -0800 From: Joshua Lokken To: Zev Thompson Message-ID: <20040330212111.GB2104@cs025_2k> Mail-Followup-To: Zev Thompson , freebsd-questions@freebsd.org References: <365B60B6-827D-11D8-8872-000A27AFDA88@schemasoft.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <365B60B6-827D-11D8-8872-000A27AFDA88@schemasoft.com> User-Agent: Mutt/1.4.1i X-Organization: Little to none... cc: freebsd-questions@freebsd.org Subject: Re: tar & ssh: strange gzip error message? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Mar 2004 21:21:16 -0000 * Zev Thompson [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