Bug 3305 - -t copies always too many files to mounted windows volume -c copies no files
-t copies always too many files to mounted windows volume -c copies no files
Status: CLOSED INVALID
Product: rsync
Classification: Unclassified
Component: core
2.6.7
Other Linux
: P3 normal
: ---
Assigned To: Wayne Davison
Rsync QA Contact
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2005-12-07 02:42 UTC by Thomas
Modified: 2006-03-12 02:56 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas 2005-12-07 02:42:42 UTC
rsync -t does not work on a local rsync to a mounted windows directory.
rsync copies the same files (about 50%) always and everytime.
Maybe the strange Creation time mismatch (20 sec in the future on windows) is responsible. But that is a guess.

=== FSTAB:
//swat/Intranet /mnt/backup smbfs auto,credentials=/etc/fstab.credentials 0 0
Windows server OS: probably windows 2000

=== Try1:
swale # rsync -rt --stats /srv/www/htdocs /mnt/backup/www

Number of files: 3223
Number of files transferred: 1337
Total file size: 27807498 bytes
Total transferred file size: 15169982 bytes
Literal data: 15169982 bytes
Matched data: 0 bytes
File list size: 69523
Total bytes sent: 15299405
Total bytes received: 26760

sent 15299405 bytes  received 26760 bytes  519531.02 bytes/sec
total size is 27807498  speedup is 1.81

== Try2:
swale # rsync -rc --stats /srv/www/htdocs /mnt/backup/www

Number of files: 3223
Number of files transferred: 0
Total file size: 27807498 bytes
Total transferred file size: 0 bytes
Literal data: 0 bytes
Matched data: 0 bytes
File list size: 115875
Total bytes sent: 115887
Total bytes received: 20

sent 115887 bytes  received 20 bytes  3679.59 bytes/sec
total size is 27807498  speedup is 239.91

=== Try3:
swale # rsync -rt --stats /srv/www/htdocs /mnt/backup/www

Number of files: 3223
Number of files transferred: 1337
Total file size: 27807498 bytes
Total transferred file size: 15169982 bytes
Literal data: 15169982 bytes
Matched data: 0 bytes
File list size: 69523
Total bytes sent: 15299405
Total bytes received: 26760


== strange result for testing time sync problems * see creation time in the future ===
swale # date ; touch foo.junk ; date
Wed Dec  7 10:05:17 CET 2005
Wed Dec  7 10:05:17 CET 2005

Windows explorer about foo.junk:
Creation: Wed Dec  7 10:05:35 CET 2005
Modified: Wed Dec  7 10:05:16 CET 2005
Access: Wed Dec  7 10:05:16 CET 2005


===========================================
swale # rsync --version
rsync  version 2.6.3  protocol version 28
Copyright (C) 1996-2004 by Andrew Tridgell and others
<http://rsync.samba.org/>
Capabilities: 64-bit files, socketpairs, hard links, acls, symlinks, batchfiles, 
              inplace, IPv6, 64-bit system inums, 64-bit internal inums, SLP

rsync comes with ABSOLUTELY NO WARRANTY.  This is free software, and you
are welcome to redistribute it under certain conditions.  See the GNU
General Public Licence for details.
Comment 1 John Van Essen 2005-12-07 05:10:55 UTC
The comment about always copying 50% of the files to a mounted Windows directory pretty much identifies the problem.

See the --modify-window option for the solution.
Comment 2 Wayne Davison 2005-12-14 12:27:34 UTC
As John indicated, using --modify-window=1 should avoid this deficiency in the Windows filesystem.