将 SVN 迁移到另一台服务器

Migrate SVN to another server

我想将所有数据从实际的SVN迁移到另一台服务器。

我读到了 svnrdump,但我有点困惑。 "dump" 操作后创建的转储文件是否仅包含修订历史记录,还是包含整个 SVN?如果没有,我是否必须自己用相同的文件夹结构将所有文件从旧 SVN 保存到新 SVN,然后加载转储文件?

请阅读文档:

Is the dump file that was created after the "dump" operation just with revision history or does it contains the whole SVN?

Subversion 存储库转储流仅包含修订历史记录。它不包括存储库设置、挂钩脚本、访问规则和您的服务器设置。

将存储库移动到新服务器时,您应该首先部署和配置目标 SVN 服务器。一旦准备就绪,您就可以继续移动存储库。有几个工具,例如svnadmin dump & svnadmin load or svnrdump。由于后者可以在实时存储库上远程操作,它可以帮助您避免或最大程度地减少对最终用户的干扰。

If not, do I have to save all the files from the old SVN to the new one by myself with the same folders structure and then load the dump file?

您可以将存储库转储流保存到文件中,但这只是其中一种可能性。您可以将 svnadmin dump 的输出直接传送到 svnadmin load。使用 svnrdump,您可以通过 HTTP(S) 或 svn:// 协议远程执行此操作。