Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 26 Jul 2002 16:13:36 -0400
From:      Mike Tancsa <mike@sentex.net>
To:        stable@freebsd.org
Subject:   strange SSH  / tar problem
Message-ID:  <5.1.1.6.0.20020726155650.06c6f578@marble.sentex.ca>

next in thread | raw e-mail | index | archive | help

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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5.1.1.6.0.20020726155650.06c6f578>