<?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>thecrumb.com &#187; subversion</title>
	<atom:link href="http://thecrumb.com/tag/subversion/feed/" rel="self" type="application/rss+xml" />
	<link>http://thecrumb.com</link>
	<description>developer &#124; thinker &#124; tinkerer</description>
	<lastBuildDate>Sat, 04 Feb 2012 01:28:22 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Automated Merge Notices</title>
		<link>http://thecrumb.com/2011/07/28/automated-merge-notices/</link>
		<comments>http://thecrumb.com/2011/07/28/automated-merge-notices/#comments</comments>
		<pubDate>Thu, 28 Jul 2011 14:13:23 +0000</pubDate>
		<dc:creator>Jim Priest</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[Ant]]></category>
		<category><![CDATA[automation]]></category>
		<category><![CDATA[subversion]]></category>

		<guid isPermaLink="false">http://thecrumb.com/?p=1563</guid>
		<description><![CDATA[I&#8217;m working on a project with another developer and we&#8217;ve decided to create a branch for my changes. Heavy development continues in the trunk as well and I need to frequently merge the trunk into my branch. Being lazy of &#8230; <a href="http://thecrumb.com/2011/07/28/automated-merge-notices/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m working on a project with another developer and we&#8217;ve decided to create a branch for my changes.   Heavy development continues in the trunk as well and I need to frequently merge the trunk into my branch. Being lazy of course I didn&#8217;t want to do this manually :)<br />
<span id="more-1563"></span><br />
First I created a simple batch file. I&#8217;m doing an update on my local working copy to make sure it&#8217;s updated, then I run an Ant script.</p>
<pre class="brush: plain; title: ; notranslate">
REM Change to local working copy directory
cd c:\myproject

REM Run SVN update to verify working copy code is current
svn update 

REM Run merge target
ant -f c:\myproject\_build\build.xml email-merge-status
</pre>
<p>My Ant script simply runs the merge and sends me an email.  See my previous post (from 2006!) about <a href="http://thecrumb.com/2006/08/29/sending-email-from-ant/" title="Sending Email From Ant">sending email via Ant</a> if you need help configuring that.   All my properties <em>${something}</em> are defined in an external property file but you should get the idea.</p>
<pre class="brush: xml; title: ; notranslate">
&lt;target name=&quot;email-merge-status&quot; depends=&quot;-init&quot; description=&quot;Send email with merge status&quot;&gt;
&lt;exec executable=&quot;svn&quot; outputproperty=&quot;svnmergeoutput&quot;&gt;
&lt;arg line=&quot;merge ${svn.trunk} ${path.branch} --dry-run&quot; /&gt;
&lt;/exec&gt;

&lt;mail mailhost=&quot;${mail.server}&quot; mailport=&quot;${mail.port}&quot; subject=&quot;${ant.project.name} Merge Status&quot;&gt;
&lt;from address=&quot;${mail.default.from}&quot; /&gt;
&lt;to address=&quot;${mail.default.to}&quot; /&gt;
&lt;message&gt;
Merge status for: ${ant.project.name}
Running:  merge ${svn.trunk} ${path.branch} --dry-run

=================================================================

${svnmergeoutput}
&lt;/message&gt;
&lt;/mail&gt;
&lt;/target&gt;
</pre>
<p>I&#8217;m using the <strong>&#8211;dry-run</strong> SVN option with the merge just so I can get an idea of how many conflicts I can expect. If there aren&#8217;t many I will remove that and automate the merge and possibly the commit as well.   </p>
<p>Now a few times I day I get a nicely formatted email that lets me know if I need to take action to update my branch:</p>
<blockquote><p>
Merge status for: IRBIS<br />
Running:  merge https://svn.myproject.some.url/svn/myproject/trunk/ c:/myproject &#8211;dry-run<br />
=================================================================<br />
&#8212; Merging r703 through r708 into &#8216;c:\myproject&#8217;:<br />
U    c:\myproject\admin_buckets_search.cfm<br />
U    c:\myproject\admin_gen_attachment_types.cfm<br />
U    c:\myproject\event_attachments.cfm<br />
U    c:\myproject\admin_gen_detail.cfm<br />
U    c:\myproject\wireframe\balsamiq_files\popup_existing_responses.bmml
</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://thecrumb.com/2011/07/28/automated-merge-notices/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Integrating JIRA and SVN Using bugtraq Properties</title>
		<link>http://thecrumb.com/2008/11/25/integrating-jira-and-svn-using-bugtraq-properties/</link>
		<comments>http://thecrumb.com/2008/11/25/integrating-jira-and-svn-using-bugtraq-properties/#comments</comments>
		<pubDate>Tue, 25 Nov 2008 19:15:24 +0000</pubDate>
		<dc:creator>Jim Priest</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[jira]]></category>
		<category><![CDATA[subclipse]]></category>
		<category><![CDATA[subversion]]></category>
		<category><![CDATA[svn]]></category>

		<guid isPermaLink="false">http://www.thecrumb.com/?p=604</guid>
		<description><![CDATA[Here at work we are using JIRA for bug/issue tracking, most of the developers also use Eclipse and everyone is using Subversion (TortoiseSVN). I was digging through one of the SVN books and came across a bugtraq property. A bit &#8230; <a href="http://thecrumb.com/2008/11/25/integrating-jira-and-svn-using-bugtraq-properties/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Here at work we are using JIRA for bug/issue tracking, most of the developers also use Eclipse and everyone is using Subversion (TortoiseSVN).</p>
<p>I was digging through one of the SVN books and came across a <em>bugtraq</em> property.  A bit of Googling turned me onto a great tutorial by Mark Phippard (project lead for Subclipse):</p>
<p><a href="http://markphip.blogspot.com/2007/01/integrating-subversion-with-your-issue.html">Integrating Subversion with your Issue Tracking System</a></p>
<p><span id="more-604"></span></p>
<p>This is one of those simple tweaks that makes your life much easier as a developer.  After adding the properties outlined in Mark&#8217;s tutorial:</p>
<div id="attachment_606" class="wp-caption aligncenter" style="width: 432px"><a href="http://thecrumb.com/wp-content/uploads/2008/11/bugtraq2.png"><img class="size-full wp-image-606" src="http://thecrumb.com/wp-content/uploads/2008/11/bugtraq2.png" alt="bugtraq properties" width="422" height="161" /></a><p class="wp-caption-text">bugtraq properties</p></div>
<p>Now in my commit dialog I get a text area to enter my JIRA key:</p>
<div id="attachment_605" class="wp-caption aligncenter" style="width: 410px"><a href="http://thecrumb.com/wp-content/uploads/2008/11/bugtraq.png"><img class="size-full wp-image-605" src="http://thecrumb.com/wp-content/uploads/2008/11/bugtraq.png" alt="Subclipse dialog w/JIRA KEY prompt" width="400" height="326" /></a><p class="wp-caption-text">Subclipse dialog w/JIRA KEY prompt</p></div>
<p>Since I have Mylyn installed &#8211; when I hover over the link in the SVN History view I get two choices:</p>
<div id="attachment_608" class="wp-caption aligncenter" style="width: 277px"><a href="http://thecrumb.com/wp-content/uploads/2008/11/bugtraq4.png"><img class="size-full wp-image-608" src="http://thecrumb.com/wp-content/uploads/2008/11/bugtraq4.png" alt="Open with options" width="267" height="90" /></a><p class="wp-caption-text">Open with options</p></div>
<p>So now I can open the task in Mylyn or if I select the hyperlink option it opens in the Eclipse browser.</p>
<div id="attachment_607" class="wp-caption aligncenter" style="width: 410px"><a href="http://thecrumb.com/wp-content/uploads/2008/11/bugtraq3.png"><img class="size-full wp-image-607" src="http://thecrumb.com/wp-content/uploads/2008/11/bugtraq3.png" alt="Mylyn View" width="400" height="308" /></a><p class="wp-caption-text">Mylyn View</p></div>
]]></content:encoded>
			<wfw:commentRss>http://thecrumb.com/2008/11/25/integrating-jira-and-svn-using-bugtraq-properties/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Subversion &#8211; Just Do It</title>
		<link>http://thecrumb.com/2008/01/03/subversion-just-do-it/</link>
		<comments>http://thecrumb.com/2008/01/03/subversion-just-do-it/#comments</comments>
		<pubDate>Thu, 03 Jan 2008 13:32:12 +0000</pubDate>
		<dc:creator>Jim Priest</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[subversion]]></category>

		<guid isPermaLink="false">http://www.thecrumb.com/2008/01/03/subversion-just-do-it/</guid>
		<description><![CDATA[Yesterday evening there was a post on the CFEclipse mailing list. Someone was curious about how they could back up their CFEclipse projects and I responded &#8220;by using Subversion&#8221;. They replied: It just seems like complicated overkill for a single &#8230; <a href="http://thecrumb.com/2008/01/03/subversion-just-do-it/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Yesterday evening there was a post on the CFEclipse mailing list. Someone was curious about how they could back up their CFEclipse projects and I responded &#8220;by using Subversion&#8221;.</p>
<p>They replied:</p>
<blockquote><p>It just seems like complicated overkill for a single developer</p></blockquote>
<p>I see this all the time and it&#8217;s frustrating because of all the tools I use Subversion is THE one I wish I had started using years ago.  Yes it was confusing at first&#8230; What is an update? Commit?  WHERE is my code?  What is a &#8216;repository&#8217;?   But now I couldn&#8217;t live without it.</p>
<p><em>Everything</em> I do related to a project goes into Subversion:</p>
<ul>
<li>Code</li>
<li>Ant build scripts</li>
<li>SQL scripts</li>
<li>ALL project documentation</li>
</ul>
<p>Installing and getting started with Subversion is fairly easy.  There is a <a href="http://svnbook.red-bean.com/">Subversion book online</a>, for free.   There is a &#8216;one-click&#8217; installer (for Windows) <a href="http://svn1clicksetup.tigris.org/">available</a>. There are several great client utilities.  Two of my favorite are <a href="http://subclipse.tigris.org/">Subclipse</a> (great w/CFEclipse) and <a href="http://tortoisesvn.tigris.org/">TortoiseSVN</a>.</p>
<p>I recommend everyone download and check out the help file included with TortoiseSVN. It is IMO one of the best guides written for Subversion.  In particular the &#8220;Basic Concepts&#8221; and &#8220;Daily Use Guide&#8221; sections are a great introduction to version control.</p>
<p>While I&#8217;m pushing Subversion here,  if that doesn&#8217;t work for you, there are <a href="http://en.wikipedia.org/wiki/List_of_revision_control_software">lots of other version control solutions</a>.  Just use one.  It doesn&#8217;t matter if you are a solo developer or on a team. Version control will help make you a better developer.</p>
]]></content:encoded>
			<wfw:commentRss>http://thecrumb.com/2008/01/03/subversion-just-do-it/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Trac/Subversion Book</title>
		<link>http://thecrumb.com/2007/12/29/tracsubversion-book/</link>
		<comments>http://thecrumb.com/2007/12/29/tracsubversion-book/#comments</comments>
		<pubDate>Sun, 30 Dec 2007 03:25:32 +0000</pubDate>
		<dc:creator>Jim Priest</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[Books]]></category>
		<category><![CDATA[subversion]]></category>

		<guid isPermaLink="false">http://www.thecrumb.com/2007/12/29/tracsubversion-book/</guid>
		<description><![CDATA[Just saw this on Google Reader while reading my Ubuntu feeds&#8230; Managing Software Development with Trac and Subversion. That looks like a good one!!]]></description>
			<content:encoded><![CDATA[<p>Just saw this on <a href="http://schwuk.com/articles/2007/12/29/hard-copy">Google Reader</a> while reading my Ubuntu feeds&#8230;</p>
<p><a href="http://www.packtpub.com/managing-software-development-with-trac-and-subversion">Managing Software Development with Trac and Subversion</a>.</p>
<p>That looks like a good one!!</p>
]]></content:encoded>
			<wfw:commentRss>http://thecrumb.com/2007/12/29/tracsubversion-book/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Why Use Subversion?  Two Reasons: Revert and Branches</title>
		<link>http://thecrumb.com/2007/08/20/why-use-subversion-revert/</link>
		<comments>http://thecrumb.com/2007/08/20/why-use-subversion-revert/#comments</comments>
		<pubDate>Mon, 20 Aug 2007 13:59:48 +0000</pubDate>
		<dc:creator>Jim Priest</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[subversion]]></category>

		<guid isPermaLink="false">http://www.thecrumb.com/2007/08/20/why-use-subversion-revert/</guid>
		<description><![CDATA[I&#8217;ve seen a few posts and blog comments were people were reluctant to implement some kind of version control primarily because they develop by themselves and didn&#8217;t see any value. Two things I use in Subversion that makes my development &#8230; <a href="http://thecrumb.com/2007/08/20/why-use-subversion-revert/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve seen a few posts and blog comments were people were reluctant to implement some kind of version control primarily because they develop by themselves and didn&#8217;t see any value.</p>
<p>Two things I use in Subversion that makes my development easier are Branches and the Revert command.</p>
<p>So the last few days I&#8217;ve been messing around with some <a href="http://www.thecrumb.com/2007/08/16/cfdocument-and-css-hell/">CFDocument stuff</a> as well as doing a lot of experimental jQuery work.</p>
<p><strong>Revert</strong><br />
According to the SVN documentation:</p>
<blockquote><p>Reverts any local changes to a file or directory and resolves any conflicted states.</p></blockquote>
<p>What&#8217;s neat with Subversion is I can open my print.cfm &#8211; and try out several cfdocument ideas &#8211; code them up &#8211; save them, try em out and if they don&#8217;t work &#8211; in CFEclipse (using the Subclipse plugin) I simply right-click on the file, click Team &gt; Revert and my file is back to a known working state.  No renaming or making a backup of the file before tinkering with it&#8230; no hitting CTRL+Z (undo) a million times.  Back to square one with a few clicks.  You may revert a single file or an entire directory.</p>
<p><strong>Branches</strong><br />
With my jQuery code &#8211; I&#8217;m developing a HTML version of an existing PDF user manual.  I&#8217;m using jQuery to build a fancy collapsible table of contents.  I&#8217;m doing this in steps while I work through the book &#8211; post questions to the mailing list, etc.   I don&#8217;t want to develop this in my main code &#8211; so I&#8217;ve created a &#8216;branch&#8217; in Subversion &#8211; again from the SVN docs:</p>
<blockquote><p>
Branch &#8211; a line of development that exists independently of another line, yet still shares a common history if you look far enough back in time. A branch always begins life as a copy of something, and moves on from there, generating its own history.</p></blockquote>
<p>So I&#8217;ve made a branch of the existing user manual code (my /manual directory) and I can develop and experiment on that &#8216;branch&#8217; while keeping the existing PDF manual current in my main code base.</p>
<p>If my jQuery experiments work out &#8211; I will eventually merge my branched code into the working code base &#8211; or I can simple trash that branch and continue on using the PDF version.  Again &#8211; no undoing, renaming, or major reorganization of my main code base is required.</p>
<p>So you can see &#8211; I&#8217;m doing all of this with my local development code &#8211; there is no team involved here &#8211; and I still see a benefit of using version control.  If you are a solo developer &#8211; download it and start using it &#8211; I guarantee you will kick yourself for not trying it out sooner.</p>
]]></content:encoded>
			<wfw:commentRss>http://thecrumb.com/2007/08/20/why-use-subversion-revert/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Automated Subversion Reports w/StatSVN and Ant</title>
		<link>http://thecrumb.com/2007/02/26/automated-subversion-reports-wstatsvn-and-ant/</link>
		<comments>http://thecrumb.com/2007/02/26/automated-subversion-reports-wstatsvn-and-ant/#comments</comments>
		<pubDate>Mon, 26 Feb 2007 14:26:46 +0000</pubDate>
		<dc:creator>Jim Priest</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[subversion]]></category>

		<guid isPermaLink="false">http://www.thecrumb.com/2007/02/26/automated-subversion-reports-wstatsvn-and-ant/</guid>
		<description><![CDATA[Alistair Davidson recently blogged about StatSvn &#8211; a reporting tool for Subversion. From their site: &#8220;StatSVN retrieves information from a Subversion repository and generates various tables and charts describing the project development.&#8221; Some of the reports it will produce: Timeline &#8230; <a href="http://thecrumb.com/2007/02/26/automated-subversion-reports-wstatsvn-and-ant/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Alistair Davidson <a href="http://instantbadger.blogspot.com/2007/02/statsvn-ruby-vs-java-and-developer-of.html">recently blogged</a> about <a href="http://www.statsvn.org/">StatSvn</a> &#8211; a reporting tool for Subversion.  From their site:</p>
<blockquote><p>&#8220;StatSVN retrieves information from a Subversion repository and generates various tables and charts describing the project development.&#8221;</p></blockquote>
<p>Some of the reports it will produce:</p>
<p><a href='http://thecrumb.com/wp-content/uploads/2007/02/statsvn.gif' title='StatSVN - Subversion Reports'><img src='http://thecrumb.com/wp-content/uploads/2007/02/statsvn.gif' alt='StatSVN - Subversion Reports' align="right" /></a></p>
<ul>
<li>Timeline for the lines of code</li>
<li>Lines of code for each developer</li>
<li>Activity by Clock time</li>
<li>Authors Activity</li>
<li>Author activity per Module</li>
<li>Stats per directory</li>
<li>File count</li>
<li>Average file size</li>
<li>Largest files</li>
<li>Files with most revisions</li>
<li>Directory Sizes</li>
<li>Repository Tags Number of LOC per version</li>
<li>Repository tree with file count and lines of code</li>
<li>LOC and Churn the evolution of LOC and the amount of change per day</li>
<li>Repo Map the dynamic hierarchical view of your repo for the last 30 days</li>
</ul>
<p>While it&#8217;s not difficult to run manually &#8211; the great thing about this is they have include an Ant task &#8211; so you can automate the whole thing!</p>
<p>See my <a href="http://www.thecrumb.com/wiki/Automated_Subversion_Reports_w/StatSVN_and_Ant">wiki for code and report examples</a>!</p>
]]></content:encoded>
			<wfw:commentRss>http://thecrumb.com/2007/02/26/automated-subversion-reports-wstatsvn-and-ant/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>SVNService No Longer Needed with Subversion 1.4</title>
		<link>http://thecrumb.com/2006/10/24/svnservice-no-longer-needed-with-subversion-14/</link>
		<comments>http://thecrumb.com/2006/10/24/svnservice-no-longer-needed-with-subversion-14/#comments</comments>
		<pubDate>Tue, 24 Oct 2006 19:39:54 +0000</pubDate>
		<dc:creator>Jim Priest</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[subversion]]></category>

		<guid isPermaLink="false">http://www.thecrumb.com/2006/10/24/svnservice-no-longer-needed-with-subversion-14/</guid>
		<description><![CDATA[I&#8217;m reinstalling all my software (got a new PC at work &#8211; whoohoo!) and was digging around for SVNService &#8211; a wrapper that allowed you to run SVN as a Windows service. All the links I found on Google were &#8230; <a href="http://thecrumb.com/2006/10/24/svnservice-no-longer-needed-with-subversion-14/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m reinstalling all my software (got a new PC at work &#8211; whoohoo!) and was digging around for SVNService &#8211; a wrapper that allowed you to run SVN as a Windows service.  All the links I found on Google were dead and I thought I was hosed until I found this:</p>
<p><a href="http://svn.collab.net/repos/svn/tags/1.4.0/notes/windows-service.txt">Windows Service Support for svnserve</a></p>
<blockquote><p>svnserve can now be run as a native Windows service.  This means that the<br />
service can be started at system boot, or at any other time, without the<br />
need for any wrapper code to start the service.</p></blockquote>
<p>Please note this applies to 1.4 and I&#8217;m assuming all versions moving forward.</p>
<p>Here is what I ran (WinXP):</p>
<pre class="brush: plain; title: ; notranslate">sc create svn.local binpath= &quot;\&quot;c:\program files\subversion\bin\svnserve.exe\&quot; --service --root D:\svnrepo&quot; displayname= &quot;Subversion Repository&quot; depend= Tcpip</pre>
<p>Once you run this &#8211; you will need to actually start the service &#8211; either via the Windows Service GUI or hit the command line and do a &#8216;net start/stop yourservicename&#8217;</p>
<p><em><span style="color: #ff0000">Important Update: 12/14/2006</span></em></p>
<p><a href="http://ray.camdenfamily.com/index.cfm/2006/12/14/Lamest-command-line-tool-ever">Ray Camden notes</a> that you have to type in the command exactly as shown above &#8211; with a space <em>after </em>each equals sign:</p>
<p>Yes: option= [space] &#8220;value&#8221; option2= [space] &#8220;value&#8221;<br />
No: option=&#8221;value&#8221; option2=&#8221;value&#8221;</p>
]]></content:encoded>
			<wfw:commentRss>http://thecrumb.com/2006/10/24/svnservice-no-longer-needed-with-subversion-14/feed/</wfw:commentRss>
		<slash:comments>18</slash:comments>
		</item>
		<item>
		<title>Subversion Hotcopy Backup Scripts</title>
		<link>http://thecrumb.com/2006/08/17/subversion-hotcopy-backup-scripts/</link>
		<comments>http://thecrumb.com/2006/08/17/subversion-hotcopy-backup-scripts/#comments</comments>
		<pubDate>Thu, 17 Aug 2006 19:17:58 +0000</pubDate>
		<dc:creator>Jim Priest</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[subversion]]></category>

		<guid isPermaLink="false">http://www.thecrumb.com/2006/08/17/subversion-hotcopy-backup-scripts/</guid>
		<description><![CDATA[I wrote these two scripts to backup my repository at work. Tested on WinXP&#8230; Example 1 &#8211; could be run with Scheduled Task: Example 2 &#8211; this one will copy the backup to a dated directory]]></description>
			<content:encoded><![CDATA[<p>I wrote these two scripts to backup my repository at work.  Tested on WinXP&#8230;</p>
<p><strong>Example 1</strong>  &#8211; could be run with Scheduled Task:</p>
<pre class="brush: plain; title: ; notranslate">
@ECHO OFF
REM     will hotcopy your repo to My Documents
REM    this will delete the existing dir and create it again
REM    you could use this script with a scheduled task for backup

REM    created by Jim Priest
REM    last edited 3:38 PM 8/14/2006

SET REPODIR=d:\path-to-your-repository
SET REPOBACKUP=&quot;C:\path-to-your-backup\svnbackup&quot;

ECHO ==================================
ECHO        PROCESSING BACKUP ...
ECHO  This may take some time depending
ECHO     on the size of your repository!
ECHO ==================================

RMDIR %REPOBACKUP% /S/Q
svnadmin hotcopy %REPODIR% %REPOBACKUP%

ECHO         BACKUP COMPLETED!
</pre>
<p><strong>Example 2</strong> &#8211; this one will copy the backup to a dated directory</p>
<pre class="brush: plain; title: ; notranslate">
@ECHO OFF
REM    will hotcopy your repo to My Documents into a dated directory
REM    created by Jim Priest
REM    last edited 3:45 PM 8/14/2006

REM     SET Date
for /f &quot;tokens=1,2&quot; %%u in ('date /t') do set d=%%v
for /f &quot;tokens=1&quot; %%u in ('time /t') do set t=%%u
if &quot;%t:~1,1%&quot;==&quot;:&quot; set t=0%t%

SET timestr=%d:~6,4%-%d:~0,2%-%d:~3,2%
SET REPODIR=d:\path-to-your-repository
SET REPOBACKUP=&quot;C:\path-to-your-backup\svnbackup_%timestr%&quot;

ECHO ==================================
ECHO        PROCESSING BACKUP ...
ECHO This may take some time depending
ECHO  on the size of your repository!
ECHO ==================================

svnadmin hotcopy %REPODIR% %REPOBACKUP%

ECHO         BACKUP COMPLETED!
ECHO ==================================
</pre>
]]></content:encoded>
			<wfw:commentRss>http://thecrumb.com/2006/08/17/subversion-hotcopy-backup-scripts/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

