From owner-freebsd-questions Thu Mar 28 13:22:17 2002 Delivered-To: freebsd-questions@freebsd.org Received: from trot.galis.org (ool-18bd0cd9.dyn.optonline.net [24.189.12.217]) by hub.freebsd.org (Postfix) with ESMTP id 2AA3537B419 for ; Thu, 28 Mar 2002 13:22:07 -0800 (PST) Received: (from gx@localhost) by trot.galis.org (8.11.6/8.11.6) id g2SLO2M18747; Thu, 28 Mar 2002 16:24:02 -0500 Date: Thu, 28 Mar 2002 16:24:02 -0500 From: George Georgalis To: "Scott M. Nolde" Cc: Stanislav Grozev , "Patrick O'Reilly" , freebsd-questions@FreeBSD.ORG Subject: Re: find | cpio syntax Message-ID: <20020328162402.M15459@trot.haven.dom> References: <20020327215404.A39175@smnolde.com> <00ed01c1d637$4c5ccca0$b50d030a@PATRICK> <20020328082608.C39175@smnolde.com> <20020328133053.GC8461@meerkat.dungeon> <20020328103704.A75379@smnolde.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <20020328103704.A75379@smnolde.com>; from scott@smnolde.com on Thu, Mar 28, 2002 at 10:37:05AM -0500 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 Thu, Mar 28, 2002 at 10:37:05AM -0500, Scott M. Nolde wrote: >Stanislav Grozev(tacho@factline.com)@2002.03.28 14:30:53 +0000: >> On Thu, Mar 28, 2002 at 08:26:08AM -0500, Scott M. Nolde wrote: >> > Yes, but tar doesn't preserve file ownerships. The idea is to use find to >> > give a pathspec to cpio which will write to stdout which is piped to ssh >> > to a remote machine where the tgzi file is built. >> > >> > If there is limited space on the remote machine I cannot make a tgz of its >> > filesystem. But if i can write everything to stdout which is piped to ssh >> > i can store the compressed file on the local machine which has the space. >> > >> > Any further ideas? >> >> why not: >> >> tar cfp - . | ssh host -c '(cd /path; tar xvfp -)' >> >> (p for permissions, v - verbose) >> >> -tacho > >tar doesn't preserve ownerships. cpio will. btw, I've already used > tar -zcvpf - . | ssh host "tar -C path -zxvfp -" >but again, my concerns are ownerships. for what it's worth here is my cpio notes... find -print | cpio -pau /destination but that's not what we're looking for. // George -- GEORGE GEORGALIS, System Admin/Architect cell: 347-451-8229 Security Services, Web, Mail, mailto:george@galis.org File, Print, DB and DNS Servers. http://www.galis.org/george To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message