I am running rsync 2.6.3 on Cygwin 1.5.11-1 over ssh to a remote server
(server is also running rsync 2.6.3). When I upload a file via rsync to a
remote server, its filesize on the remote is much larger than the local
copy, leading me to believe some sort of ASCII translation is being done.
Some interesting things:
1. If I upload the file using scp instead of rsync, it works perfectly.
2. If I download a file from the remote server to my local client using
rsync (or scp, for that matter), that also works perfectly.
3. Therefore, it's only occuring when using rsync to upload a file from my
client to the server.
4. The CYGWIN environment variable is set to binmode on both the source and
the target.
Here is a command history of exactly what I am doing:
$ rsync -vv --progress -Saz /cygdrive/c/inetpub/wwwroot/bin/*.dll
<target_hostname>:/cygdrive/c/temp
opening connection using ssh <target_hostname> rsync --server -vvlogDtprSz
.
/cygdrive/c/temp
building file list ...
[sender] expand file_list to 131072 bytes, did move
4 files to consider
delta transmission enabled
file1.dll
16384 100% 1.25MB/s 0:00:00 (1, 25.0% of 4)
file2.dll
73728 100% 1.43MB/s 0:00:00 (2, 50.0% of 4)
file3.dll
749568 100% 2.84MB/s 0:00:00 (3, 75.0% of 4)
file4.dll
126976 100% 433.57kB/s 0:00:00 (4, 100.0% of 4)
total: matches=503 tag_hits=6919 false_alarms=0 data=560337
sent 159575 bytes received 7294 bytes 37082.00 bytes/sec
total size is 966656 speedup is 5.79
$ ls -la /cygdrive/c/inetpub/wwwroot/bin/*.dll
-rwxr-xr-x+ 1 Administ None 16384 Oct 3 22:12
/cygdrive/c/inetpub/wwwroot/bin/file1.dll
-rwxr-xr-x+ 1 Administ None 73728 Nov 29 2003
/cygdrive/c/inetpub/wwwroot/bin/file2.dll
-rwxr-xr-x+ 1 Administ None 749568 Oct 3 23:20
/cygdrive/c/inetpub/wwwroot/bin/file3.dll
-rwxr-xr-x+ 1 Administ None 126976 Oct 3 22:12
/cygdrive/c/inetpub/wwwroot/bin/file4.dll
$ ssh <target_hostname> ls -la /cygdrive/c/temp/*.dll
-rwxr-xr-x 1 Administ Domain U 16411 Oct 3 22:12
/cygdrive/c/temp/file1.dll
-rwxr-xr-x 1 Administ Domain U 75502 Nov 29 2003
/cygdrive/c/temp/file2.dll
-rwxr-xr-x 1 Administ Domain U 770523 Oct 3 23:20
/cygdrive/c/temp/file3.dll
-rwxr-xr-x 1 Administ Domain U 127747 Oct 3 22:12
/cygdrive/c/temp/file4.dll
-------------- next part --------------
HTML attachment scrubbed and removed