Hi all, I'm newbie with rsync so I would like to ask more experienced users for help. I have following task: I have 3 places (A,B and C). Place A is "main" place. I want to use rsync to synchronize all data from place A to places B and C (only one-way from A to B and C). I tried to write simple command but it looks bad. Just for imagination place A have over 50 GB of data. I know the "first" synchronization will take long time but I want to be sure the next synchronization will synchronize only modified files. I thought about possibility build list of files on each places locally and than just exchange differences but it looks too complicated for me. Can you please just navigate me someone to correct way ? I know I can do this by trial/fault by I rather ask someone who have more experience. Thanks in advance. ____________________________________________________________________________________ Need a vacation? Get great deals to amazing places on Yahoo! Travel. http://travel.yahoo.com/
On 10/10/07, Michael Reynolds <neufurth_bernd@yahoo.com> wrote: <snip>> I have 3 places (A,B and C). Place A is "main" place. > I want to use rsync to synchronize all data from place > A to places B and C (only one-way from A to B and C).Simply run two rsync commands. One to rsync from A to B and one to rsync from A to C. The specific method depends on the underlying OS and services available? Is security an issue? Are there Windows machines involved? You could run an rsync daemon on machine A and then run rsync scripts that will "pull" data out of A. So, on B you'd run: rsync -avz A::name_of_module . and on C you'd run exactly the same: rsync -avz A:name_of_module . HTH -A
Please keep replies on-list for the benefit of others, the archives etc. On 10/12/07, Michael Reynolds <neufurth_bernd@yahoo.com> wrote: <snip>> question. I am running on Macintosh OS X operating > system . You wrote about installing daemon on machine > A and put clients on B and C. I would like to ask you > what are benefits (differences) between running rsync > as daemon (server) and just by writing script by > simple command ? I tried just simple command and looks > it works ( I am using switches "vctzErR". I am asking > about it because if I create just one script on > machine A I can simply change it only on one place. > Otherwise your solution need the script will be > changed on two places (B and C) so I am just asking > what is advantage of rsync "server" in this case.Because of security considerations I tend to avoid excessive daemons. Any extra listening port on a host is an extra security threat. With that in mind, I would go for one daemon on machine A, and the two other machines using simple scripted rsync commands to exchange data with the daemon. Other than that, it's up to you. You're right that if you have two daemons (on hosts B & C) and one script (on host A) you have less scripts to maintain. Cheers -A
On 10/12/07, Alexandros Papadopoulos <apapadop@alumni.cmu.edu> wrote:> With that in mind, I would go for one daemon on machine A, and the two > other machines using simple scripted rsync commands to exchange data > with the daemon.Having the other machines connect to A via ssh may be easier than setting up a daemon. Matt