测试目的:将svn1.5.3通过hotcopy的方式异地升级到1.9.5
1.先将老版本的svn通过hotcopy做一个备份
[root@qht131 home]# svnadmin hotcopy /home/svn/project/ hotcopy_full
[root@qht131 home]# ls
common(p.a.0) hotcopy_full oracle project.bak svn
[root@qht131 home]# cd hotcopy_full/
[root@qht131 hotcopy_full]# ls
conf db format hooks locks README.txt
[root@qht131 home]# du -hs /home/svn/project/
28M /home/svn/project/
[root@qht131 home]# du -hs /home/hotcopy_full
28M /home/hotcopy_full
通过Hotcopy得到了一个和svn仓库一样的备份,且所占的空间也是一样的。
2.将此备份传到新版本的机器上。
[root@qht131 home]# tar -zcvf hotcopy_full.tar.gz hotcopy_full/
[root@qht131 home]# scp hotcopy_full.tar.gz 172.17.61.132:/home
3.尝试导入到新版本
[root@qht132 home]# svn --version
svn, version 1.9.5 (r1770682)
compiled Mar 20 2022, 16:41:13 on x86_64-unknown-linux-gnu
[root@qht132 home]# tar -zxvf hotcopy_full.tar.gz
[root@qht132 home]# svnadmin hotcopy hotcopy_full /home/svn/project
* Copied revision 0.
* Copied revision 1.
* Copied revision 2.
* Copied revision 3.
导入没有错误,启动svn服务
[root@qht132 home]# svnserve -d -r /home/svn/project/ --config-file=/home/svn/project/conf/svnserve.conf
[root@qht132 home]# netstat -nal | grep 3690
tcp 0 0 0.0.0.0:3690 0.0.0.0:* LISTEN
unix 3 [ ] STREAM CONNECTED 33690
4.查看恢复的svn仓库数据
[root@qht132 home]# su - lxx
[lxx@qht132 ~]$ svn --username admin --password admin co svn://172.17.61.132/ common
-----------------------------------------------------------------------
ATTENTION! Your password for authentication realm:
<svn://172.17.61.132:3690> My First Repository
can only be stored to disk unencrypted! You are advised to configure
your system so that Subversion can store passwords encrypted, if
possible. See the documentation for details.
You can avoid future appearances of this warning by setting the value
of the 'store-plaintext-passwords' option to either 'yes' or 'no' in
'/home/lxx/.subversion/servers'.
-----------------------------------------------------------------------
Store password unencrypted (yes/no)? yes
。。。
A common/src/com/l5m/common/ccpEvalution/IDashBoardable.java
A common/src/com/l5m/common/ccpEvalution/SIMCCPEvalutionImpl.java
A common/src/htdoc
A common/src/htdoc/calendar-win2k-1.css
A common/libs
A common/libs/svnkit.jar
A common/libs/svntask.jar
Checked out revision 3.
checkout没有问题。
|