svn备份 linux备份到windows
1.先搭建SVN服务器
参考 https://blog.csdn.net/helijie92902/article/details/51935122?foxhandler=RssReadRenderProcessHandler
搭建好之后遇到一个问题:TortoiseSVN访问svn://192.168.136.128可以访问到,但是svn://192.168.136.128/svnrepos访问不到
执行svnsync init svn://192.168.136.128/svnrepos svn://192.168.136.129/svnrepos
会提示svnsync: E000022: Session is rooted at 'svn://192.168.136.128/svnrepos' but the repos root is 'svn://192.168.136.128'
原因:
创建的时候要在project上一层加svnrepos目录,project是我的版本库
命令:mkdir -p /var/svn/svnrepos
svnadmin create /var/svn/svnrepos/project
然后用TortoiseSVN访问svn://192.168.136.128/project就可以了
然后在源目录执行svnsync init svn://192.168.136.128/project svn://192.168.136.128/project
参考: https://blog.csdn.net/liuzhigang1237/article/details/7064561
启动服务
linux:svnserve -d -r /var/svn/svnrepos/
windows:svnserve -d -r E:/MyFile4/svnrepos
关闭svn服务
ps aux|grep svn
kill -9 1621
svn备份 linux备份到windows
最新推荐文章于 2024-02-19 10:34:07 发布