Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I want to create a local copy of a remote repo. This shall be done, because we are running some tools which are using the repo very often and we want to prevent wasting bandwidth.
There are no writing processes on the local copy. It should be updated before the tools are being started.

My first idea was to use svnsync, but we can't use it. I read some tutorials about it and it needs a configuration on master side. On the one side it is not possible to do that on the other side there is no possibility to allow incoming transmissions. The master triggers the sync of the slave if I am right
svnadmin hotcopy works only on file base.

It is not possible to switch to git, because I am using statsvn for some statistics.

The remote repo is reachable over HTTPS. Is there any possibility to create a copy of it?

Thanks for any hints.

share|improve this question
1  
... use svnsync, but we can't use it caused of our network security. - Please elaborate? –  Zoredache Feb 26 '13 at 17:25
    
BTW, have you considered switching over to GIT, and using git-svn? That gives you a full copy of the repo locally. –  Zoredache Feb 26 '13 at 17:26
    
I justed added some details. –  CSchulz Feb 27 '13 at 9:19

1 Answer 1

Okay I made a mistake. I missunderstood the output of svnsync:

svnsync: Repository has not been enabled to accept revision propchanges;
ask the administrator to create a pre-revprop-change hook

I thought I have to create such script on master side, not on slave side.
Now I got it working. Just followed the steps:

  1. Create slave repo
  2. Create pre-revprop-change hook
  3. Use svnsync init to initialize it
  4. Use svnsync sync to synchronize it

Thanks to @Zoredache for his comment.

The update is now performed with a daily cronjob.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.