Nginx – WebDav mirroring with Apache/Nginx

apache-2.2mirroringnginxwebdav

Folks,
I have an "origin" server where data is being dumped using WebDav. I need to distribute this data to edge caches as soon as the data is received on the origin. I will use either Apache or Nginx for the origin and the edge server.

What is the recommended way to do a live mirroring of my content from origin to edge? Is it possible to program WebDAV triggers into Apache/Nginx that will result in the content being propagated, or should I look at something simple like rsync?

Thanks for your insights.

-Raj

Best Answer

inotify and rsync is a crude but effective method for doing this. Lsyncd does the job for me, but I'm ok with a few seconds lag between my origin and edge nodes. If you're after something quicker you'll need to consider spending a lot of time/money.

Related Topic