LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Grsync failure (https://www.linuxquestions.org/questions/linux-newbie-8/grsync-failure-833238/)

paul1149 09-19-2010 05:24 PM

Grsync failure
 
Hi,

I'm trying to sync a folder between my Windows install and my PCLinux install. Same machine, Windows 7 on the C drive and Linux on an external USB hard drive.

Using the Grsync GUI, I searched for the source and destination folders, and then executed the command. Here is the output:

** Launching RSYNC command (simulation mode):
pkexec rsync -r -n -t -v --progress -s /media/Win7/Documents and Settings/Paul/Application Data/The Word file:///root/.wine/drive_c/Program Files/The Word/myData

ssh: connect to host file port 22: No route to host

rsync: connection unexpectedly closed (0 bytes received so far) [sender]
rsync error: unexplained error (code 255) at io.c(601) [sender=3.0.7]
Rsync process exit status: 255
It seems to be doing an FTP operation, whereas all I need is a file transfer. Can anyone point out my error here?

Thanks,
Paul

AlucardZero 09-19-2010 06:07 PM

Quote:

It seems to be doing an FTP operation, whereas all I need is a file transfer.
..which is what FTP is? Transferring files? We call it rsyncing when rsync is doing it, though.

Quote:

Can anyone point out my error here?
Yes, it's right here:
Code:

ssh: connect to host file port 22: No route to host
It's trying to connect to a remote host named file. But you don't want to go over the network. Does Grsync support local to local transfers? I know rsync does, but I have never used Grsync. Play around with the input you're giving Grsync, or just use the command line.

paul1149 09-20-2010 09:41 AM

Ok, Thanks. I used the Grsync browser to spec the file locations, so I would think that the program would recognize the filespec as being local. But I'll try rsync and see what I can do there.

AlucardZero 09-20-2010 09:55 AM

Code:

rsync -r -n -t -v --progress -s "/media/Win7/Documents and Settings/Paul/Application Data/The Word" "/root/.wine/drive_c/Program Files/The Word/myData"
Should do it.

paul1149 09-21-2010 08:56 AM

Thanks again. I'm busy on Windows currently, but when I go to Linux I'll give this a run and then report back.

paul1149 09-22-2010 06:05 PM

I thought I'd be in the money with this. I cheated a bit on your suggestion, by only cleaning up the destination spec by removing its "media" prefix. Then I did a Simulation, with success. But every time I actually Executed (I'm still in Grsync), there was an error:
*** Launching RSYNC command:
pkexec rsync -r -t -v --progress -s /media/Win7/Documents and Settings/Paul/Application Data/The Word/ /root/.wine/drive_c/Application Data/The Word/

sending incremental file list
rsync: mkdir "/root/.wine/drive_c/Application Data/The Word" failed: No such file or directory (2)
Subsequent rsync tries using your suggestion failed as well, without notification.

This baffles me, because the directory exists already. The problem seems to be related to the program, theWord, running under WINE. Using theWord's browser within Wine, the destination directory should be file:///root/.wine/drive_c/users/root/Application Data/The Word. But using that gets me into the original Port 22 FTP problem. If I delete the file:/// prefix, the Simulation goes fine, but the Execution produces the mkdir error.

If I run the rsync using a plain vanilla directory, such as root/documents/the word, rsync works flawlessly. The problem there is that Wine isn't allowing theWord to see outside it's own simulated drive_c universe. So I'm stuck in no-man's land.

This is probably more a WINE question than an rsync question. I guess I need to ask it again in that light.

Thanks,
p.


All times are GMT -5. The time now is 04:07 PM.