From owner-freebsd-questions Sat May 4 4:33:41 2002 Delivered-To: freebsd-questions@freebsd.org Received: from hercules.worldgatein.com (hercules.worldgatein.com [203.109.64.24]) by hub.freebsd.org (Postfix) with ESMTP id D83F537B400 for ; Sat, 4 May 2002 04:33:35 -0700 (PDT) Received: from rivendell.worldgatein.net (interoffice.worldgatein.com [203.109.64.31]) by hercules.worldgatein.com (Postfix) with ESMTP id 440421005236; Sat, 4 May 2002 16:34:09 +0530 (IST) Received: by rivendell.worldgatein.net (Postfix, from userid 1001) id 0D84332611; Sat, 4 May 2002 17:32:38 +0530 (IST) Date: Sat, 4 May 2002 17:32:37 +0530 From: Devdas Bhagat To: Odhiambo Washington Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Help get reverse of this command Message-ID: <20020504173237.A24097@rivendell.worldgatein.net> Reply-To: Devdas Bhagat Mail-Followup-To: Odhiambo Washington , freebsd-questions@FreeBSD.ORG References: <20020504103049.GA30802@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: <20020504103049.GA30802@ns2.wananchi.com>; from wash@wananchi.biz on Sat, May 04, 2002 at 01:30:49PM +0300 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 04/05/02 13:30 +0300, Odhiambo Washington wrote: > I can do this > > tar $some_args some_dirs | /usr/bin/ssh alligator '(cd /home/wash/Administration/Backups; cat > filename.tgz)' > > this pipes the output to the remote host... > > > How do I 'backpipe' in such a situation, i.e. login to remote host, tar up some_dir and put it here (on > the host I am logged in)? ssh hostB -c "tar -zc $files -f - |ssh hostA > file.tgz" or if you have rmt, ssh hostB -c "tar -zcf hostA:file.tgz" man tar is your friend. Devdas Bhagat To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message