Synchronize files and folders between servers -using inotiy and rsync with c++