Date: Mon, 4 Jan 1999 10:01:01 -0800 From: "Bruce A. Mah" <bmah@ca.sandia.gov> To: Roman Katsnelson <rkatsnel@globix.com>, jm7996@devrycols.edu Cc: "q's" <freebsd-questions@FreeBSD.ORG>, bmah@ca.sandia.gov Subject: Re: disk space issues Message-ID: <19990104100101.B9724@ca.sandia.gov> In-Reply-To: <3690FDD5.46529799@globix.com>; from Roman Katsnelson on Mon, Jan 04, 1999 at 12:43:49PM -0500 References: <Pine.BSF.4.05.9901041238310.21067-100000@insomnia.local.net> <3690FDD5.46529799@globix.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--JYK4vJDZwFMowpUq Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable On Mon, Jan 04, 1999 at 12:43:49PM -0500, Roman Katsnelson wrote: > "James A. Mutter" wrote: > > > but that actually gzips every file, which is unacceptable on a live > > > server. is there anyway I can get all these files into one gzipped one > > > WITHOUT affecting the originals? or anything else I can do? > > > > >=20 > > Why not try using tar and then gzip? > >=20 > > tar xvf docs.tar ./docs >=20 > this doesn't work, because there's not enough space anywhere to store > docs.tar Try this: tar -cvf - ./docs | gzip -9v > docs.tar.gz One of the wonderful things about UNIX is the ability to compose commands like this. If you don't even have enough space for that, you can do something like: tar -cf - ./docs | ssh freebsd.host.com '(cd /document/directory; tar -xvf = -)' (Assuming you have ssh installed, you can try rsh otherwise.) This copies the directory tree without requiring any new space at all on the Solaris box. Note that I didn't bother compressing above. Bruce. --JYK4vJDZwFMowpUq Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: 2.6.2 iQCVAwUBNpEB3KjOOi0j7CY9AQHrIwP+KDtKCx2I0W16m7x7inU7T0RWOc9GEwuQ 9yXZi1/ExJ4omc1izGt/bOj0aKrZscWtJdOkWBkWBNqYKvXWLEMtxvX0Vtky9lw7 4vztSgzo6+cPk7pb+Ccsw5lUACtn0IWPg8tYSHaRtd/mRlBOTuaA50JghX/oxIZx uHVFcaXvHRQ= =By07 -----END PGP SIGNATURE----- --JYK4vJDZwFMowpUq-- 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?19990104100101.B9724>
