suffer from the slow network during development. The idea of setting up
a read-only mirror has come to my mind for a long time. But I haven't had
the time to implement it. Today, I spent half a day to set it up finally.
Here is the note to record what I read and did to make it work:
- Read this post It tells almost everything you need to know to set it up, of course, you need to have some basic svn knowledge.
- For me the sync was not working due to failing the acquire a write-lock. The error message is: "svnsync: Can't open file '/var/svn/pim_12_mirror/db/write-lock':Permission denied". I fix it by chowning everything under the repo to be owned by svn user.
- Because the mirror is read-only. Using 'svn switch' sub-command will greatly help you to get the best of the mirror while being able to commit the original repo.
No comments:
Post a Comment