From owner-freebsd-questions Thu Mar 28 14:47:39 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mailsrv.otenet.gr (mailsrv.otenet.gr [195.170.0.5]) by hub.freebsd.org (Postfix) with ESMTP id 04BF037B41C for ; Thu, 28 Mar 2002 14:47:33 -0800 (PST) Received: from hades.hell.gr (patr530-a011.otenet.gr [212.205.215.11]) by mailsrv.otenet.gr (8.12.2/8.12.2) with ESMTP id g2SMlSg1028871; Fri, 29 Mar 2002 00:47:30 +0200 (EET) Received: from hades.hell.gr (hades [127.0.0.1]) by hades.hell.gr (8.12.2/8.12.2) with ESMTP id g2SMlTom003711; Fri, 29 Mar 2002 00:47:29 +0200 (EET) (envelope-from keramida@freebsd.org) Received: (from charon@localhost) by hades.hell.gr (8.12.2/8.12.2/Submit) id g2SMlSMo003710; Fri, 29 Mar 2002 00:47:29 +0200 (EET) (envelope-from keramida@freebsd.org) Date: Fri, 29 Mar 2002 00:47:28 +0200 From: Giorgos Keramidas To: George Georgalis Cc: Peter Leftwich , "Scott M. Nolde" , FreeBSD Questions Subject: Re: find | cpio syntax [use scp] Message-ID: <20020328224728.GB3044@hades.hell.gr> References: <20020327215404.A39175@smnolde.com> <20020328005735.D97853-100000@earl-grey.cloud9.net> <20020328192151.GA1528@hades.hell.gr> <20020328160724.K15459@trot.haven.dom> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020328160724.K15459@trot.haven.dom> User-Agent: Mutt/1.3.28i 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 2002-03-28 16:07, George Georgalis wrote: > On Thu, Mar 28, 2002 at 09:21:51PM +0200, Giorgos Keramidas wrote: > > > >I customarily use ssh to copy files over ssh links: > > > > $ tar cvf - . | gzip -9c | ssh -T user@host 'mkdir foo ; cd foo ; gzip -cd | tar xf -' > > > >The trick is to properly quote the ssh command, so that it's not executed > >by the local shell :-) > > I wouldn't mind seeing a translation using cpio, since I understand it can preserve more attributes. I tried but... > > doesn't work: find /var/tmp -print | cpio -oa | gzip -9c | ssh -T root@fait 'mkdir /tmp/foo ; cd /tmp/foo ; gzip | cpio -i' You missed the -cd options to the second gzip invocation (the one within the quotes). Giorgos Keramidas FreeBSD Documentation Project keramida@{freebsd.org,ceid.upatras.gr} http://www.FreeBSD.org/docproj/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message