<?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>Index out of Bounds &#187; tyler burton</title>
	<atom:link href="http://www.jonathanfritz.ca/tag/tyler-burton/feed" rel="self" type="application/rss+xml" />
	<link>http://www.jonathanfritz.ca</link>
	<description>the personal portfolio of Jonathan Fritz</description>
	<lastBuildDate>Mon, 12 Dec 2011 03:22:35 +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>Areca: The Open Sourced Backup Solution</title>
		<link>http://www.jonathanfritz.ca/software/areca-the-open-sourced-backup-solution</link>
		<comments>http://www.jonathanfritz.ca/software/areca-the-open-sourced-backup-solution#comments</comments>
		<pubDate>Tue, 20 Jan 2009 05:40:26 +0000</pubDate>
		<dc:creator>Jon</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[areca]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[backupdirectorycleanup]]></category>
		<category><![CDATA[batch file]]></category>
		<category><![CDATA[download]]></category>
		<category><![CDATA[hash verifier]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[local drive]]></category>
		<category><![CDATA[network drive]]></category>
		<category><![CDATA[TrueCrypt]]></category>
		<category><![CDATA[tyler burton]]></category>
		<category><![CDATA[windows vista]]></category>
		<category><![CDATA[windows xp]]></category>

		<guid isPermaLink="false">http://jonathanfritz.ca/?p=70</guid>
		<description><![CDATA[Readers will recall the issues that I&#8217;d had some time ago in trying to force Windows Backup to play ball with an external hard drive encrypted by TrueCrypt. For some reason or another, Windows Backup refused to recognize the mounted drive as a valid backup location. One reader recommended that I try Acronis True Image [...]]]></description>
			<content:encoded><![CDATA[<p>Readers will recall <a href="http://www.jonathanfritz.ca/software/windows-backup-doesnt-play-nicely-with-truecrypt" target="_blank">the issues that I&#8217;d had some time ago</a> in trying to force Windows Backup to play ball with an external hard drive encrypted by TrueCrypt. For some reason or another, Windows Backup refused to recognize the mounted drive as a valid backup location. One reader recommended that I try Acronis True Image out. Seeing as I like free stuff, I&#8217;ve found a free solution that solves the problem entirely.</p>
<p>Now it should be said from the outset that this process is a little bit ugly and a tad long winded, but that it does a really swell job and is full of opportunities to improve upon and to customize it for your particular situation.</p>
<p>Read on for the full tutorial &#8211; now with pretty pictures!<br />
<span id="more-70"></span></p>
<h2>What You&#8217;ll Need:</h2>
<ul>
<li>A Windows computer, prefferably running Vista (Windows is necessary, but this can be done on XP)</li>
<li>A copy of <a href="http://sourceforge.net/project/showfiles.php?group_id=171505" target="_blank">Areca Backup</a> (I grabbed the v6.1 stable release)</li>
<li>The <a href="http://java.com/en/download/manual.jsp" target="_blank">Java Runtime</a> (Optionally, you might already have this; run the Areca installer and it will automatically direct you to the correct download if necessary)</li>
<li>Some free space to put your backup, optionally encrypted and mounted with <a href="http://www.truecrypt.org/downloads.php" target="_blank">TrueCrypt</a> for extra-lucky-fun-security-time.</li>
<li>About a half hour of free time</li>
</ul>
<h2>Setting Up Areca:</h2>
<p>Lets begin by opening up Areca. This utility will allow you to easily create scripted backup events to any location on your machine. We are going to use it to create a couple of these batch scripts and then use Windows Task Scheduler to automatically execute them on a daily basis.</p>
<p>We need to start by creating a workspace. Click the <strong>Workspace</strong> menu and select <strong>Open Workspace</strong>. Choose some folder that you aren&#8217;t going to delete where Areca can store it&#8217;s configuration files. I chose <strong>C:\Users\Jonathan\Documents\Areca\</strong> for mine.<br />
<a href="http://www.jonathanfritz.ca/files/areca/areca_scr2.jpg"><img class="alignleft" title="Areca2" src="http://www.jonathanfritz.ca/files/areca/areca_scr2.jpg" alt="" width="220" height="244" /></a></p>
<p>Next, we need to create a backup group. Click the <strong>Edit</strong> menu and select <strong>New Group</strong>. Enter a title and description (optional) for your group and hit Save.<br />
<a href="http://www.jonathanfritz.ca/files/areca/areca_scr3.jpg"><img class="alignright" title="Areca3" src="http://www.jonathanfritz.ca/files/areca/areca_scr3.jpg" alt="" width="250" height="166" /></a></p>
<p>Now, you&#8217;ll see that group you just created has appeared in the right hand panel of the Areca main screen.</p>
<p>Right click on it and select <strong>New Target </strong>from the context menu. This brings up the <strong>Target Edition</strong> dialogue box, where we define where and how our backup should take place. Give the target a name, make sure that <strong>Local Repository</strong> is selected, and hit the <strong>Browse</strong> button.</p>
<p>The <strong>Local Repository </strong>is where you want your backups to be saved. Mine are being saved to an external hard drive that I&#8217;ve encrypted with <a href="http://www.truecrypt.org/downloads.php" target="_blank">TrueCrypt</a>. Ideally, you want to put your backups on a different physical disk than the one that you work off of every day. This way, if your disk crashes, gets a virus, or gets otherwise corrupted, your backups should not be affected. You can choose a hard drive that you have installed in your machine, an external drive plugged in via USB or Firewire, or a network drive that is shared from another machine in your house.</p>
<p>Finally, ensure that the Storage Mode is set to Standard. At this point, your screen should look something like this:<br />
<a href="http://www.jonathanfritz.ca/files/areca/areca_scr4.jpg"><img class="alignleft" title="Areca4" src="http://www.jonathanfritz.ca/files/areca/areca_scr4.jpg" alt="" width="278" height="181" /></a>Select <strong>Sources</strong> from the left side panel of the <strong>Target Edition</strong> dialogue box. This where you want to add all of the files and folders that you would like to backup.</p>
<p>When you hit the <strong>Add</strong> button, Another box pops up that gives you the option to add either a <strong>Directory</strong> or a <strong>File</strong>. If you want to backup an entire Folder, like for example <strong>C:\Users\Jonathan\Music</strong>, then choose <strong>Directory</strong>. If instead, you want to backup a specific file, like <strong>C:\Users\Jonathan\Documents\Secret Spaghetti Sauce Recipe.txt</strong>, then choose <strong>File</strong>. After selecting the file or folder that you want to backup, hit the <strong>Save</strong> button to add that file or folder to the backup set. Repeat for as many items as you would like to have backed up.</p>
<p>One note to make here is that these backup folders are recursive. This means that if you add the folder <strong>C:\Users\Jonathan\Documents</strong> to your backup set, all files and folders within that one are also automatically included in your backup. So, if you are a normal user who doesn&#8217;t have a lot of large files like video or music files lying around, adding the folder <strong>C:\Users\YourName\</strong> <em>(Vista) </em>or <strong>C:\Documents and Settings\YourName\</strong> <em>(WinXP)</em> to the backup set should ensure that all of your important files are backed up.</p>
<p>For reference, my backup set looks something like this:<br />
<a href="http://www.jonathanfritz.ca/files/areca/areca_scr5.jpg"><img class="alignleft" title="Areca5" src="http://www.jonathanfritz.ca/files/areca/areca_scr5.jpg" alt="" width="278" height="182" /></a>As you can see, I have included a mix of folders and files. If you find yourself adding more than 10 files to the backup set, you should probably consider reorganizing your documents folder before continuing. The worst thing in the world is to restore your files from a backup set, only to realize that you forgot that one really important file.</p>
<p>Ok, just two more settings and we can get on to the fun stuff.<br />
Select <strong>Compression</strong> from the left side panel of the <strong>Target Edition</strong> dialogue box. In this window, we just want make sure that the compression mode is set to <strong>Zip 64</strong> and that the <strong>Add .zip Extension to Filenames</strong> box at the bottom is checked. This will make sure that if for whatever reason you want to restore your files without using Areca, you can do so with any zip utility, and that your zip files can grow to be more than 4GB in size (in case you have media in there). Finally, select <strong>Description </strong>from the side panel, and type in a description of this backup set. Mine just says &#8220;My Backup.&#8221; Alright, now you can hit the <strong>Save </strong>button.</p>
<p>At this point, if you would like to, you can repeat the above instructions to make another backup set for awesome customizability action. You could, for example, create one backup that runs just your normal small files daily, and another set that backs up your large music and video files just once a week. This can be a time and space saver in your backup location, while still making sure that the most recent copy of all your important files are backed up.</p>
<h2>Makin&#8217; Scripts:</h2>
<p>So we&#8217;ve created a workspace, a group, a backup set, and defined what files should be put in that backup set. This is where Areca ceases to be useful and we turn to Windows Task Scheduler to do our dirty work. We are going to use Areca to create two scripts that will perform <strong>full </strong>and <strong>differential </strong>backups respectively, and then use Windows Task Scheduler to schedule those scripts to run when we arent using the computer. This lets us automate the backup process so that we (almost) don&#8217;t have to worry about it until your hard drive chews on a brick.</p>
<p>Back in Areca, right-click on your backup set, and choose <strong>Wizards-&gt;Generate Backup Shortcut</strong> from the context menu. This dialogue lets you create the batch scripts that I just mentioned. Choose a location on your hard drive that you aren&#8217;t going to delete (I chose the same folder that I put my backup group in so that everything is in the same place), and call the first script <strong>backup_full.bat</strong>. Change the type to <strong>Full Backup</strong>, and make sure that the <strong>Scope </strong>is <strong>For the Selected Item Only</strong>. This will create a batch script that performs a full backup of your files &#8211; a copy of every byte of every file in your backup set.<br />
<a href="http://www.jonathanfritz.ca/files/areca/areca_scr6.jpg"><img class="alignleft" title="Areca6" src="http://www.jonathanfritz.ca/files/areca/areca_scr6.jpg" alt="" width="277" height="194" /></a><br />
Hit <strong>Save </strong>to get back to the main screen. Now, right-click on your backup set, and choose <strong>Wizards-&gt;Generate Backup Shortcut</strong> again to create the second script. Select the same folder as last time, but this time call the script <strong>backup_diff.bat</strong>, and change the type to <strong>Differential</strong>. Again, make sure that the <strong>Scope </strong>is set to <strong>Selected Item Only</strong>. This will create a batch script that performs a differential backup of your files by comparing their current state to that of the last full backup and only including new or changed files in the backup set.</p>
<h2>Task Scheduling Action:</h2>
<p>We are going to set up Windows Task Scheduler to run the full backup once a week, and the differential backup on the other six days of the week. This means that once a week, we will make a full copy of all of our files, and on each of the other six days of the week, we will copy only the files that have been added or changed since the last full copy. This allows us to keep the time spent on backups relatively short, while still providing the security of a good backup set. The instructions below deal with how to set up Task Scheduling on Windows Vista installations. For Windows XP instructions, see this <a href="http://support.microsoft.com/kb/308569" target="_blank">Microsoft Knowledge Base article</a>.</p>
<h3>Task Scheduling for Vista:</h3>
<p style="text-align: left;">Open up the <strong>Control Panel</strong>, click <strong>Classic View</strong> on the left side panel, and double-click on the <strong>Administrative Tools</strong> icon. In this folder, double-click on the <strong>Task Scheduler </strong>icon. This will bring up the Task Scheduler window. Open the <strong>Action</strong> menu and select <strong>Create Basic Task</strong>. In the window that appears, enter Full Backup for the name, and an optional description:</p>
<p style="text-align: center;"><a href="http://www.jonathanfritz.ca/files/areca/areca_scr8.jpg"><img class="aligncenter" title="Areca8" src="http://www.jonathanfritz.ca/files/areca/areca_scr8.jpg" alt="" width="346" height="242" /></a><br />
Click <strong>Next </strong>and choose <strong>Weekly</strong>, then click <strong>Next </strong>and set up your recursion options like this (Where the start date is today&#8217;s date):</p>
<p style="text-align: center;"><a href="http://www.jonathanfritz.ca/files/areca/areca_scr9.jpg"><img class="aligncenter" title="Areca9" src="http://www.jonathanfritz.ca/files/areca/areca_scr9.jpg" alt="" width="346" height="242" /></a><br />
Click <strong>Next</strong>, choose <strong>Start a Program</strong>, and click <strong>Next </strong>again. Now browse for the <strong>backup_full.bat</strong> file that we created earlier. Leave the <strong>Arguments </strong>and <strong>Start In</strong> boxes blank. The form should look like this:<br />
<a href="http://www.jonathanfritz.ca/files/areca/areca_scr10.jpg"><img class="aligncenter" title="Areca10" src="http://www.jonathanfritz.ca/files/areca/areca_scr10.jpg" alt="" width="345" height="240" /></a><br />
Hit <strong>Next </strong>and then <strong>Finish</strong>.</p>
<p style="text-align: center;">Now we want to (almost) repeat the above process to schedule our differential backup. Open the <strong>Action</strong> menu and select <strong>Create Basic Task</strong>. In the window that appears, enter <strong>Differential Backup</strong> for the name, and an optional description:<br />
<a href="http://www.jonathanfritz.ca/files/areca/areca_scr11.jpg"><img class="aligncenter" title="Areca11" src="http://www.jonathanfritz.ca/files/areca/areca_scr11.jpg" alt="" width="349" height="244" /></a><br />
Click <strong>Next </strong>and choose <strong>Weekly</strong>, then click <strong>Next </strong>and set up your recursion options. This time, we&#8217;re scheduling our differential backup to run on every day that our full backup does not. So before, I set my full backup to run on Monday. Now, I want my differential backup to run on every other day of the week:<br />
<a href="http://www.jonathanfritz.ca/files/areca/areca_scr12.jpg"><img class="aligncenter" title="Areca12" src="http://www.jonathanfritz.ca/files/areca/areca_scr12.jpg" alt="" width="348" height="242" /></a><br />
Click <strong>Next</strong>, choose<strong> Start a Program</strong>, and click <strong>Next </strong>again. Now browse for the <strong>backup_diff.bat</strong> file that we created earlier. Leave the <strong>Arguments </strong>and <strong>Start In</strong> boxes blank. The form should look like this:<br />
<a href="http://www.jonathanfritz.ca/files/areca/areca_scr13.jpg"><img class="aligncenter" title="Areca13" src="http://www.jonathanfritz.ca/files/areca/areca_scr13.jpg" alt="" width="347" height="241" /></a><br />
Hit <strong>Next </strong>and then <strong>Finish</strong>.</p>
<p>Now, if you click on the <strong>Task Scheduler Library</strong> node underneath the <strong>Task Scheduler</strong> node on the left side panel, you will see the two tasks that you just created.</p>
<p>Congratulations! Your backup is scheduled and ready to run. If you would like to run it right away, go to the Areca folder where you saved the <strong>backup_full.bat</strong> file, and double click on it. A console window will pop up with a bunch of gross stuff inside of it. When it closes, the backup is finished.</p>
<h2>To Recap:</h2>
<p style="text-align: left;">We used Areca to create a backup set, along with two batch files:</p>
<ol>
<li><strong>backup_full.bat</strong> creates an exact copy of all files in your backup set once a week. This will be a huge zip file because it contains everything.</li>
<li><strong>backup_diff.bat</strong> creates a copy of any files that have been created or modified since the last time backup_full.bat was run. This happens on every day of the week that backup_full.bat does not run, resulting in incremental backups created throughout the week.</li>
</ol>
<h2>Won&#8217;t This Create an Awful lot of Big Files?</h2>
<p style="text-align: left;">In a word, yes. Neither of these scripts will ever clean up their messes &#8211; so you&#8217;ll eventually have backups years old in your backup folder. This is no big deal if you&#8217;re backing up Word documents or your family photo albums, but if you&#8217;re backup up music or video files, you may fill up your destination drive within a matter of weeks.</p>
<p>If this is the case, you should either manually delete old backups once in awhile, or use this handy tool that deletes zip files that were created more than three weeks ago in your backup directory (Requires Microsoft .NET Framework Runtime):</p>
<h3>Download: Backup Directory Cleanup Tool</h3>
<p style="text-align: left;">Compiled Executable: <a href="http://www.jonathanfritz.ca/files/areca/BackupDirectoryCleanup.exe" target="_self">[BackupDirectoryCleanup.exe]</a> (28K)<br />
<strong>MD5:</strong> E3B0F840BC68D73A160D0551971188DE<br />
<strong>SHA1: </strong>37D8B1F3F652EDC01685EC5AE43B5F9F1C10B6AB</p>
<p>Source Code: <a href="http://www.jonathanfritz.ca/files/areca/BackupDirectoryCleanupSource.zip" target="_self">[BackupDirectoryCleanupSource.zip]</a> (46K)<br />
<strong>MD5:</strong> 6F8E4691D2B2B554154C90E757B3BD37<br />
<strong>SHA1:</strong> EFD815F867D3319CF6779F10691F0DC417DA50E2</p>
<p style="text-align: left;">I suggest using <a href="http://www.tylerburton.ca/2009/09/hash-verifier/" target="_blank">Tyler Burton&#8217;s Hash Verifier</a> tool to ensure the integrity of this download.</p>
<p style="text-align: center;">To add this application to our tasks, download it to a location where it won&#8217;t be deleted and open up the <strong>Control Panel</strong>. Click <strong>Classic View</strong> on the left side panel, and double-click on the <strong>Administrative Tools</strong> icon. In this folder, double-click on the <strong>Task Scheduler</strong> icon. This will bring up the <strong>Task Scheduler</strong> window. Open the <strong>Action</strong> menu and select <strong>Create Basic Task</strong>. In the window that appears, enter <strong>Directory Cleanup</strong> for the name, and an optional description. Click <strong>Next </strong>and choose <strong>Monthly</strong>, then click <strong>Next </strong>and set up your recursion options like this (Where the start date is today&#8217;s date):<br />
<a href="http://www.jonathanfritz.ca/files/areca/areca_scr15.jpg"><img class="aligncenter" title="Areca15" src="http://www.jonathanfritz.ca/files/areca/areca_scr15.jpg" alt="" width="350" height="247" /></a><br />
As you can see, I chose to run the application every three months on the first day of the month. That should be sufficient to prevent too much clutter on your backup drive, but you can run it more often if you like. Click <strong>Next</strong>, choose <strong>Start a Program</strong>, and click <strong>Next </strong>again. Now browse for the <strong>BackupDirectoryCleanup.exe</strong> file that we downloaded earlier. In the <strong>Arguments </strong>text box, enter <strong>-p path<em> </em></strong><em><strong> </strong></em>where <strong>path </strong>is the full path to your backup folder. In my case, it is <strong>E:\</strong> because I&#8217;m backing up to an external drive:<br />
<a href="http://www.jonathanfritz.ca/files/areca/areca_scr16.jpg"><img class="aligncenter" title="Areca16" src="http://www.jonathanfritz.ca/files/areca/areca_scr16.jpg" alt="" width="349" height="241" /></a><br />
Click <strong>Next </strong>and then <strong>Finish</strong>. Note that this application may encounter some serious problems with permissions. It does request information about your file system, and has the capacity to delete files. If windows moans, either figure out how to launch it as an administrator (that&#8217;s in the advanced settings for a task), or clean out your directory manually, because this article is already way too long to discuss permissions as well.</p>
<h2 style="text-align: left;">In Conclusion:</h2>
<p style="text-align: left;">Backing up your files is something that we should all take just a little more seriously. In my setup, where all of my computers are protected with full disk encryption from TrueCrypt, having an unencrypted backup lying around somewhere pokes a big hole in my security policy.</p>
<p style="text-align: left;">While this solution may be a little messy and requires you to fool with batch files and control panel items, it is fairly straightforward and results in a simple, robust, and reliable backup system that is secure and easy to set up and maintain. I hope that this article helped you solve your backup issues. May your hard drive not suck a lemon,</p>
<p style="text-align: left;">Jonathan</p>
<p style="text-align: left;">
<p style="text-align: left;"><strong>Edit: </strong>Fixed a couple links, corrected some grammar, and cursed WordPress for failing to format my stuff properly.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jonathanfritz.ca/software/areca-the-open-sourced-backup-solution/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

