Hi,

If an existing non-empty directory is deleted and then replaced by a symbolic link (with the same name) pointing to a new target, then the listed-incremental mechanism fails, at least with version 1.15.1.

The attached transcript explains what I mean (I hope).

Many thanks.
$ tar --version
tar (GNU tar) 1.15.1
$ cd
$ mkdir tmp
$ cd tmp
$ mkdir testbackup
$ mkdir testbackup/foo
$ mkdir testbackup/bar
$ touch testbackup/bar/file.bar
$ tar --create --verbose --listed-incremental=tar.lst --file test.tar testbackup
tar: testbackup/foo: Directory is new
tar: testbackup/bar: Directory is new
testbackup/
testbackup/bar/
testbackup/foo/
testbackup/bar/file.bar
$ rm -r testbackup/bar
$ mkdir bar-target
$ ln -s $HOME/tmp/bar-target testbackup/bar
$ tar --create --verbose --listed-incremental=tar.lst --file test-1.tar 
testbackup
testbackup/
testbackup/foo/
testbackup/bar
$ rm -r testbackup
$ tar --extract --verbose --file=test.tar --listed-incremental=/dev/null
testbackup/
testbackup/bar/
testbackup/foo/
testbackup/bar/file.bar
$ tar --extract --verbose --file=test-1.tar --listed-incremental=/dev/null
testbackup/
testbackup/foo/
testbackup/bar
tar: testbackup/bar: Cannot open: File exists
tar: Error exit delayed from previous errors
$ ls -l testbackup
total 16
drwxrwx--- 2 joe joe 4096 2006-09-29 12:32 bar
drwxrwx--- 2 joe joe 4096 2006-09-29 12:30 foo

_______________________________________________
Bug-tar mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-tar

Reply via email to