Home » Questions » Computers [ Ask a new question ]

What tool would be best to synchronize a directory on multiple Linux machines?

What tool would be best to synchronize a directory on multiple Linux machines?

I need to have a certain directory synchronized across multiple linux machines, so that changes on one machine are either pushed to the other copies or easily polled. I'm ok with having one master and the others as slave.

Asked by: Guest | Views: 67
Total answers/comments: 3
Guest [Entry]

Csync2 is a tool designed to synchronize configuration files among multiple servers. It has various strategies for handling conflicts, can keep backups of changed files, and has a very flexible configuration. I've used it in a number of situations and I've been happy with it.
Guest [Entry]

"Unison is a good file synchronizer which works for both Windows and Linux. Contrary to rsync, unison can synchronize in both ways (csync can do that, too, by the way, but it's kind of harder to setup as far as I can remember).

From what I've heard, iFolder is a good replacement for DropBox/SpiderOak, but I haven't tried it personally.

If you choose rsync, there's several ways to call it:

From cron, on a regular basis (e.g. once every 10 minutes or once every 1 hour)
From incron, reacting on events (e.g. everytime a file is modified or created in a directory).

You can also combine the two methods to be sure:
- Fire from incron to be sure to copy the modified file. You can even use scp directly sinc e you know the file that changed, so it'll be more efficient
- Call rsync from a cron to fix copies that might have failed, or apply a --delete option to remove files that are not on the other side."
Guest [Entry]

"Setup a FREENAS?

FreeNAS™ is an Open Source Storage Platform based on FreeBSD and
supports sharing across Windows, Apple, and UNIX-like systems.
FreeNAS™ 8 includes ZFS, which supports high storage capacities and
integrates file systems and volume management into a single piece of
software."