Hi, This is the first time I have setup rsync.conf like, max connections = 20 syslog facility = local3 read only = true hosts allow = 192.168.10.10 [qmail-control] comment = qmail-control path = /var/qmail/control read only = yes list = yes uid = root gid = root Then from 192.168.10.10, I tried, rsync -avz -e ssh root@192.168.10.1:/var/qmail/control/* . and it worked. So far so good. But then again it worked from 192.168.10.11 too and that too for other directories too. Even deleting the rsync.conf file had no effect. What is wrong here? Is this not the way to use rsync client? With warm regards, -Payal
On Mon 06 Dec 2004, Payal Rathod wrote:> This is the first time I have setup rsync.conf like,[...]> Then from 192.168.10.10, I tried, > rsync -avz -e ssh root@192.168.10.1:/var/qmail/control/* . > and it worked. So far so good. But then again it worked from 192.168.10.11Rsyncd.conf is only used when running rsync as a daemon; when invoking it via ssh like you do, the rsyncd.conf isn't used at all. (It's possible to start rsync in daemon mode over an ssh connection, but that's a bit exotic IMHO.) Also note that you passed a wildcard, it's better to let rsync do the expansion, which it will do as you gave the -a option. You connect to the rsync daemon by using a command line like: rsync -avz 192.168.10.1::qmail-control . Of course, you will have to have started the daemon on 192.168.10.1 first. Paul Slootman
> Hi, > This is the first time I have setup rsync.conf like, > > max connections = 20 > syslog facility = local3 > read only = true > hosts allow = 192.168.10.10 > [qmail-control] > comment = qmail-control > path = /var/qmail/control > read only = yes > list = yes > uid = root > gid = root > > Then from 192.168.10.10, I tried, > rsync -avz -e ssh root@192.168.10.1:/var/qmail/control/* . > and it worked. So far so good. But then again it worked from > 192.168.10.11 > too and that too for other directories too. Even deleting the rsync.conf > file had no effect. What is wrong here? Is this not the way to > use rsync client?Rsync on the *server* will not use the rsync.conf file unless you tell it to. What is your rsync commands you used to start the rsync server? You need to use '--config rsync.conf' for a start. :-)
On Tue, Dec 07, 2004 at 10:06:26AM +0100, Paul Slootman wrote:> You connect to the rsync daemon by using a command line like: > rsync -avz 192.168.10.1::qmail-control . > Of course, you will have to have started the daemon on 192.168.10.1I am not able to get it running properly. # ps aux|grep rsync root 8121 0.0 0.6 1936 644 pts0 S 17:43 0:00 grep rsync Does that mean rsync is not running at all? But using the example you gave I can still get the files,> rsync -avz 192.168.10.1::qmail-control .How exactly do I start the daemon? I have it now in xinetd file as, disable = no socket_type = stream wait = no user = root server = /usr/bin/rsync server_args = --daemon log_on_failure += USERID Thanks in advance. With warm regards, -Payal