from __future__ import * 4.10.2004

2004-10-04

SVN::Mirror

Mirroring of Subversion repositories isn't very well supported at this point. It seems that the only way to do it without filesystem access to the server is with a perl package, SVN::Mirror.

Installing SVN::Mirror was a bit troublesome. Basically you need to:

  • Install Subversion >= 1.0.4

  • Install the Subversion Perl bindings (make install-swig-py, I think)

  • Install SVN::Simple from CPAN (an unlisted dependency)

  • Install SVN::Mirror from CPAN (say no if it asks you about VCP)

After that, you should have a svm utility, which you can mirror your repository with. There is a documentation bug in the current version where it says that that init takes a skip_to argument. It does not. sync does, however.

In order to get the mirror going, you need to do something like this

$ setenv SVMREPOS ~/svm
$ svm init mirror/bob http://svn.red-bean.com/bob
$ svm sync mirror/bob 3

The 3 is important, because it's the skip_to argument that allows your mirror's revisions to match your repository. Don't ask.

To check it out, you do:

$ svn co file://$SVMREPOS/mirror/bob bob

And to update the mirror:

$ svm sync mirror/bob
posted at 22:08:00    #    comment []    trackback []
October
MoTuWeThFrSaSu
     1 2 3
4 5 6 7 8 910
11121314151617
18192021222324
25262728293031
Sep Nov

Bob's Rants

XML-Image Letterimage

© 2004, Bob Ippolito