Hello,
I'm running into an issue where symbolic links are mangled when taring files which reside on both Server 2003 and Server 2008 running Server for NFS, serving to Redhat Linux 4.6, 5.3, 5.7 and Ubuntu 11.10 machines. Note that the test below, the user's home area is mounted on a Server for NFS 2008 R2 installation. The issue does not exist if I create a tar with files on the local machine. Absolute links are not impacted, relative links are. Help in fixing this for relative links is greatly appreciated.
[~/TEST]$ dd if=/dev/zero of=OneGig.txt bs=1024 count=1000
[~/TEST]$ ln -s OneGig.txt test
[~/TEST]$ ln -s /home/USER/TEST/OneGig.txt test2
[~/TEST]$ ls -l
total 1000
-rw-r--r-- 1 1024000 Aug 24 14:11 OneGig.txt
lrwxrwxrwx 1 0 Aug 24 14:12 test -> OneGig.txt
lrwxrwxrwx 1 0 Aug 24 14:12 test2 -> /home/USER/TEST/OneGig.txt
[~/TEST]$ cd ..
[~]$ tar cvf TEST.tar TEST/
TEST/
TEST/OneGig.txt
TEST/test
TEST/test2
[~]$ tar tvf TEST.tar
drwxr-xr-x 0 2012-08-24 14:12:55 TEST/
-rw-r--r-- 1024000 2012-08-24 14:11:29 TEST/OneGig.txt
lrwxrwxrwx 0 2012-08-24 14:12:46 TEST/test -> O
lrwxrwxrwx 0 2012-08-24 14:12:55 TEST/test2 -> /home/USER/TEST/OneGig.txt
I'm running into an issue where symbolic links are mangled when taring files which reside on both Server 2003 and Server 2008 running Server for NFS, serving to Redhat Linux 4.6, 5.3, 5.7 and Ubuntu 11.10 machines. Note that the test below, the user's home area is mounted on a Server for NFS 2008 R2 installation. The issue does not exist if I create a tar with files on the local machine. Absolute links are not impacted, relative links are. Help in fixing this for relative links is greatly appreciated.
[~/TEST]$ dd if=/dev/zero of=OneGig.txt bs=1024 count=1000
[~/TEST]$ ln -s OneGig.txt test
[~/TEST]$ ln -s /home/USER/TEST/OneGig.txt test2
[~/TEST]$ ls -l
total 1000
-rw-r--r-- 1 1024000 Aug 24 14:11 OneGig.txt
lrwxrwxrwx 1 0 Aug 24 14:12 test -> OneGig.txt
lrwxrwxrwx 1 0 Aug 24 14:12 test2 -> /home/USER/TEST/OneGig.txt
[~/TEST]$ cd ..
[~]$ tar cvf TEST.tar TEST/
TEST/
TEST/OneGig.txt
TEST/test
TEST/test2
[~]$ tar tvf TEST.tar
drwxr-xr-x 0 2012-08-24 14:12:55 TEST/
-rw-r--r-- 1024000 2012-08-24 14:11:29 TEST/OneGig.txt
lrwxrwxrwx 0 2012-08-24 14:12:46 TEST/test -> O
lrwxrwxrwx 0 2012-08-24 14:12:55 TEST/test2 -> /home/USER/TEST/OneGig.txt