osync icon indicating copy to clipboard operation
osync copied to clipboard

Any possibilities with 3 nodes

Open ghost opened this issue 5 years ago • 5 comments

Hi ! Does Osync work with 3 nodes ? If any files changed or removed in the node 1, will osync ssh all files changed in node2 and 3 ?

Thanks for your work ! Great project !

ghost avatar Mar 11 '20 17:03 ghost

Hi,

osync works as initiator / target mode (2 servers). You might configure multiple targets, and set the initator as service so updates from node 3 will go to initiator and than to node 1.

deajan avatar Mar 13 '20 09:03 deajan

Hi ! Thanks for your reply ! Do you have any examples ?

I have node 1 to 3, each have the same username and run rsync with sudo.

ghost avatar Mar 13 '20 12:03 ghost

Have you read https://github.com/deajan/osync/issues/153 ?

deajan avatar Mar 13 '20 12:03 deajan

Thanks ! I will try something !

Maybe, is it possible to put multiple values in the TARGET_SYNC_DIR or INITIATOR_SYNC_DIR ? Or multiple config files ? For example : osync.sh /my/dir/myAllNodes*.conf --on-changes

ghost avatar Mar 13 '20 14:03 ghost

Nope, that's not how it is designed. Sorry.

deajan avatar Mar 17 '20 13:03 deajan