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

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

Reply via email to