Toby D. Watson
2005-Mar-21 13:32 UTC
Rsync, cygwin and seemingly random deleting of files problem
Dear All, I am running Rsync (2.6.3) on Windows Server 2003 via Cygwin, performing a pseudo-local sync (t: is a mapped NAS). The Rsync command I am using is below, but I am having a problem whereby certain files are being deleted, seemingly at random. I am using the --delete flag. These files are not actually deleted as they are then transferred back in the sync process. However, this is a touch worrying. I have found reference to this problem in several posts in the archive, as far back as 2002, so there seems to be some history. However, I can't find any solutions to this or official confirmation as to whether this is a problem or something do with user error! If anyone has any suggestions at all, that would be very much appreciated. Toby. c:\cygwin\bin\rsync.exe --verbose --progress --stats --archive --delete "/cygdrive/c/Users Shared Folders/t.d.watson" /cygdrive/t/t.d.watson (I have also tried with --modify-window=1, but this makes no difference).
Wayne Davison
2005-Mar-24 07:24 UTC
Rsync, cygwin and seemingly random deleting of files problem
On Mon, Mar 21, 2005 at 01:31:53PM +0000, Toby D. Watson wrote:> These files are not actually deleted as they are then transferred back > in the sync process.Do the names of these files differ in case, even after the transfer? Are there any weird characters in the filenames that might be translated by the underlying FS behind rsync's back? For instance, if you have a file named "foo." (with the trailing dot), that filename is treated the same as "foo" under MS Windows, and cygwin doesn't do anything to try to encode this filename in a special way, so rsync thinks it has created "foo.", but when the transfer happens again, it will be told that "foo" exists instead. ..wayne..
Toby Watson
2005-Mar-25 13:41 UTC
Rsync, cygwin and seemingly random deleting of files problem
________________________________ From: Wayne Davison [mailto:wayned@samba.org] Sent: Thu 24/03/2005 7:24 AM To: Toby Watson Cc: rsync@lists.samba.org Subject: Re: Rsync, cygwin and seemingly random deleting of files problem On Mon, Mar 21, 2005 at 01:31:53PM +0000, Toby D. Watson wrote:> These files are not actually deleted as they are then transferred back > in the sync process.Do the names of these files differ in case, even after the transfer? Are there any weird characters in the filenames that might be translated by the underlying FS behind rsync's back? For instance, if you have a file named "foo." (with the trailing dot), that filename is treated the same as "foo" under MS Windows, and cygwin doesn't do anything to try to encode this filename in a special way, so rsync thinks it has created "foo.", but when the transfer happens again, it will be told that "foo" exists instead. ..wayne.. Dear Wayne, Thanks for the reply; I am not quite certain what you mean about the differing in case of file names. However, I think you have put your finger on at least part of the problem. Two of the file names have umlauts in them, and rsync is deleting and re-copying these files. However, I noticed that when it copies them, the umlaut disappears, which explains why it thinks they have been deleted I guess! It is also deleting a file with an apostrophe in, but presumably this will be the same problem as you describe? Is there any way that you know of working around this issue? Many thanks for your help, Toby. -------------- next part -------------- HTML attachment scrubbed and removed