Hi, I am a newbie to Rysnc and a had a quick question, the answer for which I wasn't able to find in the documentations. Currently I have Solaris system A which has files that are being generated and changed in real time. I am running rysnc in daemon mode on A.(server) On system B I use the appropriate rysnc command to connect to system A and sync all the files on B. I am having to either manually initiate the command on B or run a cron job on B to initiate the rysnc every few minutes to A. Is it possible to run rysnc in daemon mode on system B(client) as well such that rsync will auto detect modifications and sync all the files with system A in real-time? If yes could someone give me pointers to how I would need to configure the rsync daemon on the client to achieve this? Thanks Piyush -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.samba.org/pipermail/rsync/attachments/20100126/0f5b0c00/attachment.html>
On Tue 26 Jan 2010, Piyush Pande wrote:> > Is it possible to run rysnc in daemon mode on system B(client) as well such that rsync will auto detect modifications and sync all the files with system A in real-time?You will of course never attain "real-time" updating over systems. Using cron is the only option with rsync. You may want to investigate DRBD or csync2, but possibly those are only available for linux. Otherwise using a NAS or SAN, depending on your situation (you don't really tell much) might be more appropriate for your needs. Paul
> Is it possible to run rysnc in daemon mode on system B(client)the answer is yes.> as well such that rsync will auto detect modifications and sync all the files with system A in real-time?the answer is no. i think the best way is after the program change the file, it use rsync to sync files. and another way, just run rsync in an infinite loop: while :;do rsync -xxxxx;done -- contact me: MSN: walkerxk at gmail.com,walkerxk at hotmail.com GTALK: walkerxk at gmail.com QQ:25329680