Description of problem: tar does not care about the "exclude=PATTERN" option Version-Release number of selected component (if applicable): tar-1.26-2.fc15.i686 How reproducible: execute tar cvf file.tar --exclude=home/user/movies/ Steps to Reproduce: 1. 2. 3. Actual results: includes the files under home/user/movies/ in the archive Expected results: would exclude them Additional info:
Did you try to remove the trailing slash from your --exclude?
No. I tried: --exclude=home/user/movies/ --exclude=home/user/movies/* I'll try again without the last slash.
Without the last slash, it works just fine. Il would be a good idea to tell it in the man pages.
Thanks for confirmation. Actually, GNU tar upstream doesn't maintain man pages - it only maintains info documentation - tar man pages are generated from --help output - and they are intended to be as compact as possible. In info documentation exclude section is quite detailed.
Finally tried again today and I confirm that it does not work with all options, with or without the last slash, with or without quotes. Finally I was wrong. I just tried --exclude="*.avi* as in the info pages and there is no change.
(In reply to comment #5) > Finally tried again today and I confirm that it does not work with all options, > with or without the last slash, with or without quotes. > > Finally I was wrong. > I just tried --exclude="*.avi* as in the info pages and there is no change. Finally I found the way I apologize