cygwin tar omits directory when creating archive

Posted by Dean Schulze on Super User See other posts from Super User or by Dean Schulze
Published on 2012-10-11T13:54:37Z Indexed on 2012/11/05 17:05 UTC
Read the original article Hit count: 225

Filed under:
|

I have the following directory structure

books/java
books/java.ebooks
books/java.gwt
books/java.swing
books/javaee

I use this command to create an archive of all the directories starting with the letters a-m

tar czf books.a-m.no.AI.tgz --exclude=books/AI.and.algorithms --exclude=books/[N-Z]* --exclude=books/[n-z]* books

The .tgz archive that gets created does not contain the java.swing/ directory.

Am I missing something in my use of tar or is this a bug in cygwin?

© Super User or respective owner

Related posts about cygwin

Related posts about tar