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

next in thread | previous in thread | raw e-mail | index | archive | help

--H8ygTp4AXg6deix2
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

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.
>=20
> 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.
>=20
> Any further ideas?

why not:

tar cfp - . | ssh host -c '(cd /path; tar xvfp -)'

(p for permissions, v - verbose)

-tacho
--=20
[a lie is my shield] | [http://daemonz.org/ || tacho@daemonz.org]
0x44fc3339 || [02b5 798b 4bd1 97fb f8db 72e4 dca4 be03 44fc 3339]

--H8ygTp4AXg6deix2
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (FreeBSD)
Comment: For info see http://www.gnupg.org

iD8DBQE8oxsN3KS+A0T8MzkRAgEsAJ0ZHkbfL+ImgJYmiIgAbs9gpKpqbwCfXvXF
ukSxHW21+53T9uX88dtqRA4=
=RZNZ
-----END PGP SIGNATURE-----

--H8ygTp4AXg6deix2--

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?20020328133053.GC8461>