Date: Wed, 31 Oct 2001 16:11:49 -0500 From: "Peter Brezny" <peter@skyrunner.net> To: <freebsd-questions@freebsd.org> Subject: pulling specific files out of a huge tar archive Message-ID: <NEBBIGLHNDFEJMMIEGOOKEOAEEAA.peter@skyrunner.net>
next in thread | raw e-mail | index | archive | help
I need to pull one directory out of a tar archive that contains multiple directories. How do I do that? It's just a simple gzipped tar archive '.tgz' back before tar had bzip built in, to extract files that had been tarred and compressed with bzip, i would run a command like this bunzip2 < /location/of/file.tar.bz2 | tar xvfp - home/www/data/* But I don't really know how to put that into action since i'm just dealing with the tar command now. i tried tar tvzf /locations/of/source/file /director/to/restore but it didn't appear to work (huge file, long wait, console timeout :( TIA Peter Brezny Skyrunner.net 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?NEBBIGLHNDFEJMMIEGOOKEOAEEAA.peter>