Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 192978 - app-arch/tar-1.18-r2 --exclude-tag --listed-incremental doesn't work
Summary: app-arch/tar-1.18-r2 --exclude-tag --listed-incremental doesn't work
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-09-18 21:24 UTC by Oliver Knodel
Modified: 2007-12-24 13:21 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Oliver Knodel 2007-09-18 21:24:06 UTC
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
Comment 1 Oliver Knodel 2007-10-12 22:34:02 UTC
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.
Comment 2 SpanKY gentoo-dev 2007-12-24 13:21:16 UTC
thanks for checking ... tar-1.19 is in the tree now