Skip to main content
3 of 8
edited tags
terdon
  • 252.2k
  • 69
  • 480
  • 718

Mirroring two directories

In a Ubuntu 14.04 system I have two directories dirA and dirB with the same contents and I would like to keep them synced. Any modifications made in dirB should be mirrored in dirA and viceversa.

I did not choose rsync because I need a real-time syncronization to be set once; lsyncd works well in (almost) real-time, but it has some issues when trying to use it bidirectionally.

dirA and dirB should be stored in different locations (e.g. different disks), but there should not be a client and a server: the actions performed against dirA should be replicated at the same time in dirB and viceversa.

  • Does exist a tool, or filesystem, which is able to perform this?

  • Does such a tool/filesystem exist when dirB is in another machine?

BowPark
  • 5.2k
  • 13
  • 54
  • 78