如何将100多个SVN存储库从Windows服务器迁移到新服务器(Windows)?
我必须将大约 100 多个单独的 svn 存储库移动到不同的 Windows 服务器。我不想转储每个存储库并将其加载到新服务器上,因为这需要花费大量时间。谁能建议一些其他可以节省时间的解决方案。另外,一旦我将存储库移动到新服务器,我是否必须为每个旧存储库创建一个新存储库,或者安装在新服务器上的 svn 是否会检测并跟踪新移动的存储库? 我们在新旧服务器上都使用 Collabnet Subversion Edge。请指教。非常感谢您的帮助。谢谢
i have to move some 100 plus individual svn repos to a different windows server. I don't want to dump each repo and load it on to the new server as it takes a lot of time. can anyone please suggest some other solution which will save time. Also once I move my repos to new server do i have to create a new repository for each single old repository or will the svn installed on the new server detect and track the newly moved repositories?
We are using Collabnet Subversion Edge on both the old and new servers. please advice. you help is greatly appreciated. Thank you
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您使用什么类型的服务器?是 Apache http 吗?
如果您要将存储库从一台 Windows 计算机移动到另一台计算机,只需将存储库目录本身从一个系统移动到另一个系统应该是安全的,并且您不必执行转储和加载。如果两台服务器都运行相同版本的 Subversion,则尤其如此。
但是,如果这是 Unix,我会进行转储和加载,但这只是因为我可以轻松编写 shell 脚本来执行此操作。我想如果你安装了 Cygwin,你可以编写一个 shell 脚本。你的 PowerShell 怎么样?
至于配置,您使用的是 Apache HTTP 吗?如果是这样,您可以使用 SVNParentPath 简单地指向存储所有存储库的父路径。这是我们的。位于
/opt/cm/svn_repos
目录中的任何存储库都用作http://machine/src/
:And what type of server are you using? Is it Apache http?
If you're moving the repositories from one Windows machine to another, it should be safe to simply move the repository directories themselves from one system to the other, and you don't have to do a dump and load. This is especially true if both servers are running the same version of Subversion.
However, if this was Unix, I would do a dump and load, but only because I can easily write a shell script to do this. I guess if you had Cygwin installed, you could write a shell script. How is your PowerShell?
As for configuring, are you using Apache HTTP? If so, you can use the
SVNParentPath
to simply point to the parent path where all the repositories are stored. Here's ours. Any repository located in the/opt/cm/svn_repos
directory is served ashttp://machine/src/<reposName>
: