Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I'm new with rsync. I'm planing to use it to sync files bettween 3 servers. 2 of them are on Centos and one on Windows.

The question is what is the best way to use rsync? With SSH or with rsync server?

share|improve this question
add comment

3 Answers

If you want public, anonymous access then use a rsync server. If you need auth, use it over SSH.

share|improve this answer
add comment

If you're doing 3-way sync, it's probably best to use SSH. Rsyncd is more for a central file server, similar to FTP.

share|improve this answer
add comment

They're for different things.

Running an rsync server will use less system resources, but requires setup and isn't secure. Generally, you'd use it for anonymous public distribution of static content.

Running rsync over ssh is secure, and usually doesn't require any particular configuration. Of course, you have to have user authentication in place already, so it's not a good choice for public distribution. You'd use that if the data isn't meant to be public, and if the resource usage savings isn't worth the hassle or don't apply to your data distribution pattern.

If you need security and need to re-serve static data multiple times and you are resource constrained, you can also use rsync in daemon mode over ssh — see the rsync man page.

share|improve this answer
add comment

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.