Overwriting symlinks on OSX

David Liontooth liontooth at cogweb.net
Sat Feb 24 21:37:46 GMT 2007


I'm trying to rsync files to a set of symlinked directories on an XServe
running OS X.

The directories look like this:

tna at csx:~/2/2006$ l
total 80
lrwxr-xr-x    1 tna  tna    39 Feb 24 13:18 2006-01 ->
/Volumes/CSArchiveArray001/2006/2006-01
lrwxr-xr-x    1 tna  tna    39 Feb 24 13:18 2006-02 ->
/Volumes/CSArchiveArray001/2006/2006-02

When I run rsync from Linux in --dry-run mode, the results are correct:

$ rsync -arvn --ignore-existing --exclude-from=/db/nosyncc /db/2006/ -e
ssh x:~/2/2006/
building file list ... done
2006-08/2006-08-12/2006-08-12_0430_KNBC_Channel_4_News.txt
2006-08/2006-08-12/2006-08-12_0430_KTTV_A_Current_Affair.txt
2006-08/2006-08-17/2006-08-17_0500_KABC_Eyewitness_News.txt
2006-08/2006-08-17/2006-08-17_0500_KTTV_Morning_News_at_5.txt
2006-08/2006-08-17/2006-08-17_0600_KTTV_Morning_News_at_6.txt
2006-10/2006-10-29/2006-10-29_0800_KTTV-FOX_News_Sunday_with_Chris_Wallace.txt

sent 313109 bytes  received 40 bytes  208766.00 bytes/sec
total size is 445239817  speedup is 1421.81

When I do the actual run, the symlinks are overwritten and new
directories are created; details below.
Can I prevent this behavior and tell rsync to respect the symlinks, as
it does in --dry-run mode?

Dave

$ rsync -arv --ignore-existing --exclude-from=/db/nosyncc /db/2006/ -e
ssh x:~/2/2006/
building file list ... done
./
2006-01/
2006-01/2006-01-01/
2006-01/2006-01-01/2006-01-01_0430_KTTV-FOX_A_Current_Affair.txt
2006-01/2006-01-01/2006-01-01_0500_KABC_Eyewitness_News.txt
2006-01/2006-01-01/2006-01-01_0500_KTTV-FOX_Morning_News_at_5.txt
2006-01/2006-01-01/2006-01-01_0800_KNBC_Meet_the_Press.txt
2006-01/2006-01-01/2006-01-01_0800_KTTV-FOX_News_Sunday_with_Chris_Wallace.txt
2006-01/2006-01-01/2006-01-01_1730_KABC_World_News_Tonight.txt
2006-01/2006-01-01/2006-01-01_1900_KCBS_60_Minutes.txt
2006-01/2006-01-01/2006-01-01_2200_KTTV-FOX_Ten_OClock_News.txt
2006-01/2006-01-01/2006-01-01_2300_KABC_Eyewitness_News.txt
2006-01/2006-01-02/
2006-01/2006-01-02/2006-01-02_0430_KNBC_Channel_4_News.txt
2006-01/2006-01-02/2006-01-02_0430_KTTV-FOX_A_Current_Affair.txt
2006-01/2006-01-02/2006-01-02_0500_KABC_Eyewitness_News.txt
2006-01/2006-01-02/2006-01-02_0500_KTTV-FOX_Morning_News_at_5.txt
2006-01/2006-01-02/2006-01-02_0530_KCET_BBC_World_News.txt
2006-01/2006-01-02/2006-01-02_0600_KTTV-FOX_Morning_News_at_6.txt
2006-01/2006-01-02/2006-01-02_0700_KTTV-FOX_Morning_News_at_7.txt
2006-01/2006-01-02/2006-01-02_1700_KNBC_Channel_4_News_at_5.txt
2006-01/2006-01-02/2006-01-02_1830_KABC_World_News_Tonight.txt
2006-01/2006-01-02/2006-01-02_1900_KCET_Newshour_with_Jim_Lehrer.txt
2006-01/2006-01-02/2006-01-02_2200_KTTV-FOX_Ten_OClock_News.txt
2006-01/2006-01-02/2006-01-02_2300_KABC_Eyewitness_News.txt
2006-01/2006-01-02/2006-01-02_2330_KABC_Nightline.txt





More information about the rsync mailing list