将Visual SVN服务器从一个Windows安装迁移到另一个Windows安装

I have Visual SVN Server on my Vista laptop. The repository resides on the second hard drive. I am doing a clean install of Windows 7 in the next few days. How do I configure or install Visual SVN Server again and keep the users, repositories, and settings intact from the previous installation? Thanks.

#0

You can simply copy the folder containing the repositories (e.g. c:\repositories) to the new machine. That folder contains all the users (in the file htpasswd) and the access rights (authz).

Note: this is true if you're using subversion authentication. I'm not sure if it's the same when using windows authentication, but I guess it is, since there's also a file named (authz-windows).

Detailed instructions:

  • on the new server, install VisualSVN server
  • during the installation, you are asked where the repositories should be put (the default is c:\repositories)
  • once the server is installed, go to the old machine and open the VisualSVN Server Manager
  • right-click the VisualSVN Server (local) entry in the console and click Properties
  • it the dialog you can find where the repositories are currently located
  • copy everything contained in that folder to the new server's repository folder (e.g. c:\repositories)
  • maybe you'll have to restart the server, but then everything should be up and running

#1

The roles/users are stored in the files groups.conf and htpasswd under the "Repositories" folder and can be copied to the new server. The individual permissions for each repo are stored in the VisualSVN-SvnAuthz file under "Repositories\your-repo\conf" and can also be copied as-is.

The best way to transfer the data history of the repos without getting incompatible file system errors is to create a dump file for each repo, then copy the dump file to the new server and import the dump file on the new server. You need to use the command line tool available in the VisualSVN Management console to create these dump files. Visual SVN has good documentation for the specifics here: http://www.visualsvn.com/support/topic/00010/

推荐文章

合并两个具有公共起始和结束子字符串的字符串

合并两个具有公共起始和结束子字符串的字符串

推荐文章

不使用循环的数据集中的下一行/上一行

不使用循环的数据集中的下一行/上一行

推荐文章

无法将stdClass类型的对象用作数组(php)

无法将stdClass类型的对象用作数组(php)

推荐文章

如何列出mysql存储过程参数

如何列出mysql存储过程参数

推荐文章

Rails:如何根据关联的模型事件增加/减少数量列,而不重复计算?

Rails:如何根据关联的模型事件增加/减少数量列,而不重复计算?

推荐文章

内置Android应用程序库或最快解析方法

内置Android应用程序库或最快解析方法

推荐文章

什么样的模式来完成一个任务,然后再做一些动作

什么样的模式来完成一个任务,然后再做一些动作

推荐文章

在iOS中杀死dispatch_异步队列中的项目

在iOS中杀死dispatch_异步队列中的项目

推荐文章

从ListView获取所选视图

从ListView获取所选视图

推荐文章

Autofac:注册Func<>还是Factory?

Autofac:注册Func还是Factory?

推荐文章

倒计时计数器Javascript还是Jquery?

倒计时计数器Javascript还是Jquery?

推荐文章

什么触发Java中的完全垃圾收集?

什么触发Java中的完全垃圾收集?

推荐文章

SMJobBless导致kSMErrorDomainFramework错误5-指定路径处的工具无效

SMJobBless导致kSMErrorDomainFramework错误5-指定路径处的工具无效

推荐文章

FromAsync BeginReceive冻结WinForm

FromAsync BeginReceive冻结WinForm

推荐文章

HTML鼠标悬停图像在图像上展开

HTML鼠标悬停图像在图像上展开

推荐文章

播放框架重定向错误

播放框架重定向错误