将 Subversion 服务器从 1.5.5 升级到 1.6.5 - 转储/升级/重新加载,具体步骤? [英] Upgrading Subversion server from 1.5.5 to 1.6.5 - dump/upgrade/reload, exact steps?
问题描述
我即将将 SVN 服务器从 1.5.5 版升级到 1.6.5 版 - 实际升级一切正常,但我对升级实际存储库有点困惑.
我在几个地方读过(此处,here),最好转储和重新加载存储库,而不是使用 svnadmin upgrade
.我假设我应该转储,升级服务器,然后重新加载转储 - 但是,我应该在加载之前清除存储库中的旧文件吗?如果是这样,最好的方法是什么?
如果在我彻底搞砸我的版本控制系统之前,有人能给我一个快速的步骤,那将非常有帮助!
干杯,标记
有一个快速步骤-Subversion 常见问题解答中的分步:
<块引用>- 关闭 svnserve、Apache 和任何其他可能访问存储库的程序.
svnadmin dump/path/to/repository >dumpfile.txt
,使用 svnadmin 的 X 版本.mv/path/to/repository/path/to/saved-old-repository
- 现在升级到 Subversion Y(即构建和安装 Y,替换 X).
svnadmin 创建/path/to/repository
,使用 svnadmin 的 Y 版本.svnadmin load/path/to/repository <dumpfile.txt
,再次使用 svnadmin 的 Y 版本.- 将钩子脚本等从旧存储库复制到新存储库.
- 重启 svnserve、Apache 等.
更多关于倾销的细节并在 Subversion 书中加载.我假设您研究了 subversion 1.6 发行说明.
I'm about to upgrade a SVN server from version 1.5.5 to 1.6.5 - all is fine with the actual upgrade, but I'm a little confused about upgrading the actual repositories.
I've read in a few places (here, here), that it's better to dump and reload the repositories rather than using svnadmin upgrade
. I assume that I should dump, upgrade the server and then load the dumps back in - however, should I clear the old files out of the repository before loading? If so, what's the best way to do this?
If, before I thoroughly screw up my version control system, someone could give me a quick step-by-step, it would be really helpful!
Cheers, Mark
there is a quick step-by-step in the Subversion FAQ:
- Shut down svnserve, Apache, and anything else that might be accessing the repository.
svnadmin dump /path/to/repository > dumpfile.txt
, using version X of svnadmin.mv /path/to/repository /path/to/saved-old-repository
- Now upgrade to Subversion Y (i.e., build and install Y, replacing X).
svnadmin create /path/to/repository
, using version Y of svnadmin.svnadmin load /path/to/repository < dumpfile.txt
, again using version Y of svnadmin.- Copy over hook scripts, etc, from the old repository to the new one.
- Restart svnserve, Apache, etc.
more details on dumping and loading in the Subversion book. i assume you studied the subversion 1.6 release notes.
这篇关于将 Subversion 服务器从 1.5.5 升级到 1.6.5 - 转储/升级/重新加载,具体步骤?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!