From owner-freebsd-questions@FreeBSD.ORG Tue Mar 30 11:05:32 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 34E5616A4CE for ; Tue, 30 Mar 2004 11:05:32 -0800 (PST) Received: from mailozz.schemasoft.com (mailozz.schemasoft.com [207.102.98.71]) by mx1.FreeBSD.org (Postfix) with ESMTP id E5BF643D39 for ; Tue, 30 Mar 2004 11:05:31 -0800 (PST) (envelope-from zevt@schemasoft.com) Received: from schemail.schemasoft.lan [192.168.99.13] by mailozz.schemasoft.com with XWall v3.29 ; Tue, 30 Mar 2004 11:05:31 -0800 Received: from [192.168.99.173] (localpc173 [192.168.99.173]) by schemail.schemasoft.lan with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2657.72) id 17BWTGSL; Tue, 30 Mar 2004 11:05:30 -0800 Mime-Version: 1.0 (Apple Message framework v613) Content-Transfer-Encoding: 7bit Message-Id: <365B60B6-827D-11D8-8872-000A27AFDA88@schemasoft.com> Content-Type: text/plain; charset=US-ASCII; format=flowed To: freebsd-questions@freebsd.org From: Zev Thompson Date: Tue, 30 Mar 2004 11:05:30 -0800 X-Mailer: Apple Mail (2.613) Subject: 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 19:05:32 -0000 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