從windows svn伺服器中匯出版本庫至ubuntu svn 伺服器

來源:互聯網
上載者:User

從windows svn伺服器中匯出版本庫至ubuntu svn 伺服器

1、  匯出

a)        在windowscmd 中鍵入 svnadmin dump xxx > xxx.dump

2、  匯入

a)        在ubuntu中建立版本庫 svnadmincreate xxx

b)        將xxx.dump匯入到建立的版本庫中 svnadminload xxx < xxx.dump

c)        修改conf檔案夾中的三個檔案

i.          Authz  版本許可權控制

ii.         Svnserve.conf   基本配置

iii.       Passwd已轉移至/home檔案夾下,統一管理

d)      重啟xinetd  /etc/init.d/xinetd restart

         停止svn伺服器   killall svnserve

         啟動svn伺服器   svnserve –d –r /home --listen-host192.168.19.103

         開放伺服器連接埠       /sbin/iptables–A INPUT –p tcp –dport 3690 –j ACCEPT

                                               /sbin/serviceiptables save

         版本庫許可權管理

                   /home/authz

         使用者對應密碼檔案

         /home/passwd

增加使用者

sudo htpasswd /banbenku/passwd user_name

         刪除使用者

                   Sudo htpasswd –d/banbenku/passwd user_name

         重啟apache

                   /etc/init.d/apache2 restart

 

apache的設定檔,使用父目錄一直無法將許可權檔案加上,所以將所有的工程使用單獨的許可權檔案

/etc/apache2/mods-available/dav_svn.conf

修改配置生效

sudo /etc/init.d/apache2 restart

另外,許可權檔案在/usr/svn目錄下的access_

 

建立版本庫時,需要更改使用者跟組,否則,用戶端無法提交

 

sudo chown -R www-data:subversion svn

 

http://www.oklinux.cn/html/network/ser/20090706/71698.html

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.