Question about rsync

Associate
Joined
30 Sep 2005
Posts
696
Hi,

I want to use rsync to syncronise back-ups between a windows XP machine and a debian server. Both currently have rsync installed, both currently have the rsync daemon running - the problem only comes when I try and use the rsync command between the two - I try to run it from the linux machine and it authenticates with a ssh password into the windows machine then bails out saying that the connection got dropped?

HAs anyone had similar experiences when using the command? Has anyone got an example of the correct command syntax to try? I'm only really guessing at the moment.

Any help would be appreciated as I'm a bit stuck at the moment!
 
Soldato
Joined
7 May 2003
Posts
4,247
Location
Away from here
I've seen that problem, but only between linux systems and that was solved by specifying the path to rsync on the remote machine (using --rsync-path).

An example from a perl script I use:

system("rsync -avz --rsync-path=$remotersync -e ssh $exclude --delete-excluded
$base/$content/ $destination:$remotebase/$remotecontent | tee $log");

The variables should be pretty obvious.
 
Associate
OP
Joined
30 Sep 2005
Posts
696
matja said:
If you have the rsync daemon running, you dont need to tunnel via ssh at all.
rsync [OPTION]... rsync://[USER@]HOST[:pORT]/SRC [DEST]
It's faster without ssh, too.

Cheers for that I'll give it a quick whirl...
 
Associate
Joined
20 Oct 2002
Posts
465
Location
Scotland
I would use ssh to keep it at least a bit secure :/
Specifying the path (as said above) worked for me - remember when using ssh it logs in as the user specified and has that users paths/rights - if you have a normal shell login may be worth ssh'ing in and see if you can run rsync.....
 
Back
Top Bottom