
Tony Baechler <tb@baechler.net> writes
Hi Windows rsync users,
Just a brief note to tell you that at least for me I get permission problems with the Cygwin port of rsync. It works fine but always sets the date to the system date. I know you can use the archive option to prevent that but all that does is generate an error and still scrambles the original file dates. I looked for a more native port but found none. There is another port with just the necessary Cygwin dll files that sort of worked but still had the same permission problems. I haven't found a solution. I'm on Windows 98 so maybe XP is better about this but my reading of the various Windows ports indicates otherwise.
I use rsync under XP, using a directory containing just rsync.exe cygopt-0.dll and cygwin.dll alongside some batch files rather than a full cygwin installation. I seem to have avoided the problems you are having. I do not attempt to retain the file permissions and use the modify-windows option to take account of the windows time stamps only being accurate to two seconds. The update script I have set up as a *.Bat file is as follows: @rem Updates the root directory and writes the output to a file called gutlog.txt in the current directory, overwriting existing gutlog.txt rsync --recursive --exclude "*/" --relative --links --hard-links --times --sparse --verbose --partial --progress --modify-window=2 --delete ftp@ftp.ibiblio.org::gutenberg h:/gutenberg > gutlog.txt 2>&1 @rem Updates the directory where new stuff is currently being placed and adds the output to gutlog.txt rsync --recursive --exclude "1/9/[0-2]/*" --relative --links --hard-links --times --sparse --verbose --partial --progress --modify-window=2 --delete ftp@ftp.ibiblio.org::gutenberg/1/9/ h:/gutenberg >> gutlog.txt 2>&1 If you remove the exclude rule from the first rsync command you should get a full mirror, I have mine on drive h. e.g. rsync --recursive --relative --links --hard-links --times --sparse --verbose --partial --progress --modify-window=2 --delete ftp@ftp.ibiblio.org::gutenberg h:/gutenberg > gutlog.txt 2>&1 This will create a full mirror on drive h and the full output will be logged as gutlog.txt in the directory from which you ran the script. -- Great Internet Mersenne Prime Search http://www.mersenne.org/prime.htm Livejournal http://brett-dunbar.livejournal.com/ Brett Paul Dunbar To email me, use reply-to address