<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
	>
<channel>
	<title>Comments on: Subversion Maintenance Scripts</title>
	<atom:link href="http://www.zorched.net/2006/09/27/subversion-maintenance-scripts/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.zorched.net/2006/09/27/subversion-maintenance-scripts/</link>
	<description>Musings of a software developer in Milwaukee, WI.</description>
	<pubDate>Tue, 06 Jan 2009 11:12:45 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Windows Subversion Maintenance Scripts &#124; Zorched / One Line Fix</title>
		<link>http://www.zorched.net/2006/09/27/subversion-maintenance-scripts/comment-page-1/#comment-14286</link>
		<dc:creator>Windows Subversion Maintenance Scripts &#124; Zorched / One Line Fix</dc:creator>
		<pubDate>Thu, 20 Nov 2008 02:46:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.zorched.net/2006/09/27/subversion-maintenance-scripts/#comment-14286</guid>
		<description>[...] I wrote about the Subversion Maintenance Scripts that I use for doing things like backups and upgrades. They were bash shell scripts that automated [...]</description>
		<content:encoded><![CDATA[<p>[...] I wrote about the Subversion Maintenance Scripts that I use for doing things like backups and upgrades. They were bash shell scripts that automated [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Geoff Lane</title>
		<link>http://www.zorched.net/2006/09/27/subversion-maintenance-scripts/comment-page-1/#comment-14284</link>
		<dc:creator>Geoff Lane</dc:creator>
		<pubDate>Wed, 19 Nov 2008 22:31:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.zorched.net/2006/09/27/subversion-maintenance-scripts/#comment-14284</guid>
		<description>Daniel,
Thanks for another way to do it. You are right, if you left the dump files in there and re-ran the script it would complain about those. I generally run it and then move all the dumps somewhere else.

An easy way around the problem is just to redirect the dump output to another directory:
&lt;code lang="bash"&gt;
for i in *; do
    svnadmin dump $i &gt; ../dumps/${i}.dump;
done;
&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>Daniel,<br />
Thanks for another way to do it. You are right, if you left the dump files in there and re-ran the script it would complain about those. I generally run it and then move all the dumps somewhere else.</p>
<p>An easy way around the problem is just to redirect the dump output to another directory:</p>

<div class="wp_syntax"><div class="code"><pre class="bash bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">for</span> i <span style="color: #000000; font-weight: bold;">in</span> <span style="color: #000000; font-weight: bold;">*</span>; <span style="color: #000000; font-weight: bold;">do</span>
    <span style="color: #c20cb9; font-weight: bold;">svnadmin</span> dump <span style="color: #007800;">$i</span> <span style="color: #000000; font-weight: bold;">&gt;</span> ..<span style="color: #000000; font-weight: bold;">/</span>dumps<span style="color: #000000; font-weight: bold;">/</span><span style="color: #800000;">${i}</span>.dump;
<span style="color: #000000; font-weight: bold;">done</span>;</pre></div></div>

]]></content:encoded>
	</item>
	<item>
		<title>By: Daniel</title>
		<link>http://www.zorched.net/2006/09/27/subversion-maintenance-scripts/comment-page-1/#comment-14283</link>
		<dc:creator>Daniel</dc:creator>
		<pubDate>Wed, 19 Nov 2008 21:37:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.zorched.net/2006/09/27/subversion-maintenance-scripts/#comment-14283</guid>
		<description>Wouldn't your "dump all" script select files too and attempt to run the commands on them?  If you are leaving all the dump files in the svn directory, then the ls would pick those up too so you'd have errors where the svnadmin command would be 'svnadmin dump x.dump &#62; x.dump.dump'

Here's a one liner that should avoid this problem:
&lt;code lang="bash"&gt;
find * -maxdepth 0 -type d -print0 &#124; xargs -0 -I{} sh -c 'svnadmin dump {} &#62; {}.dump'
&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>Wouldn&#8217;t your &#8220;dump all&#8221; script select files too and attempt to run the commands on them?  If you are leaving all the dump files in the svn directory, then the ls would pick those up too so you&#8217;d have errors where the svnadmin command would be &#8217;svnadmin dump x.dump &gt; x.dump.dump&#8217;</p>
<p>Here&#8217;s a one liner that should avoid this problem:</p>

<div class="wp_syntax"><div class="code"><pre class="bash bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">find</span> <span style="color: #000000; font-weight: bold;">*</span> <span style="color: #660033;">-maxdepth</span> 0 <span style="color: #660033;">-type</span> d <span style="color: #660033;">-print0</span> | <span style="color: #c20cb9; font-weight: bold;">xargs</span> <span style="color: #660033;">-0</span> -I<span style="color: #7a0874; font-weight: bold;">&#123;</span><span style="color: #7a0874; font-weight: bold;">&#125;</span> <span style="color: #c20cb9; font-weight: bold;">sh</span> <span style="color: #660033;">-c</span> <span style="color: #ff0000;">'svnadmin dump {} &amp;gt; {}.dump'</span></pre></div></div>

]]></content:encoded>
	</item>
	<item>
		<title>By: Brennan Stehling</title>
		<link>http://www.zorched.net/2006/09/27/subversion-maintenance-scripts/comment-page-1/#comment-408</link>
		<dc:creator>Brennan Stehling</dc:creator>
		<pubDate>Thu, 28 Sep 2006 16:37:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.zorched.net/2006/09/27/subversion-maintenance-scripts/#comment-408</guid>
		<description>You may also want to note that your build integration server (CruiseControl) should be off during the upgrade because it will just slow down the process.  I may wait till 1.4.1 before I make the jump.</description>
		<content:encoded><![CDATA[<p>You may also want to note that your build integration server (CruiseControl) should be off during the upgrade because it will just slow down the process.  I may wait till 1.4.1 before I make the jump.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
