Synch question / Problem

steve376

New Member
Joined
Aug 5, 2024
Messages
2
Reaction score
0
Credits
22
Hi,
I am looking for a way to sync 2 servers ( A and B )
But I don't want to synchronize one ( A ) as a master on the slave ( B )

No what I wish is to have 2 servers at the "same level"

If a file is added or modified on A, it should be duplicate on B
But if a file is added or modified on B; it should be added on A
( of course the 2 servers would have a correct time on both servers )

I had a look on the RSYNC functinnality, but apparently, that sounds to be only a Sync from ONE server to the backup server ( rsync /serverA /serverB )

how could I do this ?

Thanks in advance
 


I had a look on the RSYNC functinnality, but apparently, that sounds to be only a Sync from ONE server to the backup server ( rsync /serverA /serverB )
I would run rsync on both computers but not in same time.

But I'm sure better solutions exist.
 
I would find it much easier to just have one server being the nfs server than having it mount those same directories on server 2, that way server 2 would be working directly on server1 and you wouldn't even need to sync of files. It makes it much less complicated instead of having to figure out what files changed on which server and which way you now have to sync them.
 
I would find it much easier to just have one server being the nfs server than having it mount those same directories on server 2, that way server 2 would be working directly on server1 and you wouldn't even need to sync of files. It makes it much less complicated instead of having to figure out what files changed on which server and which way you now have to sync them.
Hi,

The idea is to have 2 servers at 2 different locations ( Offices ) ( distance of about 400 miles )
If the 2 offices connect to the same server; you know how bad is the speed when you try to connect a "so long distance" server via internet.

Ideally, office A connect to Server A and office B connect to Server B
During the night, we sync the 2 servers...
 
The idea is to have 2 servers at 2 different locations ( Offices ) ( distance of about 400 miles )
If the 2 offices connect to the same server; you know how bad is the speed when you try to connect a "so long distance" server via internet.
For that type of situation having a 10G or 25G line will be better or even better, a direct line from datacenter1 to datacenter2.

Ideally, office A connect to Server A and office B connect to Server B
During the night, we sync the 2 servers...
If a file is added or modified on A, it should be duplicate on B
But if a file is added or modified on B; it should be added on A
This sounds quite complicated because it could be so that there two files with the same name, person1 edits it on server1 and person2 edits that same file on server2. When you do a sync, how do you know which of the two files is the correct one and maybe the correct one gets overwritten in the sync? That would be in the situation where both server have the same directory structure for files: ie: /data/office. The other option would be to have a different directory structure for server1 and server2.

For example:
server1: /data/server1
server2: /data/server2

That way you could just sync the files of server1 and server2 to a specific directory structure and not have to worry about situations like if the same files was edited on both sides which file would be the correct one.
 
Last edited:

Members online


Top