[英]Create SVN repository from svnadmin hotcopy
I have a backup of all my svn repository folders and sadly I didn´t know anything of the svn dump format. 我已经备份了所有svn信息库文件夹,可惜我不知道svn转储格式。 The backups are created with "hotcopy"
使用“ hotcopy”创建备份
Now my server is broken and I had to reinstall everything from scratch and I want to reimport the svn repositories. 现在我的服务器坏了,我不得不从头开始重新安装所有内容,并且我想重新导入svn存储库。
Copying them into the folder didn´t work and 将它们复制到文件夹中无效,并且
svnadmin create /my/existing/repository
svnadmin创建/ my / existing / repository
didn´t work too. 也没用。
Is there any possibility to restore my repositories in an "easy" way? 有可能以“简单”的方式恢复我的存储库吗?
Just transfer the hotcopy to the new server and point the svn server at it. 只需将热拷贝转移到新服务器上,然后将svn服务器指向该服务器即可。
The only thing to watch out for is a large difference between the versions of the svn server. 唯一需要注意的是svn服务器版本之间的巨大差异。 If the new server isn't compatible with the format used on the old server it might not work.
如果新服务器与旧服务器上使用的格式不兼容,则可能无法使用。
Here's what I have done as an experiment to illustrate. 这是我作为实验所做的说明。 I have a repository on my laptop
~/svnServe/importantApp
我的笔记本电脑上有一个存储库
~/svnServe/importantApp
svnserve --listen-host 127.0.0.1 -d -r ~/svnServe/importantApp/
svn list svn://127.0.0.1/
branches/
tags/
trunk/
svnadmin hotcopy ~/svnServe/importantApp ~/svnServe/importantAppHotcopy
sudo svnserve --listen-host 127.0.0.1 -d -r ~/svnServe/importantAppHotcopy/
svn list svn://127.0.0.1/
branches/
tags/
trunk/
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.