I have two webapp, old one is WS1 and the new version is WS2. Now I want to synchronize pictures/attachments from WS1 to WS2 to keep both running. I found some tools like lsyncd / unison / GlusterFS. lsyncd is pretty handy but I found some issues please help.
I see some tutorials about setup lsyncd for two webserver. But can we install package like lsyncd in the server hosted in the cloud? Like AWS. Do we have root to do it? If not then how could I setup it?
After trying lsyncd, It works well locally. But I found that if the server is down or lsyncd restarts, it will synchronize WS1 and WS2 folders exactly same. If I have some files in WS2 that WS1 doesn't have, then these files will be deleted when restart lsyncd. How to avoid this? Since there will be new files in WS2.
lsyncd is one-way synchronize, is there two-way reliable solution? Or is there a better way rather than synchronize? Like sharing one file server?
Thanks for reading the long question. Appreciate any help.