root/trunk/svn_mirroring.txt

Revision 2740, 1.8 kB (checked in by jim, 2 years ago)

Updating svn mirror for Subversion 1.4.0

Line 
1 The following port needs to open on your firewall.
2 80/tcp
3
4 The Following modules will need to be added to your apache, you
5 will need to make sure your apache was compiled with --enable-proxy.
6 If it has not, you will need to recompile it.
7
8 LoadModule proxy_module lib/apache/mod_proxy.so
9 LoadModule proxy_http_module lib/apache/mod_proxy_http.so
10
11 Along with the svn ones.
12
13 LoadModule dav_svn_module     lib/apache/mod_dav_svn.so
14 LoadModule authz_svn_module   lib/apache/mod_authz_svn.so
15
16 Copy from your subversion tarballs tools/xslt/svnindex.* to your
17 /srv/www/htdocs directory.
18
19 Apache httpd.conf file
20 <Location /svn/repos>
21   <Limit CHECKOUT DELETE GET MERGE PROPFIND PUT OPTIONS REPORT>
22         DAV svn
23         SVNParentPath /srv/svn
24         SVNIndexXSLT /svnindex.xsl
25         AuthzSVNAccessFile /etc/svn/svn_auths
26         Satisfy Any
27         Require valid-user
28         AuthType Basic
29         AuthName "Subversion Repository"
30         AuthUserFile /etc/svn/svn_users
31   </Limit>
32  <LimitExcept CHECKOUT DELETE GET MERGE PROFIND PUT OPTIONS REPORT>
33        ProxyPass http://svn.cross-lfs.org/svn/repos
34        ProxyPassReverse http://svn.cross-lfs.org/svn/repos
35 </LimitExcept>
36 </Location>
37 </Location>
38
39 --SVN Setup
40
41 Create a cross-lfs Repo locally
42
43 Change into the directory where you want to create the repo at,
44 normally this is /srv/svn. The run the following command.
45
46 svnadmin create cross-lfs
47
48 --
49 Create pre-revprop-change
50
51 Now change into the /srv/svn/cross-lfs and run the follow commands
52 to create pre-revprop-change
53
54 cat > hooks/pre-revprop-change << "EOF"
55 #!/bin/sh
56 EOF
57 chmod 755 hooks/pre-revprop-change
58
59 --
60 Make sure apache has full access, this assumes your are in /srv/svn
61
62 chown {myapacheuser}:root * -R
63
64 --
65 Intialize the Repo via syncsnc
66
67 svnsync init http://{myapacheip}/svn/repos/cross-lfs http://svn.cross-lfs.org/svn/repos/cross-lfs
68
69 --
70 Do the Initial Sync
71
72 svnsync sync http://{myapacheip}/svn/repos/cross-lfs
Note: See TracBrowser for help on using the browser.