On 30-Nov-00 at 17:02:19 John Horne wrote:
> Using rsync 2.4.6 I executed the following (simply as a test) from one
> machine to another:
> 
>   rsync -v -e ssh -ar sscan eros:
> 
> This copied the sscan directory from my PC to the machine 'eros'. I then
> changed a file in sscan locally and ran the command again. The changed
> file
> was copied. I changed the file again, and then executed:
> 
>   rsync -v -e ssh -ar --size-only sscan eros:
> 
> The file was not copied because its size was the same. no problem.
> 
> However, I then ran the first command again and the file still was not
> copied. Surely it should have been since the file has changed in its
> contents? I now have the two files out of sync. The output from rsync
> simply shows:
> 
Okay I think I've solved this :-) The rsync with the '--size-only' option
updates the modification time for the file but doesn't copy it. Hence when I
run the command without that option the size and time are equal - hence the
file is not copied despite being different. I see that there are options to
ignore the time as well, so that would get round it on the second rsync
command. Not a problem, I just found it a bit confusing :-)

John.

------------------------------------------------------------------------
John Horne, University of Plymouth, UK           Tel: +44 (0)1752 233914
E-mail: [EMAIL PROTECTED]
PGP key available from public key servers

Reply via email to