On Wednesday 10 August 2011, Sharma, Gaurav wrote: > I have a task in hand to setup a master-slave svn repository configuration > so that master will synchronize its repositories with slave. I searched a > lot on web and found many links telling about how to set it up. Following > those links I started using "svnsync" for this purpose. But some how after > spending many days I am not able it to work as desired. [...] > I have two objectives for this setup- > > 1- End user should be able to perform both check-out and check-in to > the slave repository. > 2- Master should synchronize all its repository with slave
There are basically three steps involved with this: 1. set up a secondary repository This involves creating it and initialising it with svnsync. After this step, you should be able to pull changes from the primary repository by invoking svnsync locally. 2. provide access to the secondary repository This then allows you to push (as opposed to pull) changes from the primary to the secondary repository. Further, it allows you to check out from the secondary repository. You should disallow checkins and revprop changes except for the dedicated svnsync user though, as documented. This seems to be set up correctly already. 3. connect the repositories This involves creating a post-commit hook that svnsyncs the changes to the secondary repository and one for the rev-prop changes, but you seem to have these set up already. 4. create a transparent write-proxy This requires Apache (the rest could be dove with svnserve, too) and should also be documented. I never made this step though but only the former three, since the write-proxy wasn't my requirement. In what stage are you, what works, what are the errors otherwise? > From the very start I have not able to perform commit on the slave. I got > different errors time to time and I am really got tired of these errors. I understand that you are tired of them, but people here haven't seen them even once, so they can't give any suggestions how to fix them... > If I commit on the master then master itself synchronizes with the slave > but sometime even this part doesn't work. This sounds strange, what exactly fails, what are the errors? Uli -- ML: http://subversion.apache.org/docs/community-guide/mailing-lists.html FAQ: http://subversion.apache.org/faq.html Docs: http://svnbook.red-bean.com/ ************************************************************************************** Domino Laser GmbH, Fangdieckstra�e 75a, 22547 Hamburg, Deutschland Gesch�ftsf�hrer: Thorsten F�cking, Amtsgericht Hamburg HR B62 932 ************************************************************************************** Visit our website at http://www.dominolaser.com ************************************************************************************** Diese E-Mail einschlie�lich s�mtlicher Anh�nge ist nur f�r den Adressaten bestimmt und kann vertrauliche Informationen enthalten. Bitte benachrichtigen Sie den Absender umgehend, falls Sie nicht der beabsichtigte Empf�nger sein sollten. Die E-Mail ist in diesem Fall zu l�schen und darf weder gelesen, weitergeleitet, ver�ffentlicht oder anderweitig benutzt werden. E-Mails k�nnen durch Dritte gelesen werden und Viren sowie nichtautorisierte �nderungen enthalten. Domino Laser GmbH ist f�r diese Folgen nicht verantwortlich. **************************************************************************************