将 VisualSVN 服务器从一个 Windows 安装迁移到另一个 [英] Migrating VisualSVN Server from one Windows install to another

查看:34
本文介绍了将 VisualSVN 服务器从一个 Windows 安装迁移到另一个的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的 Vista 笔记本电脑上有 VisualSVN 服务器.存储库位于第二个硬盘驱动器上.我将在接下来的几天内全新安装 Windows 7.

I have VisualSVN 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.

如何重新配置​​或安装 VisualSVN Server 并保持上次安装的用户、存储库和设置不变?

How do I configure or install VisualSVN Server again and keep the users, repositories, and settings intact from the previous installation?

推荐答案

您可以简单地将包含存储库的文件夹(例如 c:\repositories)复制到新机器上.该文件夹包含所有用户(在文件 htpasswd 中)和访问权限(authz).

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).

注意:如果您使用 subversion 身份验证,这是正确的.我不确定在使用 Windows 身份验证时是否相同,但我猜是这样,因为还有一个名为 (authz-windows) 的文件.

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).

详细说明:

  • 在新服务器上,安装 VisualSVN 服务器
  • 在安装过程中,系统会询问您应该将存储库放在哪里(默认为 c:\repositories)
  • 安装服务器后,转到旧机器并打开VisualSVN 服务器管理器
  • 右键单击控制台中的 VisualSVN Server (local) 条目,然后单击 Properties
  • 通过该对话框,您可以找到存储库当前所在的位置
  • 将该文件夹中包含的所有内容复制到新服务器的存储库文件夹(例如 c:\repositories)
  • 也许您必须重新启动服务器,但一切都应该正常运行
  • 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

这篇关于将 VisualSVN 服务器从一个 Windows 安装迁移到另一个的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆