You could use crontab to run the rsync client periodically. You could have a script on the remote host with all the rsync client commands and parameters, and run that with an ssh command, something like this:
on the host with the rsync daemon you run: ssh u...@remote_host /root/scripts/sync-stuff.sh remote_host being the rsync client host, and sync-stuff.sh being the script which runs the rsync. You could set up ssh with keys so you don't need to use passwords, then you could put this command in crontab on THIS host. (you may want to think about security when setting something like this up, though). You could think about setting stuff up reversed, so this host with the rsync daemon would push the new stuff to the remote client, instead of the remote client pulling. If you use rsync through ssh for example (with no daemon), there isn't any client and server in the usual sense, both can be clients and servers, too. Both can send and receive, regardless who initiates the connection. If all depends on what you want to do exactly. Kaushal Shriyan wrote: > Hi, > > I have followed https://help.ubuntu.com/community/rsync and > successfully configured it and works fine without any issue. > > The question is how can i call the rsync client from the remote hosts > automatically to ping the rsync daemon and fetch only the new files > which is available on rsync server? > > Thanks and Regards, > > Kaushal > -- Imre Gergely Yahoo!: gergelyimre | ICQ#: 101510959 MSN: gergely_imre | GoogleTalk: gergelyimre gpg --keyserver subkeys.pgp.net --recv-keys 0x34525305 -- ubuntu-server mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-server More info: https://wiki.ubuntu.com/ServerTeam
