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.

I'm using VisualSVN server. Since one of the hosted repositories is moving to a different server, I'd like to export a table of users with their password hashes and import it at the new location.

There does not seems to be an official way to do this. I found that passwords are stored in 'htpasswd', but it seems to be linked in other locations, too, so it feels like a dangerous idea.

Do you have any experiences with moving repositories, or is there a different way I should try?

share|improve this question
add comment

1 Answer

up vote 2 down vote accepted
  • To move only user accounts you can just copy the 'htpasswd' file to the new server. However in that case all Subversion user accounts will be available on the new server. After you move the 'htpasswd' you may edit it through VisualSVN Server Manager to get rid of unnecessary user accounts or to create new ones.

  • 'htpasswd' has a standard format and can be also managed by standard htpasswd utility. See http://httpd.apache.org/docs/2.2/programs/htpasswd.html

  • Please also consider moving the 'authz' file to the new server. 'Authz' file contains path-based authorization settings and by moving the file you won't have to set permissions for users again.

share|improve this answer
1  
Is the htpasswd/authz format used by all Svn servers, or is it specific to VisualSVN? –  mafutrct Mar 15 '12 at 14:30
    
'htpasswd' and 'authz' are used by all Subversion servers that use Subversion authentication type. For Active Directory authentication there is obviously no 'htpasswd' however 'authz-windows' has the same 'authz' format but contains AD users and groups SIDs instead of usernames. –  bahrep Mar 16 '12 at 12:34
    
I see, thanks a lot! –  mafutrct Mar 16 '12 at 13:05
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.