From owner-freebsd-questions Wed Oct 31 13:12: 5 2001 Delivered-To: freebsd-questions@freebsd.org Received: from newmail.skyrunner.net (newmail.skyrunner.net [208.133.44.6]) by hub.freebsd.org (Postfix) with ESMTP id 5354837B403 for ; Wed, 31 Oct 2001 13:11:58 -0800 (PST) Received: from micron (booray.new-era.com [208.150.25.130]) by newmail.skyrunner.net (8.11.2/8.11.0/SuSE Linux 8.11.0-0.4) with SMTP id f9VLBvA22981 for ; Wed, 31 Oct 2001 16:11:57 -0500 From: "Peter Brezny" To: Subject: pulling specific files out of a huge tar archive Date: Wed, 31 Oct 2001 16:11:49 -0500 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) X-MimeOLE: Produced By Microsoft MimeOLE V5.00.3018.1300 Importance: Normal Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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