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
-- To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html