<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>David Dietrich&#039;s Business Technology Blog &#187; Subversion</title>
	<atom:link href="http://www.daviddietrich.com/tag/subversion/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.daviddietrich.com</link>
	<description>Business Technology Tips</description>
	<lastBuildDate>Mon, 05 Sep 2011 11:58:48 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>How to copy Subversion repositories to another server</title>
		<link>http://www.daviddietrich.com/2009/01/31/how-to-copy-subversion-repositories-to-another-server/</link>
		<comments>http://www.daviddietrich.com/2009/01/31/how-to-copy-subversion-repositories-to-another-server/#comments</comments>
		<pubDate>Sat, 31 Jan 2009 11:51:02 +0000</pubDate>
		<dc:creator>David Dietrich</dc:creator>
				<category><![CDATA[Change Management]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Subversion]]></category>

		<guid isPermaLink="false">http://www.daviddietrich.com/?p=44</guid>
		<description><![CDATA[Ensure you have a working Subversion installation with Apache installed on your system. On the source machine, dump each repository: &#62; svnadmin dump /path/to/repository &#62; repository-name.dmp Copy repository-name.dmp to the target server. Load the repository into the new server: &#62; cd /path/to/new-repository &#62; svnadmin create repository-name &#62; svnadmin load repository-name &#60; repository-name.dmp Reassign apache permissions: [...]]]></description>
			<content:encoded><![CDATA[<ol>
<li>Ensure you have a working Subversion installation with Apache installed on your system.</li>
<li>On the source machine, dump each repository:
<pre><strong><strong><code>&gt; </code></strong></strong><strong><code>svnadmin dump /path/to/repository &gt; repository-name.dmp</code></strong></pre>
</li>
<li>Copy repository-name.dmp to the target server.</li>
<li>Load the repository into the new server:
<pre><strong><code>&gt; cd /path/to/new-repository
&gt; svnadmin create repository-name
&gt; svnadmin load repository-name &lt; repository-name.dmp
</code></strong></pre>
</li>
<li>Reassign apache permissions:
<pre><strong><strong><code>&gt; </code></strong><code>chown -R apache.apache repository-name</code></strong></pre>
</li>
<li>You are now ready to begin using your repository on the new server!</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://www.daviddietrich.com/2009/01/31/how-to-copy-subversion-repositories-to-another-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to install Subversion with Apache HTTPD</title>
		<link>http://www.daviddietrich.com/2009/01/31/installing-subversion-with-httpd/</link>
		<comments>http://www.daviddietrich.com/2009/01/31/installing-subversion-with-httpd/#comments</comments>
		<pubDate>Sat, 31 Jan 2009 10:32:48 +0000</pubDate>
		<dc:creator>David Dietrich</dc:creator>
				<category><![CDATA[Apache Tomcat]]></category>
		<category><![CDATA[Change Management]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[Subversion]]></category>

		<guid isPermaLink="false">http://www.daviddietrich.com/?p=25</guid>
		<description><![CDATA[Ensure you have Apache installed on your system. Ensure you have mod_dav_svn installed: &#62; yum -y update mod_dav_svn Install ssl support to enable https: &#62; yum install mod_ssl Edit /etc/httpd/conf.d/subversion.conf and append the following lines to the end of your config file: &#60;Location /svn&#62; DAV svn SVNParentPath /var/svn AuthType Basic AuthName "Subversion repository" AuthUserFile /etc/svn-auth-file [...]]]></description>
			<content:encoded><![CDATA[<ol>
<li>Ensure you have Apache installed on your system.</li>
<li>Ensure you have mod_dav_svn installed:
<pre><strong>&gt; yum -y update mod_dav_svn</strong></pre>
</li>
<li>Install ssl support to enable https:
<pre><strong>&gt; yum install mod_ssl</strong></pre>
</li>
<li>Edit /etc/httpd/conf.d/subversion.conf and append the following lines to the end of your config file:<br />
<code><strong><br />
&lt;Location /svn&gt;<br />
  DAV svn<br />
  SVNParentPath /var/svn<br />
  AuthType Basic<br />
  AuthName "Subversion repository"<br />
  AuthUserFile /etc/svn-auth-file<br />
  AuthzSVNAccessFile /etc/svn-serve.conf<br />
  Require valid-user<br />
&lt;/Location&gt;</p>
<p></strong></code>
</li>
<li>Create a file called <strong>/etc/svn-auth-file</strong><br />
Assign permission:<br />
<code><strong><br />
&gt; chown root.root /etc/svn-auth-file<br />
&gt; chmod 644 /etc/svn-auth-file</p>
<p></strong></code>
</li>
<li>Add users to /etc/svn-auth-file (one per line) in the form:<br />
tom:$apr1$hDMIx&#8230;$abctozvZbC9J6/heHBBe481You can use htpasswd to do this automatically:<br />
<code><strong><br />
&gt; ### First time: use -cm to create the file<br />
&gt; ### Use -m to use MD5 encryption of the password, which is more secure<br />
&gt; htpasswd -m /etc/svn-auth-file harry<br />
New password: *****<br />
Re-type new password: *****<br />
Adding password for user harry<br />
&gt; htpasswd /etc/svn-auth-file -m sally<br />
New password: *******<br />
Re-type new password: *******<br />
Adding password for user sally<br />
&gt;</p>
<p></strong></code>
</li>
<li>Create a file called /etc/svn-serve.conf<br />
Fill it with:<br />
<codee><strong><br />
[/]<br />
*=<br />
svnUser=rw</p>
<p></strong></code><br />
The user svnUser is being granted read and write access to all projects, while all other users (*) are being denied access.</li>
<li>Assign permissions:<br />
<code><strong><br />
&gt; chown root.apache /etc/svnserve.conf<br />
&gt; chmod 640 /etc/svnserve.conf</p>
<p></strong></code>
</li>
<li>Create /var/svn.<br />
<code><strong><br />
&gt; mkdir -p /var/svn<br />
&gt; chmod 755 /var/svn</p>
<p></strong></code>
</li>
<li>If you are running SELinux, run:<br />
<code><strong><br />
&gt; chcon -R -h -t httpd_sys_content_rw_t /var/svn<br />
&gt; setsebool -P httpd_unified=1 </p>
<p></strong></code>
</li>
<li>You are now ready to being adding Subversion repositories!</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://www.daviddietrich.com/2009/01/31/installing-subversion-with-httpd/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

