Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 26 Feb 2002 05:38:59 -0800
From:      "Crist J. Clark" <cjc@FreeBSD.ORG>
To:        Odhiambo Washington <wash@wananchi.com>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: tar to a remote box
Message-ID:  <20020226053859.M52727@blossom.cjclark.org>
In-Reply-To: <20020226132446.GF83827@ns2.wananchi.com>; from wash@wananchi.com on Tue, Feb 26, 2002 at 04:24:46PM %2B0300
References:  <20020226132446.GF83827@ns2.wananchi.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Feb 26, 2002 at 04:24:46PM +0300, Odhiambo Washington wrote:
> Hello list,
> 
> I know for sure that this is possible but I can't figure out how ;-?
> 
> 
> tar -cZf file.tgz | ssh remote_box -l username | put the file there
> 
> I have a machine with limited disk space so I don't want to write the
> .tgz locally.
> 
> possible??

Sure.

  $ tar czf - path/to/archive | ssh remote-box -luser 'cat > file.tgz'

-- 
Crist J. Clark                     |     cjclark@alum.mit.edu
                                   |     cjclark@jhu.edu
http://people.freebsd.org/~cjc/    |     cjc@freebsd.org

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




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