Link to home
Start Free TrialLog in
Avatar of Contigo1
Contigo1

asked on

CWRsync from Linux to Windows

Hi,

I am currently using CWrsync in windows to backup up Windows Servers. However we have recently just brought a redhat linux server and we want to continue using Rsync to backup the servers.

I have so far edited the Rysnc.Conf file on the linux machine and I have turned on and restarted the Rysnc service on the linux machine aswell as on the windows machine. I have also added the Linux server to the batch script that runs the the rsync backups on the other windows servers.

When it comes to run the Linux back i get the following error:

C:\Backup Scripts>"C:\Program Files\ICW\Bin\rsync.exe" -P -v -z -r --progress --
stats rsync://192.168.125.10/hdapps "/cygdrive/e/backup2/ivory/hdapps"
rsync: failed to connect to 192.168.125.10: No route to host (118)
rsync error: error in socket IO (code 10) at clientserver.c(122) [Receiver=3.0.7
]


Avatar of Contigo1
Contigo1

ASKER

Just to update you I have changed my script a little it was before:

"C:\Program Files\ICW\Bin\rsync.exe" -P -v -z -r --progress --stats rsync://192.168.125.10/hdapps "/cygdrive/e/backup2/ivory/hdapps"

Open in new window


It is now:

"C:\Program Files\ICW\Bin\rsync.exe" -P -v -z -r --progress --stats root@[192.168.125.10]:/hdapps "/cygdrive/e/backup2/ivory/hdapps"

Open in new window


This has changed the error to:

C:\Backup Scripts>"C:\Program Files\ICW\Bin\rsync.exe" -P -v -z -r --progress --
stats root@192.168.125.10:/hdapps "/cygdrive/e/backup2/ivory/hdapps"
rsync: Failed to exec ssh: No such file or directory (2)
rsync error: error in IPC code (code 14) at pipe.c(84) [Receiver=3.0.7]
rsync: connection unexpectedly closed (0 bytes received so far) [Receiver]
rsync error: error in rsync protocol data stream (code 12) at io.c(610) [Receive
r=3.0.7]
ASKER CERTIFIED SOLUTION
Avatar of legolasthehansy
legolasthehansy

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SSH Should be installed already on the Linux machine so do I need to install it on the windows machine?
You are running the rsync program on windows and hence the rsync looks to execute ssh to open up a path to the linux box.
Ok I will try this now.