helpneeded@somewhere.com
2004-Feb-06 23:45 UTC
Please help : Strange 'file has vanished' behaviour with rsync on windows.
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
Wayne Davison
2004-Feb-06 23:56 UTC
Please help : Strange 'file has vanished' behaviour with rsync on windows.
On Fri, Feb 06, 2004 at 03:57:36PM -0800, helpneeded@somewhere.com wrote:> rsync -e ssh -av //mypc1/myshare1/dir1/* //mypc1/myshare1/dir2/.Rsync does not support giving special meaning to multiple adjacent slashes -- they are treated as a single slash. Thus, rsync will try to copy /mypc1/myshare1/dir/FOO and fail. ..wayne..
Jim Salter
2004-Feb-09 01:37 UTC
Please help : Strange 'file has vanished' behaviour with rsync on windows.
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
helpneeded@somewhere.com
2004-Feb-12 00:50 UTC
Please help : Strange 'file has vanished' behaviour with rsync on windows.
Actually I would want to use ssh and do copy between two remote servers from my machine. But the following did not work: rsync -e ssh -av user@mypc1:/myshare1/dir1 user@mypc2:/myshare2/dir2 I was not able to successfully rsync with both, source and destination, as remote locations. I would appreciate if you can tell me whether there is a limitation in rsync or am I doing something wrong? regards,
Seemingly Similar Threads
- Moving / Copying files inside server across different shares
- [Bug 13587] New: Add a --dry-run way to show destination for each item
- How to replace slashes with back slashes
- directories not correctly recognized rsync-3.0.4
- rsync-ing from two locations with same filenames (at different versions)