delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2008/04/01/07:00:17

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Message-ID: <47F223A5.5010103@wpkg.org>
Date: Tue, 01 Apr 2008 13:59:33 +0200
From: Tomasz Chmielewski <mangoo AT wpkg DOT org>
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.8) Gecko/20061110 Mandriva/1.5.0.8-1mdv2007.1 (2007.1) Thunderbird/1.5.0.8 Mnenhy/0.7.4.666
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: using rsync with Win32/UNC pathnames?
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

According to http://www.cygwin.com/cygwin-ug-net/using.html:

   Cygwin supports both Win32- and POSIX-style paths, where directory
   delimiters may be either forward or back slashes. UNC pathnames
   (starting with two slashes and a network name) are also supported.


However, this doesn't seem to work with rsync.


rsync will fail when sing Win32-style paths (it tries to connect via SSH):

$ rsync -v C:\1 C:\2
The source and destination cannot be both remote.
rsync error: syntax or usage eror (code 1) at 
/home/lapo/packaging/tmp/rsync-2.6.9/main.c(1068) [receiver=2.6.9]


It works fine with cygwin paths:

$ rsync -v /cygdrive/c/1 /cygdrive/c/2
1

sent 150 bytes  received 42 bytes  384.00 bytes/sec
total size is 68  speedup is 0.35


Why does it fail with Win32-paths?

Is is possible to use rsync.exe with Win32 and/or UNC paths?

-- 
Tomasz Chmielewski
http://wpkg.org

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019