bug-tar
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-tar] --listed-incremental/--no-recursion inconsistencies


From: Miek Gieben
Subject: [Bug-tar] --listed-incremental/--no-recursion inconsistencies
Date: Mon, 21 Feb 2005 15:38:11 +0100
User-agent: Vim/Mutt/Linux

Hello,

I ran into a problem with tar 1.14 and I decided to see if it still
was an issue in the lastest tar release (1.15.1). With some options
tar includes everything three(!) times in an archive.

What I did:

First create archive:
% ./tar --create --file hdup2.tar.gz --gzip --verbose ../hdup2 |grep hdup.conf.5
./tar: Removing leading `../' from member names
../hdup2/doc/hdup.conf.5

All files (and the hdup.conf.5 file) are included once in the archive. So
far, so good.

Next:
create filelist of the directory we want to backup:
find /tmp/hdup2 -name "*" -print > TEST/hdup2-filelist

% ./tar --create --file hdup2.tar.gz --gzip --verbose --files-from \
  hdup2-filelist |grep hdup.conf.5

./tar: Removing leading `/' from member names
/tmp/hdup2/doc/hdup.conf.5
/tmp/hdup2/doc/hdup.conf.5
/tmp/hdup2/doc/hdup.conf.5

All files are now three times included...? 

Next, use the --no-recursion options. This works, all files are only
included once. So --no-recursion and --files-from work together.

Next use the --listed-incremental option:
% ./tar --listed-incremental bla --no-recursion --create --file hdup2.tar.gz\
   --gzip --verbose --files-from hdup2-filelist|grep hdup.conf.5

./tar: /tmp/hdup2/doc: Directory is new
./tar: /tmp/hdup2/src: Directory is new
./tar: /tmp/hdup2/contrib: Directory is new
./tar: /tmp/hdup2/examples: Directory is new
./tar: Removing leading `/' from member names
/tmp/hdup2/doc/hdup.conf.5
/tmp/hdup2/doc/hdup.conf.5
/tmp/hdup2/doc/hdup.conf.5

Again everything is included 3 times.

If I tar again (with --listed-incremental) nothing is backed up, which is
correct, but all directies are still visited 2 times.

./tar: Removing leading `/' from member names
/tmp/hdup2/
/tmp/hdup2/contrib/
/tmp/hdup2/doc/
/tmp/hdup2/examples/
/tmp/hdup2/src/
/tmp/hdup2/contrib/
/tmp/hdup2/doc/
/tmp/hdup2/examples/
/tmp/hdup2/src/

Is there some other way (or a new option) which should be used to
force tar to include everything once and still be able to use
--no-recursion, --files-from and --listed-incremental?

Thanks in advance,

--
grtz,
  - Miek

http://www.miek.nl                   http://www.nlnetlabs.nl




reply via email to

[Prev in Thread] Current Thread [Next in Thread]