bug-tar
[Top][All Lists]
Advanced

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

[Bug-tar] Listed incremental fails with new symbolic link


From: Peter Kronheimer
Subject: [Bug-tar] Listed incremental fails with new symbolic link
Date: Fri, 29 Sep 2006 12:56:26 -0400
User-agent: Thunderbird 1.5.0.5 (X11/20060728)

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


reply via email to

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