因為想用 svnsync 做系統排程 (.sh) 去備份遠端的 svn repository 到 NAS上 (DS415+ DSM 5.1-5021)
下指令 svnsync init 結果得到這個訊息
svnsync: E170000: Unrecognized URL scheme for 'https://xxx.xxx/xxx'
NAS 上的 svn server 有沒有走 http svn 的通道,並不是優先需求(我可以用 VPN)
但我需要同步備份時可抓遠端 https URL 的 svn repository,
請問要怎麼做呢?
DS415Plus> svn --version
svn, version 1.8.9 (r1591380)
compiled Nov 20 2014, 18:36:31 on i686-pc-linux-gnu
Copyright (C) 2014 The Apache Software Foundation.
This software consists of contributions made by many people;
see the NOTICE file for more information.
Subversion is open source software, see http://subversion.apache.org/
The following repository access (RA) modules are available:
* ra_svn : Module for accessing a repository using the svn network protocol.
- with Cyrus SASL authentication
- handles 'svn' scheme
* ra_local : Module for accessing a repository on local disk.
- handles 'file' scheme
<Location /svn>
DAV svn
SVNPath /shar/svn/repo
AuthType Basic
AuthName "USER"
AuthUserFile /etc/subversion/passwd
<LimitExcept GET PROPFIND OPTIONS REPORT>
Require valid-user
</LimitExcept>
</Location>
"Location"是你要給人使用的URL
"SVNPath"是你NAS上的repository的路徑
Authtication 認證等比較複雜一點,建議詳讀SVN book
http://svnbook.red-bean.com/en/1.5/svn.serverconfig.httpd.html
weic wrote:
你需要用libapa...(恕刪)
您誤會了
我這樣說明好了
A Server - HTTPS SVN server
裡面有 svn 儲存庫 repo001
B Server (NAS) - svn command line
我要用 command line 的方式 把 A server 的 svn repo001 儲存庫 每天單向同步 到 b server 的硬碟上面就好
主要是要備份 不會拿來用 沒有對 b server 存取 svn repo001 儲存庫 的需求
A Server 一旦發生問題, svn repo001 儲存庫,
至多也是用 usb 外接碟,複製到 "C server"
B server 並沒有要安排 "svn server" 的任務, 就是 command line client 角色而已
玩攝影嗎?歡迎來 iCanon 交流喔! http://www.icanon.asia




























































































