Please help : Strange 'file has vanished' behaviour with rsync on windows.

Jim Salter jim at jrssystems.net
Mon Feb 9 04:37:07 GMT 2004


Wait a second; why are you using -e ssh when this is apparently a local 
rsync using network filesystems?  I missed that the first time through...

> You should be able to temporarily map your UNC to a drivespec and then 
> use rsync with the mapped drivespec rather than telling it to use the 
> UNC directly.  That would work around your issue effectively.  You'll 
> want to use the path /cygdrive under Cygwin to access your mapped 
> drivespec.  Something like this:
> 
> net use z: \\mypc1\myshare1
> rsync -e ssh -av /cygdrive/z/dir1/* /cygdrive/z/dir2/
> 
> Hope that helps...
> 
> Jim Salter
> 
>> Please help : Strange 'file has vanished' behaviour with rsync on 
>> windows.
>> I need to run rsync on windows and sync shares thru UNC names.
>> When I try :
>> rsync -e ssh -av //mypc1/myshare1/dir1/* //mypc1/myshare1/dir2/.
>> rsync does a copy but says "file has vanished" for every file.
>> Then when I run: rsync -e ssh -av --dry-run //mypc1/myshare1/dir1/* 
>> //mypc1/myshare1/dir2/.
>> it shows me all the files-- indicating that all are out of sync.
>>
>> I need to encode logic to transfer only when needed, and this is not 
>> helping.
>>
>> On the other hand, just to test, if I did a copy without going to 
>> network,
>> rsync -e ssh -av /cygdrive/c/myshare1/dir1/* /cygdrive/c/myshare1/dir2/.
>> and then run:
>> rsync -e ssh -av --dry-run //mypc1/myshare1/dir1/* 
>> //mypc1/myshare1/dir2/.
>> it shows me no files --indicating that the dirs are in sync.
>>
>> I would have to use UNCs to copy.
>> Is there a bug that I am encountering?
>> How do I make things work?
>>
>> Best regards
> 
> 



More information about the rsync mailing list