bug-tar
[Top][All Lists]
Advanced

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

[Bug-tar] Files are not removed while extracting incremental archive wit


From: Róbert Čerňanský
Subject: [Bug-tar] Files are not removed while extracting incremental archive with -C
Date: Sun, 26 Feb 2012 17:23:45 +0100

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: address@hidden
Jabber: address@hidden



reply via email to

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