bug-tar
[Top][All Lists]
Advanced

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

[Bug-tar] Listed-incremental and old symlinks


From: Peter Kronheimer
Subject: [Bug-tar] Listed-incremental and old symlinks
Date: Sun, 01 Oct 2006 21:45:43 -0400
User-agent: Thunderbird 1.5.0.5 (X11/20060728)

Sorry to keep on at this. I am now using tar 1.15.91. The attached script uses --listed-incremental in an attempt to recreate an exact copy of an existing directory. This time, a symlink is replaced by a directory. The setup is:

The source directory is initially:

        testbackup/
        testbackup/aa/
        testbackup/aa/1/
        testbackup/aa/2 -> 1 (symlink)

I execute tar with --listed-incremental. Then the source directory is modified: the symlink is deleted, replaced with a directory, and a file is created:


        testbackup/
        testbackup/aa/
        testbackup/aa/1/
        testbackup/aa/1/test-file
        testbackup/aa/2/

I execute tar again with --listed-incremental. The two tar files are then extracted in a new directory ./testrestore using --listed-incremental, in the hope of recreating the second directory structure above. However, we end up with:

        testrestore/
        testrestore/aa/
        testrestore/aa/1
        testrestore/aa/1/test-file
        testrestore/aa/2 -> 1 (symlink)

See the attached script for details.

Thanks again,
Peter

Attachment: test-tar2.sh
Description: application/shellscript


reply via email to

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