-   Linux - Software (
-   -   (un)tar a certain directory from an archive (

Suinatsa 06-20-2006 07:37 AM

(un)tar a certain directory from an archive
Hey guys,
I have a huge backup archive which contains 4 different folders. Now I only need one of the folders.
The tar file is to big to be extracted as a whole. It would take too long so how can I only extract a certain directory from a tar file?

I tried

tar xf file.tar --exlude 'directory/*' --exclude directory *

but that did not work!



zeitounator 06-20-2006 07:54 AM


tar xf file.tar path/of/dir/in/archive
more generally

tar xf file.tar [fileOrDirToExtract]

Suinatsa 06-20-2006 08:09 AM

Thanks that's what I needed!

All times are GMT -5. The time now is 03:47 PM.