Does anyone know of a bi directional mirroring tool to sync 2 different directories? Here is the scenario:
NFS mount under /data/nfs Document root under /data/www
Obviously we don't want to use an NFS mount over globally separated servers due to it's slowness and other issues. So the idea is to create a NFS mount in one directory that is hosted on a single file server and have the document root run on fast internal server drives. When a change is made on the document root side it syncs it back to the nfs directory and also if a change is detected in the nfs side it is synced over to the document root directory.
So why not use something like dropbox to sync? There is max file limitations and obviously cost involved in running cloud based servers including privacy issues.
I've looked at mirrordir but it seems to be one directional and not really suited to be run as a daemon as there can be some really bad consequences with deletes if they run at the wrong times.
So ideally it should be something along the lines of an inode notify makes a modification between the directories. I'm at wits end trying to find a solution for this without having to actually build my own solution but if it has to come to that then so be it. Just trying to find a better solution that doesn't need to be built from scratch.
I've also looked at using rsync / unison although it's error prone and slow when trying to sync bi directional.