Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

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

share|improve this answer

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

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

Your Answer


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.