Score:0

Sync a directory between two shared hosting servers using rsync

gy flag

I have two shared hosting servers and I need to sync a directory with subfiles/directories using rsync via SSH automatically.

Mean: If server1 had changed server2 updates the changes. If server2 had changed server1 updates the changes.

I can use cron but I don't know the best way to do that.

drookie avatar
za flag
You're describing shared fs, for instance NFS. You cannot achieve that with rsync since rsync uses the changes vector, *source -> destination*, and in your case there's no constant direction. Bet that question will be voted down and closed.
Mohamed Gamal Eldin avatar
gy flag
@drookie As I understood from you, with `rsync` there is only `Master` -> `Slave`, I cant use `Master`<->`Master` right? If your answer is yes, Can you tell me the ways to do it?
Patrick Mevzek avatar
cn flag
`unison` allows to do `Master <-> Master` synchronization.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.