Svn
Administration Backup and Recovery Plan
Suppose
we take new Linux server with Ip 10.145.129.217.
Login as
root user
1.Install Apache web
server on Linux server
# httpd –v
If not installed,
follow the below procedure
#rpm -qa | grep -i
httpd
#yum
install httpd
2. Install svn server on Linux server
#yum install mod_dav_svn subversion
##verfying svn installation location and
version
# which svn
# svn --version
3. Integrate Svn server with Apache web
server
LoadModule dav_svn_module modules/mod_dav_svn.so
LoadModule authz_svn_module
modules/mod_authz_svn.so
4. Create Directory /tui/svn if not existing
Untar the
backup file into the /tui/svn.
5.
Modify Subversion config file
under /etc/httpd/conf.d/subversion.conf (all locations and file names maintained
as old server)
<Location
/svn>
DAV svn
SVNParentPath
/tui/svn/repositories
# Access
Control Policy File
AuthzSVNAccessFile
/tui/svn/auth/access-permissions
#
Anonymous access first, failing to authentication when necessary.
# Satisfy
Any
# Require
valid-user
AuthType
Basic
AuthName
"subversion"
AuthUserFile
/tui/svn/auth/svn-auth-file
# For any
operations other than these, require an authenticated user.
<LimitExcept
GET PROPFIND OPTIONS REPORT>
Require
valid-user
</LimitExcept>
</Location>
6.Create User for
svn access checks##
htpasswd -cm /etc/svn-auth-users sampleuser
New password:
Re-type new password:
Adding password for user sampleuser
7. Create separate user for svn activities handling
##Create
a user svn to handle all svn related activities
#group
with name svn
groupadd svn
##user
with name svn
#useradd -G svn svn
##
setting password of svn user
#passwd svn
8.Do
Pre-check, sample checkin, check out on testrepo and then Handover the servers
to users.
No comments:
Post a Comment