Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I want to setup rsync on windows XP. I followed the directions here: http://www.brentnorris.net/rsyncntdoc.html

However, when I start the service, it starts then stops immediately without writing anything useful to the event log. Can anyone provide any guidance? Or another way to be able to run rsync from the windows command prompt?

share|improve this question

2 Answers 2

up vote 0 down vote accepted

I had a go with DeltaCopy and had real problems running it successfully as a service.

Have a look at cwrsync though - it looks very straightforward to use.

Edit: I've now had a go with cwrsync and it works like a charm! You just put your rsync commands in a batch file, stick it in startup, and you're done. The sample batch file supplied has all the commands needed to set rsync up in Cygwin. I'd definitely recommend this to anyone.

Edit2: One more thing to note - at least for debugging purposes, REM out the first line (@ECHO OFF) and add a -v switch to the rsync command so you can see if it's doing anything.

share|improve this answer
    
this looks like it SHOULD work, however, it doesnt. Here is my SECHAW_TUNNEL command(which i think is the most important) SET SECHAW_TUNNEL=ssh -vi "C:/Documents\ and\ Settings/user/Desktop/connection\ keys/Public-Key.ppk" -L 9119:127.0.0.1:873 ubuntu@server -T -N And when I run it it asks me for a publickey passphrase(there is no passphrase) and then fails with a Permission Denied(publickey) error –  llaskin Jun 24 '10 at 17:50

Have you looked at DeltaCopy? http://www.aboutmyip.com/AboutMyXApp/DeltaCopy.jsp

From it's site:

In technical terms, DeltaCopy is a "Windows Friendly" wrapper around the Rsync program, currently maintained by Wayne Davison. "rsync" is primarily designed for Unix/Linux/BSD systems. Although ports are available for Windows, they typically require downloading Cygwin libraries and manual configuration.

I have not used it, but it looks like it will do just what you are looking for.

{edit} Ok, since you need to use public/private key pairs, how about a pre-bundled distrobution (cwRcync from http://sourceforge.net/projects/sereds/files/) and different set of instructions: http://rsync.net/resources/howto/windows_rsync.html

share|improve this answer
    
sorry it didn't work since I need to able to use private/public key authentication. –  llaskin Jun 24 '10 at 15:57

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.