Jason Spiro
2008-Nov-25 01:05 UTC
How could rsync be improved so that others won't have to struggle so much to find out about --modify-window=1?
I am running rsync 3.0.4 on Cygwin. Before, when I resumed interrupted rsyncs, every file would be re-copied all over again. I struggled to find an answer until now I found it: I needed to specify --modify-window=1, since one of the disks is FAT32. How could rsync be improved so that others won't have to struggle so much? Here are some options: 1. At the start of each run, rsync should check the filesystem types, and if one fs type name contains "user" or "system" (this means rsync is running on on Cygwin 1.5; only the unreleased Cygwin 1.7 can report the actual fs types) or "dos" or "fat", then it should enable modify-window=1. 2. Alternatively, if rsync finds that there are a lot of almost-hits that differ only by a few seconds' timestamp, rsync should enable modify-window=1 automatically. 3. Or, rsync should create a few temporary files on the source and target disks to check the disks' timestamp resolutions, then delete the temp files. Or 4. Or, rsync could look at the timestamps of the files that are already on the source and target disks and infer the timestamp resolutions from that. 5. Or, rsync could use modify-window=1 by default unless the user declines it. ( http://thread.gmane.org/gmane.network.rsync.general/2164/focus=2164 implies that the default was probably changed to 1 on Cygwin only in 2003, but I assume the default is now 0 because of the original problem I had.) What do you think?
Stuart Halliday
2008-Nov-25 10:35 UTC
How could rsync be improved so that others won't have to struggle so much to find out about --modify-window=1?
You know sometimes I use modify-window=3600 as it may be as much as an hour out during daylight saving times of the year... But really the documents for Windows users should be better. Start with a list of common traps beginners fall into. The other being "SET CYGWIN=nontsec" A tutorial of some simple rsync tasks to start off with will get the user familiar with its workings. Maybe someone could make the rsync site into a Wiki? Then we could all type up document corrections? -- Stuart Halliday This email is the property of ECS Technology Ltd. This company is registered in Scotland with company number 212513. VAT registered GB 761 7456 12 http://www.ecs-tech.com/