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

We have a server running Fedora 7 that we use as our SVN repository server. New IT policies where I work are mandating that we to a Windows box if we want to allow our server to be on the network.

What are the challenges that must be overcome to make this move? Some of these items may be used to get a policy exception in place.

share|improve this question
add comment

5 Answers

up vote 6 down vote accepted

A little check-list:

  • Access method. If you access your SVN server via SSH, you might consider switching to HTTP since it's much more mainstream on Windows.
  • UUID. If you move your repo, just don't forget to make the old one either inaccessible or read-only. Then you can even reuse the same UUID, and enjoy the --relocate option of the switch subcommand on the client for a seamless relocation (no need for a fresh checkout)
  • Apache. You might already have an IIS (or another Web server on the box) so you should change the
  • Database. If you use FSFS as the repository database you can just copy it over. BDB requires a svn dump/load cycle. Think hard if you want to put your database on a network share : only FSFS will work (it's not really recommended though).
  • Users. You have to think about how your users will be authenticated. It may be as simple as copying a htpasswd file over.
  • SVN Version. Just beware that you use the same version of your SVN server. If not, you might require a svn dump/load cycle.
  • Hooks. If you have hooks on your SVN server, it is possible that you have to port them. Either by installing the same script language (think ActivePython or ActivePerl), or just rewrite them in vbs or equivalent.
  • Firewall. Just in case your server box is on a workstation edition, don't forget to open the firewall ports (quite trivial, but I got bitten once).
share|improve this answer
    
+1Nice consolidation. –  Chris Shaffer May 4 '09 at 16:36
add comment

If you are attempting the move in reverse -- using svnadmin in Windows to make an dumpfile of a repository -- be sure to use the cmd.exe prompt and NOT the powershell.

I did this and found out (the hard way) that redirecting output from the powershell results in a Unicode file that svnadmin cannot read when you go to load the same file into the destination repository. It also takes a lot longer to run (and, obviously, the file is twice as big).

share|improve this answer
add comment

Running the VisualSVN Server on Windows has been very smooth. VisualSVN Server can host any number of independent Subversion repositories.

You can move repositories by any Subversion recommended method, it's a standard repository on both sides. Note the repository version, you may need to upgrade. Access permissions are windows oriented, you may have to change the way clients authenticate against the server. Good luck with hook scripts, if any. I hope they are written in a portable scripting language, e.g. Perl or Python.

share|improve this answer
    
+1 for VisualSVN, didn't know about that one! –  Martín Marconcini May 4 '09 at 13:59
    
This is what we decided to give a try. –  Jay R. May 12 '09 at 15:45
add comment

Not sure about all the details, but keep in mind any hooks/scripts you have running on your repository will need to be rewritten as batch files.

share|improve this answer
1  
Can't you just install an interpreter for the scripting language that is used on the Linux SVN server? Another possibility is to wrap the Linux hookscripts with a batch file that calls the correct interpreter for the hookscript –  Otherside May 4 '09 at 14:31
    
Certainly this can be handled in many ways. The important point though is that you will have to do SOMETHING to handle it, and it's an easy to forget piece (therefore a "gotcha"). –  Chris Shaffer May 4 '09 at 16:38
    
depends, if the hooks are shell scripts, then they'll need to be rewritten. If they're perl or python scripts, you just need to get the Strawberry perl dll or python exe installed. –  gbjbaanb Dec 30 '09 at 16:33
add comment

Dump/load would be the proper procedure and keep you safe from any problems. See the svn book

share|improve this answer
add comment

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.