Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 26 Feb 2002 14:33:37 +0100
From:      Stijn Hoop <stijn@win.tue.nl>
To:        Odhiambo Washington <wash@wananchi.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: tar to a remote box
Message-ID:  <20020226143337.H49919@pcwin002.win.tue.nl>
In-Reply-To: <20020226132446.GF83827@ns2.wananchi.com>; from wash@wananchi.com on Tue, Feb 26, 2002 at 04:24:46PM %2B0300
References:  <20020226132446.GF83827@ns2.wananchi.com>

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

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

Hi,

On Tue, Feb 26, 2002 at 04:24:46PM +0300, Odhiambo Washington wrote:
> I know for sure that this is possible but I can't figure out how ;-?
>=20
> tar -cZf file.tgz | ssh remote_box -l username | put the file there
>=20
> I have a machine with limited disk space so I don't want to write the
> .tgz locally.

You specify the 'f' option to tar, with a local filename. Of course
tar wants to write to the local disk.

Try this:

$ tar czf - | ssh user@remote 'tar xzvf -'

You'll get a listing of every file succesfully unpacked on the remote
system.

HTH,

--Stijn

--=20
] Nothing safer than a 'cat /dev/wallet | grep $price > real-person; \
]       mv $thing-to-buy $my-case
I'd prefer 'mv $thing-to-buy $my-case && cat /dev/wallet | \
	grep $price > real-person
		-- Anonymous, freebsd-questions@freebsd.org,
			in message <200108020628.IAA11775@hugo10.ka.punkt.de>

--cYtjc4pxslFTELvY
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

iD8DBQE8e46xY3r/tLQmfWcRAjmHAJ9/d/mHJd1rjeW8rHxpitjS7+WjiQCeKqTF
RwVvUWXIdYL/rC1uF+qnrUk=
=RYiJ
-----END PGP SIGNATURE-----

--cYtjc4pxslFTELvY--

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?20020226143337.H49919>