From owner-freebsd-questions Tue Feb 26 5:39: 5 2002 Delivered-To: freebsd-questions@freebsd.org Received: from rwcrmhc51.attbi.com (rwcrmhc51.attbi.com [204.127.198.38]) by hub.freebsd.org (Postfix) with ESMTP id C69E337B404 for ; Tue, 26 Feb 2002 05:39:01 -0800 (PST) Received: from blossom.cjclark.org ([12.234.91.48]) by rwcrmhc51.attbi.com (InterMail vM.4.01.03.27 201-229-121-127-20010626) with ESMTP id <20020226133901.WXPV2626.rwcrmhc51.attbi.com@blossom.cjclark.org>; Tue, 26 Feb 2002 13:39:01 +0000 Received: (from cjc@localhost) by blossom.cjclark.org (8.11.6/8.11.6) id g1QDcxN56917; Tue, 26 Feb 2002 05:38:59 -0800 (PST) (envelope-from cjc) Date: Tue, 26 Feb 2002 05:38:59 -0800 From: "Crist J. Clark" To: Odhiambo Washington Cc: freebsd-questions@FreeBSD.ORG Subject: Re: tar to a remote box Message-ID: <20020226053859.M52727@blossom.cjclark.org> References: <20020226132446.GF83827@ns2.wananchi.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20020226132446.GF83827@ns2.wananchi.com>; from wash@wananchi.com on Tue, Feb 26, 2002 at 04:24:46PM +0300 X-URL: http://people.freebsd.org/~cjc/ Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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