[Cialug] instant replication with rsync
David Bierce
david at bierce.org
Tue Jan 13 12:07:11 CST 2009
You can monitor the directories on the disk and look for changes then
execute a script on an interval or when the change happens.
Easy scriptable tools.
http://inotify-tools.sourceforge.net/
Dave
On Jan 13, 2009, at 11:37 AM, Matthew Nuzum wrote:
> Is there a way to use rsync (or a similar tool) to get near instant
> replication?
>
> Scenario, you have a website that allows users to upload images. Files
> are uploaded several times per day at unpredictable intervals. You
> want the images to appear instantly regardless of which webserver they
> were uploaded on.
>
> Setting rsync to run at 1min intervals would not do this because if
> you upload an image you want to see it right away. Also, on a busy day
> there may be 10 - 20 images uploaded. If you have multiple servers
> running rsync at one min intervals it would be a bit wasteful.
>
> --
> Matthew Nuzum
> newz2000 on freenode, skype, linkedin, identi.ca and twitter
> _______________________________________________
> Cialug mailing list
> Cialug at cialug.org
> http://cialug.org/mailman/listinfo/cialug
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://cialug.org/pipermail/cialug/attachments/20090113/6c0d7124/attachment.html
More information about the Cialug
mailing list