将Subversion存储库移动到另一台服务器 [英] Moving a Subversion repository to another server

查看:77
本文介绍了将Subversion存储库移动到另一台服务器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一台托管我的Subversion代码库的服务器.该服务器当前是 Windows Server 2003 框,我的IT管理员希望将其更新为 Windows Server 2008 .

I have a server that hosts my Subversion code base. That server is currently a Windows Server 2003 box, and my IT administrator wants to update it to Windows Server 2008.

这意味着在服务器建立期间,我将需要移动Subversion存储库,并且想知道将存储库移至新服务器的最佳实践是什么.

This means that I'm going to need to move my Subversion repository while the server gets built up and was wondering what the best practices are for moving the repository to a new server.

看起来,在线上看,推荐的使用方式是:

It seems like, looking online, the recommended way is to use:

svnadmin dump /path/to/repository > repository-name.dmp

然后使用:

svnadmin create repository-name
svnadmin load repository-name< repository-name.dmp

要导入存储库.

上面的方法看起来是最好的方法吗?

Does the method above seem like the best approach?

推荐答案

是的,转储存储库是一种方法.仅当您确定在复制过程中没有人会访问存储库时,才直接复制存储库文件夹是可行的选择(或者您可以对存储库进行热复制",这可以处理这些情况)以安全的方式).

Yes, dumping and loading the repository is a way to go. Copying the repository folder directly is a viable option if, and only if, you are certain nobody will be accessing the repository while the copy process is in progress (or you can do a "hot copy" of the repository, which can handle these cases in a safe manner).

您还需要重新签出所有工作副本,或使用 svn开关命令,该命令仅重写URL.一种更方便的方法是使用TortoiseSVN的 Relocate 命令,这样可以减少在重定位过程中出错的风险.

You will also need to either re-checkout all your working copies, or use the svn switch command, which merely rewrites URLs. A more convenient way is to use TortoiseSVN's Relocate command, which reduces the risk of making a mistake during the relocation process.

这篇关于将Subversion存储库移动到另一台服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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