<?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>Wed, 07 Dec 2011 13:08:46 +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[Recently I&#8217;ve run into frustrations with Iron Mountain Connected Backup so I&#8217;ve been looking for alternatives.
Alternatives: I&#8217;ve been running Jungle Disk 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 [...]]]></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>Recently I&#8217;ve run into frustrations with <a href="http://backup.ironmountain.com/" onclick="pageTracker._trackPageview('/outgoing/backup.ironmountain.com/?referer=');">Iron Mountain Connected Backup</a> so I&#8217;ve been looking for alternatives.</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>11</slash:comments>
		</item>
	</channel>
</rss>

