sc create svn binPath= "\"c:\Program Files\Subversion\bin\svnserve.exe\" --service -r D:\SVN" Displayname= "Subversion Server" depend= Tcpip start= auto
start: net start svn stop: net stop svn 正確的話應該可以用svn://host-name,來存取(這邊範例是本機上的repository) 修改權限 在Repository目錄下面/conf/svnserve.conf,修改如下 [general] anon-access = read auth-access = write password-db = userfile 同目錄增加檔案 userfile [users] austin = austinpassword sally = barpassword 然後遠端登入的時候記得使用建立好的username和password即可。 (TortoiseSVN會直接帶出帳號密碼 dialog給你輸入) 備份 寫batch file如下,在丟進排程軟體即可(可直接使用window內附的)
REM Create sub directory called \yymmdd_hhmmss
REM where yymmdd_hhmmss is a date_time stamp like 030902_134200
set hh=%time:~0,2%
REM Since there is no leading zero for times before 10 am, have to put in
REM a zero when this is run before 10 am.
if "%time:~0,1%"==" " set hh=0%hh:~1,1%
set yymmdd_hhmmss=%date:~2,2%%date:~5,2%%date:~8,2%_%hh%%time:~3,2%%time:~6,2%
svnadmin dump d:/svn > d:/back/%yymmdd_hhmmss%.dump
沒有留言:
張貼留言