<?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"
	>

<channel>
	<title>the bus blog</title>
	<atom:link href="http://swdl.org/feed/" rel="self" type="application/rss+xml" />
	<link>http://swdl.org</link>
	<description></description>
	<pubDate>Sat, 13 Sep 2008 15:01:35 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.2</generator>
	<language>en</language>
			<item>
		<title>iPhone 2.1 Update</title>
		<link>http://swdl.org/2008/09/13/iphone-21-update/</link>
		<comments>http://swdl.org/2008/09/13/iphone-21-update/#comments</comments>
		<pubDate>Sat, 13 Sep 2008 15:01:35 +0000</pubDate>
		<dc:creator>rcraddock</dc:creator>
		
		<category><![CDATA[Geek]]></category>

		<category><![CDATA[Internet]]></category>

		<category><![CDATA[iphone]]></category>

		<guid isPermaLink="false">http://swdl.org/?p=61</guid>
		<description><![CDATA[I&#8217;ve been reading around on the net and there doesn&#8217;t seem to be any  information on the 2.1 firmware update based on actual results. By this I mean  people who have installed the 2.1 update and written about it.
So, here goes! The only fix I&#8217;ve noticed is the reduction in lag, in almost [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been reading around on the net and there doesn&#8217;t seem to be any  information on the 2.1 firmware update based on actual results. By this I mean  people who have installed the 2.1 update and written about it.</p>
<p>So, here goes! The only fix I&#8217;ve noticed is the reduction in lag, in almost  everything. It was particularly noticeable when sending text messages or opening  a standard app (ipod / contacts / phone / settings).</p>
<p>This is a great fix, and I&#8217;m pleased Apple did fix it before they released  new features - it now works as a phone as well as any other phone out there.</p>
<p>I&#8217;ve never had any problems with calls dropping, and I charge it every night  so I doubt I&#8217;ll see any improvement in these areas. I am going to do the <a href="http://www.apple.com/batteries/iphone.html">recommended monthly total  de-charge</a> this weekend though.</p>
<p>In the last few weeks I&#8217;ve found some great apps, which I&#8217;m going to list  here. But in the mean time I&#8217;ve got an assignment to be working on.</p>
<p>Good work Apple on the update, lets see some cool new features in 2.2!</p>
]]></content:encoded>
			<wfw:commentRss>http://swdl.org/2008/09/13/iphone-21-update/feed/</wfw:commentRss>
		</item>
		<item>
		<title>HP ML110 G5 Power Consumption</title>
		<link>http://swdl.org/2008/09/04/hp-ml110-g5-power-consumption/</link>
		<comments>http://swdl.org/2008/09/04/hp-ml110-g5-power-consumption/#comments</comments>
		<pubDate>Thu, 04 Sep 2008 21:32:50 +0000</pubDate>
		<dc:creator>rcraddock</dc:creator>
		
		<category><![CDATA[Eco Wars]]></category>

		<category><![CDATA[Geek]]></category>

		<category><![CDATA[Internet]]></category>

		<guid isPermaLink="false">http://swdl.org/2008/09/04/hp-ml110-g5-power-consumption/</guid>
		<description><![CDATA[As mentioned in a previous post I&#8217;ve been looking into a solution for maintaining an iTunes server, to stream music across my apartment to various AirPort Express units. Instead of going out and buying something, I thought I&#8217;d see if a HP server I&#8217;ve got would be cost effective to leave on 24/7. I&#8217;ve only [...]]]></description>
			<content:encoded><![CDATA[<p>As mentioned in a <a href="http://swdl.org/2008/08/31/iphone-amazingness/">previous post</a> I&#8217;ve been looking into a solution for maintaining an iTunes server, to stream music across my apartment to various AirPort Express units. Instead of going out and buying something, I thought I&#8217;d see if a HP server I&#8217;ve got would be cost effective to leave on 24/7. I&#8217;ve only used it for Xen testing before and never in a place where I pay the bills!</p>
<p>I hacked together a rig to measure the current being drawn and plugged it in, the results were totally shocking. </p>
<p>The Server has a dual core Xeon 2.4 Ghz CPU, 2GB of RAM and 4 hard disks so I wasn&#8217;t expecting the power usage to be low, and I was right. It averaged out at 440mA during almost everything from peak load to idle.</p>
<p><img style="border-right: 0px; border-top: 0px; border-left: 0px; border-bottom: 0px" height="244" alt="IMG_0040" src="http://swdl.org/wp-content/uploads/2008/09/windowslivewriterhpml110g5powerconsumption-13b04img-0040-3.jpg" width="184" border="0" /></p>
<p>This calculates to roughly <strong>100 Watts</strong> (230volts * 0.440 amps = 101.2 Watts). Where I live this would cost &#163;2.27 a week running 24/7. This is about what I&#8217;d expect - about a pint a week - <em>affordable</em> but certainly not <em>green</em>. What really surprised me was the current when the unit was switched off - <strong>140mA</strong>!</p>
<p><a href="http://swdl.org/wp-content/uploads/2008/09/windowslivewriterhpml110g5powerconsumption-13b04img-0042-2.jpg"><img style="border-right: 0px; border-top: 0px; border-left: 0px; border-bottom: 0px" height="244" alt="IMG_0042" src="http://swdl.org/wp-content/uploads/2008/09/windowslivewriterhpml110g5powerconsumption-13b04img-0042-thumb.jpg" width="184" border="0" /></a> </p>
<p>That equates to <strong>32.2 Watts or &#163;0.72 a week - switched off</strong>. When I say switched off I don&#8217;t mean in standby or hibernating, I really mean off. This, I expect, will be the same for most ATX based PC&#8217;s (that means nearly all). I think its absolutely disgusting that this device has such a high power requirement when off.</p>
<p>Imagine an office of 50 PC&#8217;s - 1.6kW and &#163;25 a week (based on average office opening hours 9&#160; - 5). A figure of <strong>over &#163;1000 a year</strong> for powering devices which are thought to be <em>switched off</em> soon emerges. </p>
<p>Because of these findings I&#8217;ve gone all anal about this and I&#8217;m making an improved device for measuring a mix of devices. My hacked together one wasn&#8217;t really what you&#8217;d call safe to have around the home &amp; was hard wired to a IEC connector. </p>
<p>Back to the iTunes server, I&#8217;m going to try out <a href="http://fireflymediaserver.org">FireFly Media Server</a> on the ML110 - under Xen. More on low power PC&#8217;s another time!</p>
]]></content:encoded>
			<wfw:commentRss>http://swdl.org/2008/09/04/hp-ml110-g5-power-consumption/feed/</wfw:commentRss>
		</item>
		<item>
		<title>iPhone Amazingness</title>
		<link>http://swdl.org/2008/08/31/iphone-amazingness/</link>
		<comments>http://swdl.org/2008/08/31/iphone-amazingness/#comments</comments>
		<pubDate>Sun, 31 Aug 2008 18:20:09 +0000</pubDate>
		<dc:creator>rcraddock</dc:creator>
		
		<category><![CDATA[Geek]]></category>

		<category><![CDATA[Internet]]></category>

		<category><![CDATA[Me]]></category>

		<guid isPermaLink="false">http://swdl.org/?p=56</guid>
		<description><![CDATA[A week ago I took the next plunge into geekdom and got an iPhone. My overall impression is that its great, even though there are still a few flaws with the software (it hangs and its slow). The best use I&#8217;ve got for it - other than the standard email / web / blah - [...]]]></description>
			<content:encoded><![CDATA[<p>A week ago I took the next plunge into geekdom and got an iPhone. My overall impression is that its great, even though there are still a few flaws with the software (it hangs and its slow). The best use I&#8217;ve got for it - other than the standard email / web / blah - is the Remote application (<a href="http://www.google.co.uk/url?sa=t&#038;source=web&#038;ct=res&#038;cd=3&#038;url=http%3A%2F%2Fphobos.apple.com%2FWebObjects%2FMZStore.woa%2Fwa%2FviewSoftware%3Fid%3D284417350&#038;ei=TN26SI2VDZHWQK6W5Z0I&#038;usg=AFQjCNF37gLeb4VbtRFwDvbDpgMBYo_cfQ&#038;sig2=bDgf1AKlWDSwol7dX9rKeA">Link</a> - will open iTunes). Remote allows the iPhone to control iTunes, which in itself is pretty spectacular, however adding an <a href="http://www.apple.com/airportexpress/">AirPort Express</a> to the mix makes it the best thing ever. Seriously.</p>
<p>The AirPort Express allows you to play music from iTunes wirelessly. This results in the ability to play your entire music collection on the stereo you connect the AirPort Express to - while controlling it with your iPhone.</p>
<p>There is a decent setup guide at <a href="http://www.lifehacker.com.au/tips/2008/08/13/turn_your_iphone_or_ipod_touch_into_a_multiroom_wireless_music_remote-2.html">LifeHacker</a> which tells you everything you need to know to set this up. One thing that LifeHacker didn’t get entirely correct is the part regarding the access point - you only need WDS support if you want the AirPort Express to extend the range of your network. I&#8217;m using the router Sky sent me (some Sky branded Netgear thing) with no configuration changes and its working fine. </p>
<p>The next part of the challenge is scrubbing my MP3 collection and finding a decent low power device to stream it.</p>
]]></content:encoded>
			<wfw:commentRss>http://swdl.org/2008/08/31/iphone-amazingness/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Awesome NASA Photos</title>
		<link>http://swdl.org/2008/06/26/awesome-nasa-photos/</link>
		<comments>http://swdl.org/2008/06/26/awesome-nasa-photos/#comments</comments>
		<pubDate>Thu, 26 Jun 2008 21:25:44 +0000</pubDate>
		<dc:creator>rcraddock</dc:creator>
		
		<category><![CDATA[Photos]]></category>

		<guid isPermaLink="false">http://swdl.org/2008/06/26/awesome-nasa-photos/</guid>
		<description><![CDATA[I know this doesn&#8217;t fit with what I said yesterday but I couldn&#8217;t resist!    
 
That blows my mind!
Check out more here.
]]></description>
			<content:encoded><![CDATA[<p>I know this doesn&#8217;t fit with what I said yesterday but I couldn&#8217;t resist!    </p>
<p><a href="http://swdl.org/wp-content/uploads/2008/06/nasapix04.jpg"><img style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="283" alt="NASApix04" src="http://swdl.org/wp-content/uploads/2008/06/nasapix04-thumb.jpg" width="450" border="0" /></a> </p>
<p>That blows my mind!</p>
<p>Check out more <a href="http://www.texasjim.com/NASApix/NASA%20pix.htm">here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://swdl.org/2008/06/26/awesome-nasa-photos/feed/</wfw:commentRss>
		</item>
		<item>
		<title>On the can</title>
		<link>http://swdl.org/2008/06/23/on-the-can/</link>
		<comments>http://swdl.org/2008/06/23/on-the-can/#comments</comments>
		<pubDate>Mon, 23 Jun 2008 19:31:27 +0000</pubDate>
		<dc:creator>rcraddock</dc:creator>
		
		<category><![CDATA[Me]]></category>

		<category><![CDATA[This Site]]></category>

		<guid isPermaLink="false">http://swdl.org/2008/06/23/on-the-can/</guid>
		<description><![CDATA[That&#8217;s going to be the new title of this blog, for a number of reasons:

I think I&#8217;m going to have to sell my bus; 
I talk crap most of the time; 
I work in the metal packaging (can making) industry. 

I&#8217;ve actually registered the domain, but wont be moving the blog there just yet, I&#8217;ve [...]]]></description>
			<content:encoded><![CDATA[<p>That&#8217;s going to be the new title of this blog, for a number of reasons:</p>
<ul>
<li>I think I&#8217;m going to have to sell my bus; </li>
<li>I talk crap most of the time; </li>
<li>I work in the metal packaging (can making) industry. </li>
</ul>
<p>I&#8217;ve actually registered the domain, but wont be moving the blog there just yet, I&#8217;ve not actually decided <em>if</em> I&#8217;ll move it at all. If I do I&#8217;ll be sure to <a href="http://swdl.org/2007/12/13/blog-moving-stupidity/">do it correctly</a> this time!</p>
<p>So, what am I going to write on this blog? Well, I think the best way for me to stick to it and convey something marginally meaningfully is to have a strict-ish topic list that my posts must fall into:</p>
<ul>
<li>Travel, writing about places I&#8217;ve been to. I&#8217;m <a href="http://swdl.org/2008/05/31/as-promised-where-ive-been/">travelling quite a lot</a> so it would be nice to record something about it and the places;</li>
<li>Technology - PHP/VB.NET/Linux - what I&#8217;m interested in, this is a loose one but I&#8217;ve got some projects in the pipeline&#8230;</li>
</ul>
<p>I&#8217;m also going to be working on a new design for the site - I don&#8217;t really like the default WordPress layout so that&#8217;s something that will hopefully appear soon. </p>
]]></content:encoded>
			<wfw:commentRss>http://swdl.org/2008/06/23/on-the-can/feed/</wfw:commentRss>
		</item>
		<item>
		<title>As promised - where I&#8217;ve been</title>
		<link>http://swdl.org/2008/05/31/as-promised-where-ive-been/</link>
		<comments>http://swdl.org/2008/05/31/as-promised-where-ive-been/#comments</comments>
		<pubDate>Sat, 31 May 2008 16:06:49 +0000</pubDate>
		<dc:creator>rcraddock</dc:creator>
		
		<category><![CDATA[Me]]></category>

		<category><![CDATA[Travel]]></category>

		<guid isPermaLink="false">http://swdl.org/2008/05/31/as-promised-where-ive-been/</guid>
		<description><![CDATA[Here we go - it doesn&#8217;t look too impressive now I look at it. But remember that&#8217;s only 5 months in the job. Maybe next time I&#8217;ll have to zoom out a bit! 
 
I&#8217;ve been at home for the last two weeks so I&#8217;ve had a chance to sort out a few things that [...]]]></description>
			<content:encoded><![CDATA[<p>Here we go - it doesn&#8217;t look too impressive now I look at it. But remember that&#8217;s only 5 months in the job. Maybe next time I&#8217;ll have to zoom out a bit! </p>
<p><a href="http://swdl.org/wp-content/uploads/2008/05/places-ive-been.jpg"><img style="border-right: 0px; border-top: 0px; border-left: 0px; border-bottom: 0px" height="267" alt="places-i&#39;ve-been" src="http://swdl.org/wp-content/uploads/2008/05/places-ive-been-thumb.jpg" width="396" border="0" /></a> </p>
<p>I&#8217;ve been at home for the last two weeks so I&#8217;ve had a chance to sort out a few things that have been building up. I&#8217;ve also figured out Xen, just in time as it turns out - but that&#8217;s another post!</p>
]]></content:encoded>
			<wfw:commentRss>http://swdl.org/2008/05/31/as-promised-where-ive-been/feed/</wfw:commentRss>
		</item>
		<item>
		<title>5 months on&#8230;</title>
		<link>http://swdl.org/2008/05/08/5-months-on/</link>
		<comments>http://swdl.org/2008/05/08/5-months-on/#comments</comments>
		<pubDate>Thu, 08 May 2008 17:01:49 +0000</pubDate>
		<dc:creator>rcraddock</dc:creator>
		
		<category><![CDATA[Me]]></category>

		<guid isPermaLink="false">http://swdl.org/2008/05/08/5-months-on/</guid>
		<description><![CDATA[I&#8217;ve been a bit remiss when this blog is concerned - I always have been. Even though I keep telling myself I should post more often I never seem to &#8216;have time&#8217;. And looking back at the last 5 months that&#8217;s partially excusable - I&#8217;ve been on 12 trips in total, 6 of them overseas. [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been a bit remiss when this blog is concerned - I always have been. Even though I keep telling myself I should post more often I never seem to &#8216;have time&#8217;. And looking back at the last 5 months that&#8217;s partially excusable - I&#8217;ve been on 12 trips in total, 6 of them overseas. That doesn&#8217;t sound like much but when 8 of them have been in the last 10 weeks it makes more sense. </p>
<p>So what is it like, all that travelling? Well, its interesting for a start. Its great to see new Countries and &#8216;ways of life&#8217;. Its good meeting new people and trying to find common ground. Its also horrible being away from home - even if it is only for a few days at a time. </p>
<p>There are, however, perks that come with the job. Apparently I&#8217;ve been paid (partially expenses) a decent sum of money for my 12 trips, where that extra money has gone I have no idea! I&#8217;ve managed to get a &#8216;flights only&#8217; holiday for my girlfriend in Italy - and a pretty good few days away for myself! So all in, after 5 months I&#8217;m feeling a lot better about the job than I was in January. Only time will tell if I can keep up for the next 19ish months!</p>
<p>I&#8217;m playing with Google Earth - adding the places I&#8217;ve visited to a map, so I&#8217;ll take a screen shot of that and post it. It would be nice to have some sort of dynamic way of accessing that kind of information - &#8216;Places I&#8217;ve been&#8217; - it probably does exist somewhere, I just cant find it. </p>
<p>Unfortunately while I was away this week my home computer (with Google Earth on) seems to have died :(. So that&#8217;s the first order of business now I&#8217;m back. </p>
<p>Anyway - I&#8217;m going to try to update this more often, so here goes!</p>
]]></content:encoded>
			<wfw:commentRss>http://swdl.org/2008/05/08/5-months-on/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Heathrow Airport Info Terminals</title>
		<link>http://swdl.org/2008/02/12/heathrow-airport-info-terminals/</link>
		<comments>http://swdl.org/2008/02/12/heathrow-airport-info-terminals/#comments</comments>
		<pubDate>Tue, 12 Feb 2008 22:11:17 +0000</pubDate>
		<dc:creator>rcraddock</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://swdl.org/2008/02/12/heathrow-airport-info-terminals/</guid>
		<description><![CDATA[&#160;
This was the state of a whole bank of information/news terminals in Terminal two at Heathrow last week. I&#8217;m not sure if they belong to the BBC but that red bit looks familiar. Made me chuckle. 

]]></description>
			<content:encoded><![CDATA[<p>&#160;</p>
<p>This was the state of a whole bank of information/news terminals in Terminal two at Heathrow last week. I&#8217;m not sure if they belong to the BBC but that red bit looks familiar. Made me chuckle. </p>
<p><a href="http://swdl.org/wp-content/uploads/2008/02/airport-info-terminal.jpg"><img style="border-right: 0px; border-top: 0px; border-left: 0px; border-bottom: 0px" height="344" alt="airport_info_terminal" src="http://swdl.org/wp-content/uploads/2008/02/airport-info-terminal-thumb.jpg" width="420" border="0" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://swdl.org/2008/02/12/heathrow-airport-info-terminals/feed/</wfw:commentRss>
		</item>
		<item>
		<title>New Years Update</title>
		<link>http://swdl.org/2008/02/01/new-years-update/</link>
		<comments>http://swdl.org/2008/02/01/new-years-update/#comments</comments>
		<pubDate>Fri, 01 Feb 2008 15:44:02 +0000</pubDate>
		<dc:creator>rcraddock</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://swdl.org/2008/02/01/new-years-update/</guid>
		<description><![CDATA[Its been a busy month! I&#8217;ve started a new job (for the same company) under the title of &#8216;Product Engineer&#8217;. Basically it involves installing, servicing and repairing products. So far I&#8217;ve been on 4 jobs; Rugby, Leicester, Carlisle and Agoncillo (about 20km from Lagrono - in the heart of the Rioja region of span). I&#8217;m [...]]]></description>
			<content:encoded><![CDATA[<p>Its been a busy month! I&#8217;ve started a new job (for the same company) under the title of &#8216;Product Engineer&#8217;. Basically it involves installing, servicing and repairing products. So far I&#8217;ve been on 4 jobs; Rugby, Leicester, Carlisle and Agoncillo (about 20km from Lagrono - in the heart of the Rioja region of span). I&#8217;m writing this from Bilbao airport while I wait for my flight back home. The landscape between Bilbao and Lagrono is absolutely fantastic, I&#8217;ve taken some photos from the car so I&#8217;ll put any decent ones up in a few days. </p>
<p>I&#8217;m not overly excited about the prospects of spending a lot of time away from home, but I should get so see some new places so maybe I&#8217;ll get used to it. At the moment I definitely don&#8217;t like it.&#160; Seeing new cities and meeting new people is great - but it doesn&#8217;t compensate for being away from the people and places that really matter. </p>
<p>I&#8217;m not sure what&#8217;s going to happen in the coming months but I&#8217;m sure there will be plenty of it! I&#8217;ll try to take some interesting photos and record the events here, for my benefit as much as anyone else&#8217;s. </p>
]]></content:encoded>
			<wfw:commentRss>http://swdl.org/2008/02/01/new-years-update/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Dynamic Subversion Backup Tool</title>
		<link>http://swdl.org/2007/12/15/dynamic-subversion-backup-tool/</link>
		<comments>http://swdl.org/2007/12/15/dynamic-subversion-backup-tool/#comments</comments>
		<pubDate>Sat, 15 Dec 2007 16:17:56 +0000</pubDate>
		<dc:creator>rcraddock</dc:creator>
		
		<category><![CDATA[Geek]]></category>

		<category><![CDATA[Internet]]></category>

		<guid isPermaLink="false">http://swdl.org/2007/12/15/dynamic-subversion-backup-tool/</guid>
		<description><![CDATA[As I said in this post I&#8217;ve been exploring and using Subverison a lot recently, and with plans to start a hosted subversion arm to the web hosting business I need to keep working on the web based management tool. As everyone knows backups are crucial, so the first step towards my web based subversion [...]]]></description>
			<content:encoded><![CDATA[<p>As I said in <a href="http://swdl.org/2007/12/08/why-you-need-subversion-control/" title="Why you need (sub)version control">this post</a> I&#8217;ve been exploring and using <a href="http://subversion.tigris.org/" title="Subversion Web Site" target="_blank">Subverison</a> a lot recently, and with plans to start a <a href="http://svn.green-host.co.uk" title="Hosted Subversion">hosted subversion</a> arm to the <a href="http://green-host.co.uk" title="Carbon Neutral Web Hosting">web hosting business</a> I need to keep working on the web based management tool. As everyone knows backups are crucial, so the first step towards my web based subversion management tool is the backup side of things. This is the first version of the script, I&#8217;ve been running it nightly for about 2 weeks now and it&#8217;s behaved very well so far.</p>
<p>I started with the script provided by <a href="http://blog.markwshead.com/" target="_blank" title="Mark Sheads Blog">Mark Shead</a> (<a href="http://blog.markwshead.com/archives/2005/09/21/backing-up-subversion-automatically.html" target="_blank" title="Backing up Subversion Automatically">Backing up Subverison Automatically</a>) however with plans for expansion I didn&#8217;t want to end up with a backup script for each repository.  In addition to this I wanted the script to integrate with my envisaged web based SVN management tool, that meant database integration. In setting up the above script I found <a href="http://www.linuxjournal.com/article/8600" target="_blank" title="Pass on Passwords with SCP">this article</a> very helpful.</p>
<p>I ran with several versions of Marks script all running via cron and sending the output as email for a few days, then decided that now was a good time to integrate the script to a database and backup all of the repositories in the database. For a guide to using the script via cron see the end of the article.</p>
<p>I would include a SQL dump from PHPMyAdmin - but wordpress won&#8217;t let me include that in the post -but you need a single table called repo with three fields (repo_id, repo_location and repo_prefix). Any questions or comments leave a comment or email me.</p>
<p>Watch out for the mis-spelled SE!!!L!!!ECT - wordpress also won&#8217;t let me save the post with that line (or this line!) for some reason. I&#8217;m looking into why.</p>
<pre lang="perl">
#perl modules to use
use DBI;
use DBD::mysql

#DBI config values
$host = "localhost";
$database = "database_name";
$user = "user_name";
$password = "password";

#Data Source Name
$dsn = "dbi:mysql:$database:localhost:3306";

#Perl DBI Connect
$connect = DBI-&gt;connect($dsn, $user, $password) or die "Unable to connect: $DBI::errstr\n";

#write the query
#Perl DBI Connect
$connect = DBI-&gt;connect($dsn, $user, $password) or die "Unable to connect: $DBI::errstr\n";

#write the query
$query = "SE!!!Insert L!!!ECT repo_location, repo_prefix FROM repo";
$query_handle = $connect-&gt;prepare($query);

#run the query
$query_handle-&gt;execute();

$query_handle-&gt;bind_columns(undef, \$repo_location, \$repo_prefix);

while($query_handle-&gt;fetch()) {

#my $svn_repo = $repo_location;
my $bkup_dir = "/subversion/backup";
#my $bkup_file = $repo_prefix;
my $tmp_dir = "/subversion/tmp";
my $bkup_svr = "backup.green-host.co.uk";
my $bkup_svr_login = "root";
my $remote_path = "/home/green/svn_backup";

print "\n-------------\n";
print "Backing up Repository $repo_location";
print "\n-------------\n";

$bkup_file = $repo_prefix . `date -Is`;
chomp $bkup_file;
my $youngest = `svnlook youngest $repo_location`;
chomp $youngest;

my $dump_command = "svnadmin -q dump $repo_location &gt; $bkup_dir/$bkup_file ";
print "\nDumping Subversion repo $repo_location to $bkup_file...\n";
print `$dump_command`;
print "Backing up through revision $youngest... \n";
print "\nCompressing dump file...\n";
print `gzip -9 $bkup_dir/$bkup_file\n`;
chomp $bkup_file;
my $zipped_file = $bkup_dir . "/" . $bkup_file . ".gz";
print "\nCreated $zipped_file\n";
print `scp $zipped_file $bkup_svr_login\@$bkup_svr:$remote_path`;
print "\n$bkup_file.gz transfered to $bkup_svr\n";

#Test Backup
print "\n-------------\n";
print "Testing Backup";
print "\n-------------\n";
print "Downloading $bkup_file.gz from $bkup_svr\n";
print `scp $bkup_svr_login\@$bkup_svr:$remote_path/$bkup_file.gz $tmp_dir/`;
print "Unzipping $bkup_file.gz\n";
print `gunzip $tmp_dir/$bkup_file.gz`;
print "Creating test repository\n";
print `svnadmin create $tmp_dir/test_repo`;
print "Loading repository\n";
print `svnadmin -q load $tmp_dir/test_repo &lt; $tmp_dir/$bkup_file`;
print "Checking out repository\n";
print `svn -q co file://$tmp_dir/test_repo $tmp_dir/test_checkout`;
print "Cleaning up\n";
print `rm -f $tmp_dir/$bkup_file`;
print `rm -rf $tmp_dir/test_checkout`;
print `rm -rf $tmp_dir/test_repo`;
}</pre>
]]></content:encoded>
			<wfw:commentRss>http://swdl.org/2007/12/15/dynamic-subversion-backup-tool/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
