<?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>Danny-T.co.uk &#187; Tutorials</title>
	<atom:link href="http://danny-t.co.uk/index.php/category/tutorials/feed/" rel="self" type="application/rss+xml" />
	<link>http://danny-t.co.uk</link>
	<description>Web apps fanatic, ramblings on dev for web, mobile and other geeky stuff</description>
	<lastBuildDate>Sat, 04 Feb 2012 09:59:04 +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>Simple batch file backup</title>
		<link>http://danny-t.co.uk/index.php/2007/08/18/simple-batch-file-backup/</link>
		<comments>http://danny-t.co.uk/index.php/2007/08/18/simple-batch-file-backup/#comments</comments>
		<pubDate>Sat, 18 Aug 2007 12:12:20 +0000</pubDate>
		<dc:creator>DannyT</dc:creator>
				<category><![CDATA[Best Practices]]></category>
		<category><![CDATA[Hosting]]></category>
		<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://danny-t.co.uk/index.php/2007/08/18/simple-batch-file-backup/</guid>
		<description><![CDATA[I&#8217;ve just setup a very simple backup system that works over FTP. Windows only I&#8217;m afraid but i&#8217;m sure the equivilent isn&#8217;t too hard on other platforms. Tools Firstly I used two very simple free/open source command line tools: SSLFTP &#8211; simple FTP tool that works in passive mode or over secure connections. and 7-zip [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve just setup a very simple backup system that works over FTP. Windows only I&#8217;m afraid but i&#8217;m sure the equivilent isn&#8217;t too hard on other platforms.</p>
<p><strong>Tools</strong><br />
Firstly I used two very simple free/open source command line tools:<br />
<a href="http://www.netwinsite.com/surgeftp/sslftp.htm">SSLFTP</a> &#8211; simple FTP tool that works in passive mode or over secure connections.<br />
and<br />
<a href="http://www.7-zip.org/">7-zip</a> &#8211; an open source zip file archiver.</p>
<p>Download and install the above on the machine you wish to backup from.</p>
<p><strong>FTP Script</strong><br />
I then wrote the following script file to handle the FTP (saved as ftpscript.txt):<br />
<code><br />
open <em>ftpusername</em>:<em>ftppassword</em>@ftp.host.address<br />
del backup7.zip<br />
rename backup6.zip backup7.zip<br />
rename backup5.zip backup6.zip<br />
rename backup4.zip backup5.zip<br />
rename backup3.zip backup4.zip<br />
rename backup2.zip backup3.zip<br />
rename backup.zip backup2.zip<br />
put c:\backupscripts\backup.zip<br />
bye<br />
</code><br />
All this is doing is taking a copy of seven days worth of backups and deleting the oldest then uploading the newest backup.</p>
<p><strong>Backup Script</strong><br />
To decrease the time taken to FTP everything I use the following batch file to keep three days worth of backups locally, zip the files I want to backup and call the above FTP script (saved as daily.bat):<br />
<code><br />
delete backup3.zip<br />
rename backup2.zip backup3.zip<br />
rename backup.zip backup2.zip<br />
7z a -tzip d:\backupscripts\backup.zip d:\inetpub\wwwroot\<br />
7z a -tzip d:\backupscripts\backup.zip d:\DB_Backup\<br />
7z a -tzip d:\backupscripts\backup.zip d:\other_folders_to_keep\<br />
sslftp -run ftpscript.txt<br />
</code></p>
<p>The 7z lines mean the following:<br />
<em>7z</em> &#8211; execute the 7-zip exe<br />
<em>a</em> &#8211; add files<br />
<em>-tzip</em> &#8211; archive file type of zip<br />
<em>d:\backupscripts\backup.zip</em> &#8211; archive to add to (will create if does not exist)<br />
<em>d:\backupscripts\backup.zip d:\other_folders_to_keep\</em> folder/files to add to archive</p>
<p>And thats it! All you do then is setup a scheduled task (Start, Settings, Control Panel, Scheduled Tasks) to run every night and you&#8217;re done!</p>
<p><strong>What no FTP?</strong><br />
If you don&#8217;t have any FTP space you can backup across a network/internet connection and setup a PC as an FTP server using the excellent <a href="http://filezilla.sourceforge.net/">FileZilla</a>.</p>
<p>UPDATE: see comments for some notes from William who suggests some alternative syntax if you have issues with the above and a more logical sequence to protect against things going wrong mid-process.</p>
]]></content:encoded>
			<wfw:commentRss>http://danny-t.co.uk/index.php/2007/08/18/simple-batch-file-backup/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Unit testing and Test Driven Development (TDD) for Flex and ActionScript 3.0</title>
		<link>http://danny-t.co.uk/index.php/2007/02/21/unit-testing-and-test-driven-development-tdd-for-flex-and-actionscript-30/</link>
		<comments>http://danny-t.co.uk/index.php/2007/02/21/unit-testing-and-test-driven-development-tdd-for-flex-and-actionscript-30/#comments</comments>
		<pubDate>Wed, 21 Feb 2007 19:25:24 +0000</pubDate>
		<dc:creator>DannyT</dc:creator>
				<category><![CDATA[Best Practices]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://danny-t.co.uk/index.php/2007/02/21/unit-testing-and-test-driven-development-tdd-for-flex-and-actionscript-30/</guid>
		<description><![CDATA[My good friend and fellow Bristolian Neil Webb has just had an article published on the Adobe Flex Developer Centre. If you&#8217;ve heard of unit testing and test driven development and want to know what it&#8217;s all about head on over and have a read. Unit testing and Test Driven Development (TDD) for Flex and [...]]]></description>
			<content:encoded><![CDATA[<p>My good friend and fellow Bristolian <a href="http://nwebb.co.uk">Neil Webb</a> has just had an article published on the <a href="http://www.adobe.com/devnet/flex/articles/unit_testing.html">Adobe Flex Developer Centre</a>. If you&#8217;ve heard of unit testing and test driven development and want to know what it&#8217;s all about head on over and have a read. </p>
<p><a href="http://www.adobe.com/devnet/flex/articles/unit_testing.html">Unit testing and Test Driven Development (TDD) for Flex and ActionScript 3.0</a></p>
<p>Good stuff Neil!</p>
]]></content:encoded>
			<wfw:commentRss>http://danny-t.co.uk/index.php/2007/02/21/unit-testing-and-test-driven-development-tdd-for-flex-and-actionscript-30/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>New Tutorial: Free Flex2 &amp; AS3 with FlashDevelop</title>
		<link>http://danny-t.co.uk/index.php/2006/12/30/new-tutorial-free-flex2-as3-with-flashdevelop/</link>
		<comments>http://danny-t.co.uk/index.php/2006/12/30/new-tutorial-free-flex2-as3-with-flashdevelop/#comments</comments>
		<pubDate>Sat, 30 Dec 2006 15:54:05 +0000</pubDate>
		<dc:creator>DannyT</dc:creator>
				<category><![CDATA[Development Tools]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://danny-t.co.uk/index.php/2006/12/30/new-tutorial-free-flex2-as3-with-flashdevelop/</guid>
		<description><![CDATA[I have just written up a new tutorial on getting started Flex2/AS3 development with FlashDevelop. The tutorial should take about 30 minutes to complete and should get you up and running ready to get into Flex2 with AS3. Read the Flex2/AS3 with FlashDevelop tutorial]]></description>
			<content:encoded><![CDATA[<p>I have just written up a new tutorial on getting started Flex2/AS3 development with FlashDevelop. The tutorial should take about 30 minutes to complete and should get you up and running ready to get into Flex2 with AS3. </p>
<p><a href="http://danny-t.co.uk/index.php/tutorials/free-flex2-development-environment/">Read the Flex2/AS3 with FlashDevelop tutorial</a></p>
]]></content:encoded>
			<wfw:commentRss>http://danny-t.co.uk/index.php/2006/12/30/new-tutorial-free-flex2-as3-with-flashdevelop/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>New Tutorial &#8211; Introduction to Flash Remoting with Fluorine</title>
		<link>http://danny-t.co.uk/index.php/2006/07/07/new-tutorial-introduction-to-flash-remoting-with-fluorine/</link>
		<comments>http://danny-t.co.uk/index.php/2006/07/07/new-tutorial-introduction-to-flash-remoting-with-fluorine/#comments</comments>
		<pubDate>Fri, 07 Jul 2006 00:04:19 +0000</pubDate>
		<dc:creator>DannyT</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://danny-t.co.uk/index.php/2006/07/07/new-tutorial-introduction-to-flash-remoting-with-fluorine/</guid>
		<description><![CDATA[I&#8217;ve just written up my first tutorial on using Fluorine, the open source Flash remoting solution for the .net platform. Have a read and leave any feedback in the comments here. Introduction to Flash Remoting with Fluorine]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve just written up my first tutorial on using Fluorine, the open source Flash remoting solution for the .net platform. Have a read and leave any feedback in the comments here.</p>
<p><a href="http://danny-t.co.uk/index.php/tutorials/introduction-to-flash-remoting-with-fluorine/" title="Introduction to Fluorine">Introduction to Flash Remoting with Fluorine</a></p>
]]></content:encoded>
			<wfw:commentRss>http://danny-t.co.uk/index.php/2006/07/07/new-tutorial-introduction-to-flash-remoting-with-fluorine/feed/</wfw:commentRss>
		<slash:comments>30</slash:comments>
		</item>
	</channel>
</rss>

