I have looked for answers to these two questions on Google, rsync mailing lists, and of course the rsync man page but seem to be coming up blank. First: What is the advantage of using the rsync daemon vs just rsync over ssh? I am hoping for a link to a webpage that details these differences. Second: How does rsync over ssh initiate itself on the remote machine? Here is what I mean. As I understand remote shells they can be used for executing commands on a remote machine, but the program already has to be there for this to work. Otherwise the program has to be transferred there and then executed. Is this correct? So does rsync first have to transfer an instance of itself to the remote computer so that they can both do the coordinating of file bits to move back and forth. Or is there something I don't understand about how rsync actually works on the remote computer. Or possibly something I don't understand about remote execution of a program over ssh. Sorry if these are overly newby-ish. Thanks, Nathan Bullock www.nathanbullock.org __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
On Tue, Jun 21, 2005 at 11:33:25PM -0400, Nathan Bullock wrote:> First: What is the advantage of using the rsync daemon vs just rsync > over ssh?One advantage is using less CPU due to the lack of encryption. Another advantage is the ability to allow anonymous or limited-use connections without giving out any logins (though it is possible to restrict an ssh login if you're very careful in your configuration). There are also features of daemon mode, such as named modules and log-file appending, that you can make use of in daemon mode (see the manpage for the rsyncd.conf file).> Here is what I mean. As I understand remote shells they can be used > for executing commands on a remote machine, but the program already > has to be there for this to work.Yes, rsync needs to already be on the remote machine for it to work. If it is not there yet, you could use something like scp to copy rsync (if you have an executable compatible with the remote machine). ..wayne..