Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 28 Mar 2002 10:37:05 -0500
From:      "Scott M. Nolde" <scott@smnolde.com>
To:        Stanislav Grozev <tacho@factline.com>
Cc:        Patrick O'Reilly <bsd@perimeter.co.za>, freebsd-questions@FreeBSD.ORG
Subject:   Re: find | cpio syntax
Message-ID:  <20020328103704.A75379@smnolde.com>
In-Reply-To: <20020328133053.GC8461@meerkat.dungeon>; from tacho@factline.com on Thu, Mar 28, 2002 at 02:30:53PM %2B0100
References:  <20020327215404.A39175@smnolde.com> <00ed01c1d637$4c5ccca0$b50d030a@PATRICK> <20020328082608.C39175@smnolde.com> <20020328133053.GC8461@meerkat.dungeon>

next in thread | previous in thread | raw e-mail | index | archive | help
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.

- Scott
-- 
Scott Nolde
GPG Key 0xD869AB48

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?20020328103704.A75379>