Date: Sat, 4 May 2002 17:32:37 +0530 From: Devdas Bhagat <devdas@worldgatein.net> To: Odhiambo Washington <wash@wananchi.biz> Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Help get reverse of this command Message-ID: <20020504173237.A24097@rivendell.worldgatein.net> In-Reply-To: <20020504103049.GA30802@ns2.wananchi.com>; from wash@wananchi.biz on Sat, May 04, 2002 at 01:30:49PM %2B0300 References: <20020504103049.GA30802@ns2.wananchi.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020504173237.A24097>