Tar

Rocky Hurley rlh-list at nmrg.net
Mon Jan 19 21:19:59 UTC 2004


On Sat, 2004-01-17 at 10:28, Robert Nichols wrote:
> Rocky Hurley wrote:
> > 
> > ok... this is cut extremely short for brevity.
> > 
> > List to compress: AKA $tmpbkdir/bkuplist.txt
> > 
> > ====================================8<-----------------------------
> > home/rocky/sshtunnel
> > home/rocky/.xmms/
> > home/rocky/.xmms/Skins/
> [SNIP]
> 
> tar is doing exactly what you told it to do.  You asked tar to
> process the directory "home/rocky/.xmms/", which tells tar to
> recurse into that directory and process everything below it,
> including recursing into all subdirectories it finds.  Then you
> told tar to process the directory "home/rocky/.xmms/Skins/", and
> tar obediently processes that directory and everything below it.
> It is quite possible to have multiple copies of the same file in a
> tar archive.  If that's what you ask for, that's what you get.
> 
> If you're building a list of things to include in a tar archive,
> never include a directory name unless you really want *everything*
> below that directory.  There is no way to include just a directory
> name in a tar archive without having tar recurse into that directory.
> 
> -- 
> Bob Nichols         rnichols at interaccess.com
> 
> 
Thanks Bob, 

That was it... now..... How do I tell find to exclude the top
directories?

-- 
Rocky
rlh-list_AT_nmrg.net
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20040119/8421befc/attachment-0001.sig>


More information about the fedora-list mailing list