<?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>Cerebral Mastication &#187; windows</title>
	<atom:link href="http://www.cerebralmastication.com/tag/windows/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.cerebralmastication.com</link>
	<description>Something to Chew On</description>
	<lastBuildDate>Fri, 16 Jul 2010 22:07:12 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Remote Backup Fail and How to Silently Copy Files</title>
		<link>http://www.cerebralmastication.com/2010/01/remote-backup-fail-and-how-to-silently-copy-files/</link>
		<comments>http://www.cerebralmastication.com/2010/01/remote-backup-fail-and-how-to-silently-copy-files/#comments</comments>
		<pubDate>Tue, 19 Jan 2010 23:33:01 +0000</pubDate>
		<dc:creator>JD Long</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[batch files]]></category>
		<category><![CDATA[rant]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://www.cerebralmastication.com/?p=549</guid>
		<description><![CDATA[Today I called my firms desktop support to talk to them about how to get Iron Mountain Connected Backup to archive files located somewhere other than [C:\Documents and Settings\user\] and through talking with my desktop support guy I discovered that it doesn&#8217;t support that. Oh, and by the way it&#8217;s a &#8220;desktop backup&#8221; so it&#8217;s [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.cerebralmastication.com/wp-content/uploads/2010/01/pee-on-iron-mountain.jpg"><img class="alignleft size-full wp-image-554" style="margin: 10px; border: 1px solid black;" title="pee on iron mountain" src="http://www.cerebralmastication.com/wp-content/uploads/2010/01/pee-on-iron-mountain.jpg" alt="" width="210" height="210" /></a>Today I called my firms desktop support to talk to them about how to get <a href="http://backup.ironmountain.com/" onclick="pageTracker._trackPageview('/outgoing/backup.ironmountain.com/?referer=');">Iron Mountain Connected Backup</a> to archive files located somewhere other than [C:\Documents and Settings\user\] and through talking with my desktop support guy I discovered that it doesn&#8217;t support that. Oh, and by the way it&#8217;s a &#8220;desktop backup&#8221; so it&#8217;s not backup up my MS Access files or Outlook PST files. I told the guy that I had gone in and made sure it was backing those files up and they were checked in the UI. He informed me that it may look like they are backed up, but I can&#8217;t restore them. To which I responded<span style="color: #800000;"><strong> &#8220;Any developer who writes backup software that will backup a file it can&#8217;t restore should be kicked squarely in the nuts and then never allowed near a computer for life&#8221;</strong></span> I&#8217;m not kidding. Honest to god I would kick an Iron Mountain developer right in the baby maker for passing this piece of shit program off as &#8220;enterprise ready.&#8221; The only way this program could be more useless is if it actually deleted files from my PC instead of backing them up. If the software is crippled because they are selling it as a &#8220;desktop backup&#8221; then, by god, they better tell me that in big fucking blinking letters and a marching band playing John Philip Sousa on my lap.</p>
<p><strong>Alternatives:</strong> I&#8217;ve been running <a href="http://www.jungledisk.com/" onclick="pageTracker._trackPageview('/outgoing/www.jungledisk.com/?referer=');">Jungle Disk</a> at home and really like it. I could use that at work except I have not set up an Amazon or RackSpace account with my work credit card. But I am in Chicago and my database server/ file server is in Dallas TX. So I decided to just create a mirror on my laptop onto a shared drive on my server. There&#8217;s lots of ways to do this, but the path I chose was to use <a href="http://en.wikipedia.org/wiki/Robocopy" onclick="pageTracker._trackPageview('/outgoing/en.wikipedia.org/wiki/Robocopy?referer=');">RoboCopy, a command line copy tool from Microsoft</a> that is part of the Windows Server 2003 Resource Kit. I&#8217;m running XP and I wanted the mirroring of my machine to be invisible, silent, and scheduled. To do this I found I needed to take the following steps:</p>
<ol>
<li>Install RoboCopy</li>
<li>Create a batch file to mirror the directory I wanted</li>
<li>Create a windows script to call the batch silently</li>
<li>Schedule the windows script to run automagically</li>
</ol>
<p><strong>Install RoboCopy:</strong> Download the <a href="http://www.microsoft.com/downloads/details.aspx?familyid=9d467a69-57ff-4ae7-96ee-b18c4790cffd&amp;displaylang=en" onclick="pageTracker._trackPageview('/outgoing/www.microsoft.com/downloads/details.aspx?familyid=9d467a69-57ff-4ae7-96ee-b18c4790cffd_amp_displaylang=en&amp;referer=');">Windows Server 2003 Resource Kit</a> and install it. Very easy.</p>
<p><strong>Create a batch file to run RoboCopy</strong>: I named mine c:/backup.bat and it looks something like this:</p>
<blockquote>
<div id="_mcePaste">Set Source=&#8221;C:\Documents and Settings\jdlong&#8221;</div>
<div id="_mcePaste">Set Dest=&#8221;\\myDallasServer\backup\jdlong&#8221;</div>
<div id="_mcePaste">Robocopy %Source% %Dest% /MIR /Z /R:0  &gt;nul</div>
</blockquote>
<p>This simply sets the source and destination and then runs RoboCopy with the /MIR (mirror) and /Z (restartable) switches invoked</p>
<p><strong>Create a windows script</strong>: The problem with the batch file is that it is noisy when it runs. Even piping the output to nul it still produces a CMD window that stays up until it finishes running. That&#8217;s where the Windows Script file comes into play. It calls the batch file but hides the CMD window. I created a file called c:\runBackup.vbs that has this in it:</p>
<blockquote><p>Set WshShell = CreateObject(&#8220;WScript.Shell&#8221;)<br />
WshShell.Run chr(34) &amp; &#8220;C:\backup.bat&#8221; &amp; Chr(34), 0<br />
Set WshShell = Nothing</p></blockquote>
<div><strong>Schedule the windows script:</strong> Control Panel -&gt; Scheduled Tasks. Then I created a new task that runs  c:\runBackup.vbs every night at 11PM. The only down side is that when I change my password I have to remember to change the password associated with the scheduled task or it will fail.</div>
<div>The only upside is that I figured out that Iron Mountain sucks prior to having data loss. I got lucky. Next week I am going to test my backup. And then test it every quarter after that. And I won&#8217;t depend on my corporate IT do to my backups.</div>
]]></content:encoded>
			<wfw:commentRss>http://www.cerebralmastication.com/2010/01/remote-backup-fail-and-how-to-silently-copy-files/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
	</channel>
</rss>
