-1

How can I keep in sync my /home directory on two different systems?

I found something like unison, but it is no longer in the repositories of centos9. Are there other possible solutions?

The synchronization should take place in both directions and it must be possible to work with multi users on both systems.

6
  • 1
    People say good things about syncthing. I do like unison though — you could build unison from source. Commented Jan 14 at 16:25
  • 1
    product suggestions are offtopic, but you might want to use nfs to do so
    – djdomi
    Commented Jan 14 at 16:34
  • rsync using PKI infrastructure will be a safe/secure option. Set up SSL keys and add each host to the other's authorisedkeys, and then set up a script on a cronjob, or use inotify to trigger the sync on changes Commented Jan 14 at 17:10
  • 1
    trent, i belive he wants a 2 way instant sync, moreover there is a similar question
    – djdomi
    Commented Jan 14 at 17:45
  • thanks, I would prefer basic tools like rsync. Sync speed is not the main issue. The main problem is deleting while changes can be made on both systems at the same time. In the worst case, data can be incorrectly deleted with rsync.
    – 2IRN
    Commented Jan 14 at 18:57

1 Answer 1

0

I personally syncing is not a good idea when having two systems accessing the data. I could imagine a scenario where data is being changes by users and in the same time also edited by users on node2, that would definitely create data corruption. And also imagine a user charging a file the sync comes and overwrites the changes.

In this matter, providing a collaboration environment like SharePoint Online would be better. Then a file gets locked for editing when a user is working on it.

1
  • I care about the home directories of users. In this case, a user would have to edit a file on both systems.
    – 2IRN
    Commented Feb 3 at 10:49

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .