Ubuntu – Real time Sync between two folders on different servers

directorynetwork-sharesynchronizationUbuntu

What is the best way to sync two folders completely in real time over two servers (Ubuntu) in same network? Do you think syncing folders is a better idea than having a shared folder? If a shared folder is better, how can I set this up?

Best Answer

I'd personally lean towards a shared folder for this sort of thing. But it does depend on exactly how you're using it. (I'd recommend following Mark's advice for more context)

For Linux, the easiest thing thing would be using NFS mounts. You can do it one of two ways. Either 1) export the folder from one of your two servers, and have the the other mount it, or 2) have a separate server (ie: A centralized file server) export a folder, and have both servers mount it. Generic documentation on how to use NFS can be found all over the place. But sound off if you need specifics.

Related Topic