From owner-freebsd-stable Fri Jul 26 13:10:39 2002 Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8720937B400 for ; Fri, 26 Jul 2002 13:10:33 -0700 (PDT) Received: from obsidian.sentex.ca (obsidian.sentex.ca [64.7.128.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id F171C43E3B for ; Fri, 26 Jul 2002 13:10:32 -0700 (PDT) (envelope-from mike@sentex.net) Received: from simian.sentex.net (pyroxene.sentex.ca [199.212.134.18]) by obsidian.sentex.ca (8.12.5/8.12.4) with ESMTP id g6QKAUOF090926; Fri, 26 Jul 2002 16:10:31 -0400 (EDT) (envelope-from mike@sentex.net) Message-Id: <5.1.1.6.0.20020726155650.06c6f578@marble.sentex.ca> X-Sender: mdtpop@marble.sentex.ca X-Mailer: QUALCOMM Windows Eudora Version 5.1.1 Date: Fri, 26 Jul 2002 16:13:36 -0400 To: stable@freebsd.org From: Mike Tancsa Subject: strange SSH / tar problem Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Virus-Scanned: By Sentex Communications (obsidian/20020220) Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On a number of my servers I use tar via ssh to do frequent backups of files to a central backup server. The backup server is running an older ssh, but the same problem happens with the most recent versions. SSH-1.99-OpenSSH_2.9 FreeBSD localisations 20020307 If I do a tar over ssh the resulting file has an error at the end. e.g. source is running SSH-1.99-OpenSSH_3.4p1 FreeBSD-20020702 destination (20020307) tar -cpzf - /etc /usr/local/etc | /usr/bin/ssh userid@on-backup-server.example.com "cat - > /path-to-files/userid/backup.`date "+%y%m%d"`.tgz" When I go to test the file, I get tar -tzf backup.020726.tgz usr/local/etc/apache.bak/httpd.conf.default gzip: stdin: decompression OK, trailing garbage ignored usr/local/etc/apache.bak/access.conf.default usr/local/etc/apache.bak/access.conf tar: child returned status 2 It seems to work OK, but I was a bit surprised about the warning message From the source server md5 * MD5 (t.zip) = 868cd7e432dc2ad7049a2c61a2403194 MD5 (t2.zip) = 90279347e332762c0fc43798b4ae4d57 MD5 (webalizer.conf) = dd948a77ba729a471f7ade18088b3680 tar -cpzf - /tmp/test-files | /usr/bin/ssh userid@backupserver.example.com "cat - > /path-to-files/userid/testb.`date "+%y%m%d"`.tgz" and the target server tar -xzf testb.020726.tgz gzip: stdin: decompression OK, trailing garbage ignored tar: child returned status 2 cd test-files/ backupserver# md5 * MD5 (t.zip) = 868cd7e432dc2ad7049a2c61a2403194 MD5 (t2.zip) = 90279347e332762c0fc43798b4ae4d57 MD5 (webalizer.conf) = dd948a77ba729a471f7ade18088b3680 The sshd_config and ssh_config on both machines are stock. If I got from a stable box as of today to another stable box as of today, the same error happens. ---Mike -------------------------------------------------------------------- Mike Tancsa, tel +1 519 651 3400 Sentex Communications, mike@sentex.net Providing Internet since 1994 www.sentex.net Cambridge, Ontario Canada www.sentex.net/mike To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message