public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* rsync from cygwin to linux adds characters in ascii files
@ 2011-05-19 13:57 asaf greenberg
  2011-05-19 21:55 ` asaf greenberg
  0 siblings, 1 reply; 2+ messages in thread
From: asaf greenberg @ 2011-05-19 13:57 UTC (permalink / raw)
  To: cygwin

hi
When i rsync a folder from cygwin (winXP-SP3-32bit) to linux (64bit)
some of the contents (e.g. in php files) are modified (e.g. added
spaces, missing semicolon).

My local partition D:/ is (probably) mounted as binary.

D:\www\public>mount
D:/programs/usr/bin on /usr/bin type ntfs (binary,auto)
D:/programs/usr/lib on /usr/lib type ntfs (binary,auto)
D:/programs/usr on / type ntfs (binary,auto)
C: on /cygdrive/c type ntfs (binary,posix=0,user,noumount,auto)
D: on /cygdrive/d type ntfs (binary,posix=0,user,noumount,auto)
E: on /cygdrive/e type ntfs (binary,posix=0,user,noumount,auto)
F: on /cygdrive/f type iso9660 (binary,posix=0,user,noumount,auto)

When I copy files with TAR, the files are identical to their source (of 
course).

Is there  way to restrict RSYNC to run on binary mode?

thanks!

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: rsync from cygwin to linux adds characters in ascii files
  2011-05-19 13:57 rsync from cygwin to linux adds characters in ascii files asaf greenberg
@ 2011-05-19 21:55 ` asaf greenberg
  0 siblings, 0 replies; 2+ messages in thread
From: asaf greenberg @ 2011-05-19 21:55 UTC (permalink / raw)
  To: cygwin

> When i rsync a folder from cygwin (winXP-SP3-32bit) to linux (64bit)
> some of the contents (e.g. in php files) are modified (e.g. added
> spaces, missing semicolon).
> 
> My local partition D:/ is (probably) mounted as binary.
> 
> D:\www\public>mount
> D:/programs/usr/bin on /usr/bin type ntfs (binary,auto)
> D:/programs/usr/lib on /usr/lib type ntfs (binary,auto)
> D:/programs/usr on / type ntfs (binary,auto)
> C: on /cygdrive/c type ntfs (binary,posix=0,user,noumount,auto)
> D: on /cygdrive/d type ntfs (binary,posix=0,user,noumount,auto)
> E: on /cygdrive/e type ntfs (binary,posix=0,user,noumount,auto)
> F: on /cygdrive/f type iso9660 (binary,posix=0,user,noumount,auto)
> 
> When I copy files with TAR, the files are identical to their source (of 
> course).
> 
> Is there  way to restrict RSYNC to run on binary mode?
> 
> thanks!


additional note: my rsync version is
rsync  version 3.0.7  protocol version 30
local filesystem: ntfs
remote system: Linux heze 2.6.32.8-grsec-2.1.14-modsign-xeon-64 #2 SMP x86_64
GNU/Linux
remote mount type: /dev/sdb1 on /home type ext3
(rw,nosuid,nodev,noatime,nodiratime,errors=remount-ro,data=writeback)


thanks again

asaf greenberg <asafgreenberg <at> gmail.com> writes:



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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-05-19 21:55 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-05-19 13:57 rsync from cygwin to linux adds characters in ascii files asaf greenberg
2011-05-19 21:55 ` asaf greenberg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).