Date: Wed, 31 Oct 2001 16:35:01 -0600 From: Dan Nelson <dnelson@allantgroup.com> To: Peter Brezny <peter@skyrunner.net> Cc: freebsd-questions@FreeBSD.ORG Subject: Re: pulling specific files out of a huge tar archive Message-ID: <20011031163500.A50504@dan.emsphone.com> In-Reply-To: <NEBBIGLHNDFEJMMIEGOOKEOAEEAA.peter@skyrunner.net> References: <NEBBIGLHNDFEJMMIEGOOKEOAEEAA.peter@skyrunner.net>
next in thread | previous in thread | raw e-mail | index | archive | help
In the last episode (Oct 31), Peter Brezny said: > 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 That should work, although for bzipped inputs you want j instead of z. You might also have to strip the leading slash from the patchname you're restoring. The best way to test is list the tarfile, and try extracting the very first file. -- Dan Nelson dnelson@allantgroup.com 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?20011031163500.A50504>