Configuring Rsync to run without any user input or Cron job.

Matthias Schniedermeyer ms at citd.de
Wed Nov 19 20:49:27 GMT 2008


On 19.11.2008 07:03, Etienne D wrote:
> 
> Hi !
> 
> I would like to know if it's possible for Rsync to automatically mirror a
> folder and it's content from one deamon to another. (or one client to a
> deamon) Basically I want users to drag and drop files in a folder and Rsync
> to mirror these files as soon as it sees them. A cron or schedule task is
> not a viable solution since we can receive files any time of night or day
> and we need to send them in very timely manner. I was looking into Rsync
> list of parameters, but couldn't find that precise option... We were using
> Double-Take in the past, but it's only giving us troubles. Thanks in advance
> for the tip.

For "as soon as it happens" i would suggest you build yourself something 
around inotify. Which is availe for Linux Kernel 2.6.10 and newer.
The "IN_CLOSE_WRITE" is likely the event you are looking for.





Bis denn

-- 
Real Programmers consider "what you see is what you get" to be just as 
bad a concept in Text Editors as it is in women. No, the Real Programmer
wants a "you asked for it, you got it" text editor -- complicated, 
cryptic, powerful, unforgiving, dangerous.



More information about the rsync mailing list