<?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>/harry-webster.co(.uk&#124;m)/ &#187; subversion. migrate</title>
	<atom:link href="http://www.harry-webster.co.uk/tag/subversion-migrate/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.harry-webster.co.uk</link>
	<description>Harry Webster&#039;s Blog</description>
	<lastBuildDate>Thu, 11 Aug 2011 18:43:03 +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>HOWTO migrate a subversion repository to a new host</title>
		<link>http://www.harry-webster.co.uk/2010/06/howto-migrate-a-subversion-repository-to-a-new-host/</link>
		<comments>http://www.harry-webster.co.uk/2010/06/howto-migrate-a-subversion-repository-to-a-new-host/#comments</comments>
		<pubDate>Wed, 09 Jun 2010 15:05:06 +0000</pubDate>
		<dc:creator>Harry</dc:creator>
				<category><![CDATA[Software Development]]></category>
		<category><![CDATA[Systems Administration]]></category>
		<category><![CDATA[move]]></category>
		<category><![CDATA[subversion. migrate]]></category>
		<category><![CDATA[svn]]></category>

		<guid isPermaLink="false">http://www.harry-webster.co.uk/?p=87</guid>
		<description><![CDATA[I recently had to migrate a SVN repo to a new host aswell as moving it&#8217;s location on the server, this is how [...]]]></description>
			<content:encoded><![CDATA[<p>I recently had to migrate a SVN repo to a new host aswell as moving it&#8217;s location on the server, this is how I did it.</p>
<p>On the existing server we&#8217;ll need to make a backup of the subversion repo:</p>
<p><em>$ svnadmin dump /home/current_repo_location &gt; my_repo.dump<br />
$ tar -zcvf /root/my_repo.tar.gz my_repo.dump</em></p>
<p>Depending on the size and age of your repository these two commands could take some time to complete.</p>
<p>Now log in to your to your new server</p>
<p><em>$ rsync -v -r &#8211;ignore-existing &#8211;delete -e ssh root@xxx:/root/my_repo.tar.gz /home/new_location/<br />
$ tar -zxvvf /root/my_repo.tar.gz<br />
$ svnadmin load </em><em>my_repo.dump</em><em> /home/new_location<br />
$ cd /home/new_location<br />
$ find . -path \*.svn/entries -exec perl -spi -le &#8216;s#current_location/project_name#new_location/project_name#&#8217; &#8216;{}&#8217; \;</em></p>
<p>That should do it.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.harry-webster.co.uk/2010/06/howto-migrate-a-subversion-repository-to-a-new-host/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

