Hello,

when extracting an incremental archive to a directory specified with -C,
files that were removed in later backup levels are _not removed_ from
the disk.  It is reproducible with GNU tar 1.26.  Behaviour was correct
in version 1.23.

Example:

$ tar --listed-incremental=testdir.snar -cvf testdir.tar testdir
tar: testdir: Directory is new
testdir/
testdir/file1
testdir/file2

$ rm testdir/file2 

$ tar --listed-incremental=testdir.snar -cvf testdir.1.tar testdir
testdir/

$ tar --listed-incremental=/dev/null -xvf testdir.tar -C extract/
testdir/
testdir/file1
testdir/file2

$ tar --listed-incremental=/dev/null -xvf testdir.1.tar -C extract/
testdir/

$ ls extract/testdir/
file1  file2  <---- file2 should not exists here!

Best Regards,
Robert


-- 
Róbert Čerňanský
E-mail: [email protected]
Jabber: [email protected]

Reply via email to