Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Message-ID: <41EE571A.5080500@etr-usa.com>
Date: Wed, 19 Jan 2005 05:48:26 -0700
From: Warren Young <warren@etr-usa.com>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.5) Gecko/20041217
MIME-Version: 1.0
To: Cygwin-L <cygwin@cygwin.com>
Subject: Re: Using rsync to sync to NTFS: permission issues
References: <BAY22-DAV635D65CE3B9CA0FECA4DBFE800@phx.gbl>
In-Reply-To: <BAY22-DAV635D65CE3B9CA0FECA4DBFE800@phx.gbl>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
X-IsSubscribed: yes

Wim Heemskerk Lists wrote:

> I (want to) use rsync under cygwin to sync files from a Linux box to a 
> WinXP box. I want to maintain a full backup, including the file 
> permissions.

Without something like NIS or LDAP to synchronize the user and group 
databases between the machines, I think you will have problems with that 
goal.

> -> rsync locks itself out sometimes: when I sync a file my way with 
> permissions like this: rwxrwx--- user1:user1 rsync will make it just 
> fine. But: when it wishes to update that file next time, it has no 
> access. 

Are you running rsync as the SYSTEM user?

> -> rsync handles this rather badly btw: it goes to 100% CPU use and 
> stays there forever and ever, not getting any further

I've seen this before, but only on a Win98 box, where it would freeze 
the machine, hard.  I have no more information on the problem beyond 
that, and won't be able to investigate it because that box has since 
been replaced by a WinXP box.

> -> WinXP info tell me that to get this special access the application 
> must use the NTFS back-ups API. Apperently cygwin+rsync does not.. how 
> can I change that?

Such an effort would be best done with a native port of rsync, I'd 
think.  Adding Win32-specific calls to Cygwin rsync would be missing the 
whole point of Cygwin, I think.

Bottom line, I think if I had a hard requirement to back up files with 
permissions from a Linux box to a Win32 box, I'd just tar them up and 
send the tar file to the PC.  If you don't compress the tar file, 
there's a nonzero chance that rsync can still save some I/O when 
synchronizing after the first copy.

--
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/

