X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=0.2 required=5.0 tests=AWL,BAYES_00,TW_LR,TW_RW,TW_WX,TW_XR,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Message-ID: <4DDED12B.5020601@ece.cmu.edu> Date: Thu, 26 May 2011 18:16:11 -0400 From: Ryan Johnson User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.17) Gecko/20110414 Lightning/1.0b2 Thunderbird/3.1.10 MIME-Version: 1.0 To: "cygwin AT cygwin DOT com" Subject: rsync, network shares, and soft links Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Hi all, I'm using rsync to make backups of my laptop to a windows share, and with the -l option it copies over links, but apparently does so as linux-style rather than cygwin-style. When I do it to a local dir, the link is recognized as such and not re-sent: > $ cd test; ln -s ../apps; ll; cd .. > total 1.0K > lrwxrwxrwx 1 Ryan None 7 May 26 18:04 apps -> ../apps/ > > $ rsync -vrlpt test/ test-backup/ > sending incremental file list > created directory test-backup > ./ > apps -> ../apps > > $ rsync -vrlpt test/ test-backup/ > sending incremental file list > > $ ll test-backup/ > total 1.0K > lrwxrwxrwx 1 Ryan None 7 May 26 18:04 apps -> ../apps/ However, if I target a SMB share instead, the cygwin link becomes a linux link (which never matches and is always re-sent, and which means nothing to cygwin when restored): > $ rsync -vrlpt test/ /cygdrive/z/laptop-backup/test-backup/ > sending incremental file list > created directory /cygdrive/z/laptop-backup/test-backup > ./ > apps -> ../apps > > $ rsync -vrlpt test/ /cygdrive/z/laptop-backup/test-backup/ > sending incremental file list > apps -> ../apps > > $ ll !$ > ll /cygdrive/z/laptop-backup/test-backup/ > total 1.0M > -rw-r--r-- 1 ???????? ???????? 28 May 26 18:04 apps > > $ rsync -vrlpt /cygdrive/z/laptop-backup/test-backup/ test-restore/ > sending incremental file list > created directory test-restore > ./ > apps > > $ ll test-restore/apps > -rw-r--r-- 1 Ryan None 28 May 26 18:04 test-restore/apps > > $ cat !$ > cat test-restore/apps > !▒▒../apps Is this a known limitation of cygwin's rsync and SMB or is there something I could have done differently? Thanks! Ryan -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple