tar with the options --exclude-tag and --listed-incremental doesn't work. I created the following files / dirs: oliver /tmp/tartest $ ls -Rl .: total 0 drwxr-xr-x 5 oliver oliver 120 16. Sep 12:07 src ./src: total 0 drwxr-xr-x 2 oliver oliver 120 16. Sep 12:08 1 drwxr-xr-x 2 oliver oliver 144 16. Sep 12:10 2 drwxr-xr-x 2 oliver oliver 120 16. Sep 12:08 3 ./src/1: total 0 -rw-r--r-- 1 oliver oliver 0 16. Sep 12:08 a -rw-r--r-- 1 oliver oliver 0 16. Sep 12:08 b -rw-r--r-- 1 oliver oliver 0 16. Sep 12:08 c ./src/2: total 0 -rw-r--r-- 1 oliver oliver 0 16. Sep 12:08 a -rw-r--r-- 1 oliver oliver 0 16. Sep 12:08 b -rw-r--r-- 1 oliver oliver 0 16. Sep 12:08 c -rw-r--r-- 1 oliver oliver 0 16. Sep 12:10 NOB ./src/3: total 0 -rw-r--r-- 1 oliver oliver 0 16. Sep 12:08 a -rw-r--r-- 1 oliver oliver 0 16. Sep 12:08 b -rw-r--r-- 1 oliver oliver 0 16. Sep 12:08 c Runnging tar: tar -cvvf test.tar --exclude-tag=NOB -g snar1 src/ tar: src/1: Directory is new tar: src/2: Directory is new tar: src/3: Directory is new drwxr-xr-x oliver/oliver 0 2007-09-16 12:07 src/ drwxr-xr-x oliver/oliver 0 2007-09-16 12:08 src/1/ drwxr-xr-x oliver/oliver 0 2007-09-16 12:10 src/2/ drwxr-xr-x oliver/oliver 0 2007-09-16 12:08 src/3/ -rw-r--r-- oliver/oliver 0 2007-09-16 12:08 src/1/a -rw-r--r-- oliver/oliver 0 2007-09-16 12:08 src/1/b -rw-r--r-- oliver/oliver 0 2007-09-16 12:08 src/1/c -rw-r--r-- oliver/oliver 0 2007-09-16 12:10 src/2/NOB -rw-r--r-- oliver/oliver 0 2007-09-16 12:08 src/2/a -rw-r--r-- oliver/oliver 0 2007-09-16 12:08 src/2/b -rw-r--r-- oliver/oliver 0 2007-09-16 12:08 src/2/c -rw-r--r-- oliver/oliver 0 2007-09-16 12:08 src/3/a -rw-r--r-- oliver/oliver 0 2007-09-16 12:08 src/3/b -rw-r--r-- oliver/oliver 0 2007-09-16 12:08 src/3/c The directory 'src/2' should not dumped. And without the -g option: oliver /tmp/tartest $ rm test.tar snar1 oliver /tmp/tartest $ tar -cvvf test.tar --exclude-tag=NOB src/ drwxr-xr-x oliver/oliver 0 2007-09-16 12:07 src/ drwxr-xr-x oliver/oliver 0 2007-09-16 12:08 src/1/ -rw-r--r-- oliver/oliver 0 2007-09-16 12:08 src/1/a -rw-r--r-- oliver/oliver 0 2007-09-16 12:08 src/1/b -rw-r--r-- oliver/oliver 0 2007-09-16 12:08 src/1/c drwxr-xr-x oliver/oliver 0 2007-09-16 12:10 src/2/ tar: src/2/: contains a cache directory tag NOB; contents not dumped -rw-r--r-- oliver/oliver 0 2007-09-16 12:10 src/2/NOB drwxr-xr-x oliver/oliver 0 2007-09-16 12:08 src/3/ -rw-r--r-- oliver/oliver 0 2007-09-16 12:08 src/3/a -rw-r--r-- oliver/oliver 0 2007-09-16 12:08 src/3/b -rw-r--r-- oliver/oliver 0 2007-09-16 12:08 src/3/c
It is fixed in Version GNU tar 1.19. I tested it with the files of the preceding posting, the output of: oliver ~/tmp/tartest $ tar -cvvf test.tar --exclude-tag=NOB -g snar1 src/ tar: src/1: Directory is new tar: src/2: Directory is new tar: src/2: contains a cache directory tag NOB; contents not dumped tar: src/3: Directory is new drwxr-xr-x oliver/oliver 0 2007-10-13 00:17 src/ drwxr-xr-x oliver/oliver 0 2007-10-13 00:19 src/1/ drwxr-xr-x oliver/oliver 0 2007-10-13 00:21 src/2/ drwxr-xr-x oliver/oliver 0 2007-10-13 00:19 src/3/ -rw-r--r-- oliver/oliver 0 2007-10-13 00:19 src/1/a -rw-r--r-- oliver/oliver 0 2007-10-13 00:19 src/1/b -rw-r--r-- oliver/oliver 0 2007-10-13 00:19 src/1/c -rw-r--r-- oliver/oliver 0 2007-10-13 00:19 src/3/a -rw-r--r-- oliver/oliver 0 2007-10-13 00:19 src/3/b -rw-r--r-- oliver/oliver 0 2007-10-13 00:19 src/3/c Additional Information from the bug-tar mailing list: I am pleased to announce the release of GNU tar 1.19. GNU tar is available for download from ftp://ftp.gnu.org/gnu/tar and the mirror sites worldwide (see http://www.gnu.org/order/ftp.html for the list of those). ... The following options now work with incremental archives as well: --exclude-caches --exclude-caches-all --exclude-tag --exclude-tag-all --exclude-tag-under ... I don't know if i should close this bus report, because this is my first one.
thanks for checking ... tar-1.19 is in the tree now