<?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>Perplexed Labs &#187; svn</title>
	<atom:link href="http://blog.perplexedlabs.com/tag/svn/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.perplexedlabs.com</link>
	<description>web development war stories from the frontlines to the backend</description>
	<lastBuildDate>Mon, 16 May 2011 14:19:38 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.2</generator>
		<item>
		<title>Backing Up Subversion Repositories Using svnadmin hotcopy</title>
		<link>http://blog.perplexedlabs.com/2009/09/11/backing-up-subversion-repositories-using-svnadmin-hotcopy/</link>
		<comments>http://blog.perplexedlabs.com/2009/09/11/backing-up-subversion-repositories-using-svnadmin-hotcopy/#comments</comments>
		<pubDate>Fri, 11 Sep 2009 17:18:02 +0000</pubDate>
		<dc:creator>Matt</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Infrastructure]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[hotcopy]]></category>
		<category><![CDATA[subversion]]></category>
		<category><![CDATA[svn]]></category>
		<category><![CDATA[svnadmin]]></category>

		<guid isPermaLink="false">http://blog.perplexedlabs.com/?p=363</guid>
		<description><![CDATA[Just wanted to post this quick bash script to iterate over the repositories in a directory, perform an svnadmin hotcopy, and tar/gzip the output. By using hotcopy this can be performed on a live subversion repository and will produce a pristine backup. #!/bin/bash REPOS_PATH=/var/repos mkdir -p /backups/weekly rm -rf /backups/tmp mkdir -p /backups/tmp/repos for i [...]


Related posts:<ol><li><a href='http://blog.perplexedlabs.com/2009/02/09/automated-backups-a-5-minute-script-to-safer-data/' rel='bookmark' title='Permanent Link: Automated Backups &#8211; A 5 Minute Script To Safer Data'>Automated Backups &#8211; A 5 Minute Script To Safer Data</a></li>
<li><a href='http://blog.perplexedlabs.com/2008/03/18/svn-keyword-substitution/' rel='bookmark' title='Permanent Link: SVN Keyword Substitution svn:keywords'>SVN Keyword Substitution svn:keywords</a></li>
<li><a href='http://blog.perplexedlabs.com/2008/11/10/setup-python-25-mod_wsgi-and-django-10-on-centos-5-cpanel/' rel='bookmark' title='Permanent Link: Setup Python 2.5, mod_wsgi, and Django 1.0 on CentOS 5 (cPanel)'>Setup Python 2.5, mod_wsgi, and Django 1.0 on CentOS 5 (cPanel)</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Just wanted to post this quick bash script to iterate over the repositories in a directory, perform an svnadmin hotcopy, and tar/gzip the output.</p>
<p>By using hotcopy this can be performed on a live subversion repository and will produce a pristine backup.</p>
<pre class="brush: bash; title: ;">
#!/bin/bash
REPOS_PATH=/var/repos
mkdir -p /backups/weekly
rm -rf /backups/tmp
mkdir -p /backups/tmp/repos
for i in $(ls $REPOS_PATH); do
        /path/to/svnadmin hotcopy $REPOS_PATH/$i /backups/tmp/repos/$i
done
FN=svn.weekly.`date '+%Y%m%d'`.tar.gz
tar -czf /backups/weekly/$FN -C /backups/tmp .
</pre>


<p>Related posts:<ol><li><a href='http://blog.perplexedlabs.com/2009/02/09/automated-backups-a-5-minute-script-to-safer-data/' rel='bookmark' title='Permanent Link: Automated Backups &#8211; A 5 Minute Script To Safer Data'>Automated Backups &#8211; A 5 Minute Script To Safer Data</a></li>
<li><a href='http://blog.perplexedlabs.com/2008/03/18/svn-keyword-substitution/' rel='bookmark' title='Permanent Link: SVN Keyword Substitution svn:keywords'>SVN Keyword Substitution svn:keywords</a></li>
<li><a href='http://blog.perplexedlabs.com/2008/11/10/setup-python-25-mod_wsgi-and-django-10-on-centos-5-cpanel/' rel='bookmark' title='Permanent Link: Setup Python 2.5, mod_wsgi, and Django 1.0 on CentOS 5 (cPanel)'>Setup Python 2.5, mod_wsgi, and Django 1.0 on CentOS 5 (cPanel)</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://blog.perplexedlabs.com/2009/09/11/backing-up-subversion-repositories-using-svnadmin-hotcopy/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>SVN Automatically Setting Properties</title>
		<link>http://blog.perplexedlabs.com/2008/04/09/svn-automatically-setting-properties/</link>
		<comments>http://blog.perplexedlabs.com/2008/04/09/svn-automatically-setting-properties/#comments</comments>
		<pubDate>Wed, 09 Apr 2008 21:20:47 +0000</pubDate>
		<dc:creator>Matt</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Infrastructure]]></category>
		<category><![CDATA[auto-props]]></category>
		<category><![CDATA[enable-auto-props]]></category>
		<category><![CDATA[propset]]></category>
		<category><![CDATA[svn]]></category>

		<guid isPermaLink="false">http://www.perplexedlabs.com/2008/04/09/svn-automatically-setting-properties/</guid>
		<description><![CDATA[It's quite the pain in the ass to manually propset for each new file added. Edit the file .subversion/config and scroll down towards the bottom... find the [miscellany] block and uncomment the line enable-auto-props = true In the group of options below titled [auto-props] and add a line like: * = svn:keywords=Id Date LastChangedBy Revision [...]


Related posts:<ol><li><a href='http://blog.perplexedlabs.com/2008/03/18/svn-keyword-substitution/' rel='bookmark' title='Permanent Link: SVN Keyword Substitution svn:keywords'>SVN Keyword Substitution svn:keywords</a></li>
<li><a href='http://blog.perplexedlabs.com/2009/09/11/backing-up-subversion-repositories-using-svnadmin-hotcopy/' rel='bookmark' title='Permanent Link: Backing Up Subversion Repositories Using svnadmin hotcopy'>Backing Up Subversion Repositories Using svnadmin hotcopy</a></li>
<li><a href='http://blog.perplexedlabs.com/2010/02/08/deployment-using-capistrano-and-webistrano-via-rails-and-phusion-passenger/' rel='bookmark' title='Permanent Link: Deployment Using Capistrano / Webistrano via Rails / Phusion Passenger'>Deployment Using Capistrano / Webistrano via Rails / Phusion Passenger</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>It's quite the pain in the ass to manually propset for each new file added.</p>
<p>Edit the file .subversion/config and scroll down towards the bottom... find the <strong>[miscellany] </strong>block and uncomment the line <strong>enable-auto-props = true</strong></p>
<p>In the group of options below titled <strong>[auto-props] </strong>and add a line like:</p>
<blockquote><p>* = svn:keywords=Id Date LastChangedBy Revision</p>
</blockquote>


<p>Related posts:<ol><li><a href='http://blog.perplexedlabs.com/2008/03/18/svn-keyword-substitution/' rel='bookmark' title='Permanent Link: SVN Keyword Substitution svn:keywords'>SVN Keyword Substitution svn:keywords</a></li>
<li><a href='http://blog.perplexedlabs.com/2009/09/11/backing-up-subversion-repositories-using-svnadmin-hotcopy/' rel='bookmark' title='Permanent Link: Backing Up Subversion Repositories Using svnadmin hotcopy'>Backing Up Subversion Repositories Using svnadmin hotcopy</a></li>
<li><a href='http://blog.perplexedlabs.com/2010/02/08/deployment-using-capistrano-and-webistrano-via-rails-and-phusion-passenger/' rel='bookmark' title='Permanent Link: Deployment Using Capistrano / Webistrano via Rails / Phusion Passenger'>Deployment Using Capistrano / Webistrano via Rails / Phusion Passenger</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://blog.perplexedlabs.com/2008/04/09/svn-automatically-setting-properties/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SVN Keyword Substitution svn:keywords</title>
		<link>http://blog.perplexedlabs.com/2008/03/18/svn-keyword-substitution/</link>
		<comments>http://blog.perplexedlabs.com/2008/03/18/svn-keyword-substitution/#comments</comments>
		<pubDate>Wed, 19 Mar 2008 02:53:56 +0000</pubDate>
		<dc:creator>Matt</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Infrastructure]]></category>
		<category><![CDATA[keyword substitution]]></category>
		<category><![CDATA[subversion]]></category>
		<category><![CDATA[svn]]></category>
		<category><![CDATA[svn:keywords]]></category>

		<guid isPermaLink="false">http://www.perplexedlabs.com/2008/03/18/svn-keyword-substitution/</guid>
		<description><![CDATA[Ever see those pretty comments at the top of a source code file under version control via subversion? It's really rather simple to setup. Assuming you're past the point where you have a repository with files already under version control, you simply add in wherever you want the substitution to occur the variable name surrounded [...]


Related posts:<ol><li><a href='http://blog.perplexedlabs.com/2008/04/09/svn-automatically-setting-properties/' rel='bookmark' title='Permanent Link: SVN Automatically Setting Properties'>SVN Automatically Setting Properties</a></li>
<li><a href='http://blog.perplexedlabs.com/2009/09/11/backing-up-subversion-repositories-using-svnadmin-hotcopy/' rel='bookmark' title='Permanent Link: Backing Up Subversion Repositories Using svnadmin hotcopy'>Backing Up Subversion Repositories Using svnadmin hotcopy</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Ever see those pretty comments at the top of a source code file under version control via subversion?  It's really rather simple to setup.</p>
<p>Assuming you're past the point where you have a repository with files already under version control, you simply add in wherever you want the substitution to occur the variable name surrounded by $.</p>
<pre class="brush: php; title: ;">
/* SVN: $Id$ */
/**
 * Short Description
 *
 * Long Description
 *
 * @package			mypackage
 * @lastmodified	$Date$
 * @modifiedby		$LastChangedBy$
 * @version			$Revision$
 */
</pre>
<p>Then you run the svn propset command in your working directory:</p>
<blockquote><p>svn propset svn:keywords "Id Date LastChangedBy Revision" . -R</p></blockquote>
<p>Remember, you need to set properties to all new files you add, this is NOT done automatically!</p>


<p>Related posts:<ol><li><a href='http://blog.perplexedlabs.com/2008/04/09/svn-automatically-setting-properties/' rel='bookmark' title='Permanent Link: SVN Automatically Setting Properties'>SVN Automatically Setting Properties</a></li>
<li><a href='http://blog.perplexedlabs.com/2009/09/11/backing-up-subversion-repositories-using-svnadmin-hotcopy/' rel='bookmark' title='Permanent Link: Backing Up Subversion Repositories Using svnadmin hotcopy'>Backing Up Subversion Repositories Using svnadmin hotcopy</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://blog.perplexedlabs.com/2008/03/18/svn-keyword-substitution/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

