<?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>Globalize Networks blog &#187; Scripting</title>
	<atom:link href="http://globalizenetworks.com/blog/category/scripting/feed/" rel="self" type="application/rss+xml" />
	<link>http://globalizenetworks.com/blog</link>
	<description>from an Oakland computer services company</description>
	<lastBuildDate>Fri, 26 Aug 2011 18:35:24 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Automate ASR Backups on Windows 2003 Server</title>
		<link>http://globalizenetworks.com/blog/2008/06/04/automate-asr-backups-on-windows-2003-server/</link>
		<comments>http://globalizenetworks.com/blog/2008/06/04/automate-asr-backups-on-windows-2003-server/#comments</comments>
		<pubDate>Thu, 05 Jun 2008 02:59:56 +0000</pubDate>
		<dc:creator>Scott Jackisch</dc:creator>
				<category><![CDATA[Disaster Recovery]]></category>
		<category><![CDATA[Scripting]]></category>
		<category><![CDATA[automate asr]]></category>
		<category><![CDATA[system state backups]]></category>

		<guid isPermaLink="false">http://globalizenetworks.com/blog/?p=17</guid>
		<description><![CDATA[ASR Backups are a cool way to get system state backups of  Windows 2003 server.  They are cooler than regular NTBackup system state backups, because you can do a &#8220;bare metal&#8221; restore by booting a system with no OS to the installation CD and providing the ASR disk and path to backup files (USB drive, [...]]]></description>
			<content:encoded><![CDATA[<p style="padding-left: 90px;"><a title="http://technet2.microsoft.com/windowsserver/en/library/9143ba85-587e-409d-b612-617e6617fece1033.mspx?mfr=true" href="http://technet2.microsoft.com/windowsserver/en/library/9143ba85-587e-409d-b612-617e6617fece1033.mspx?mfr=true" target="_blank">ASR Backups</a> are a cool way to get system state backups of  Windows 2003 server.  They are cooler than regular NTBackup system state backups, because you can do a &#8220;bare metal&#8221; restore by booting a system with no OS to the installation CD and providing the ASR disk and path to backup files (USB drive, locally installed disk, etc.)</p>
<p>People that have used ASR backups sporadically might be surprised to learn that yes, it is possible to automate ASR Backups.  It&#8217;s not really documented, but NTBackup.exe accepts a parameter called &#8220;asrbackup&#8221;.  Now you might be saying &#8211; well I don&#8217;t really want to leave a floppy disk in the drive all the time, and I don&#8217;t want to be swapping floppy disks every  backup or maybe I have machines without floppy drives.  Well, I hear you!  But have you ever heard of <a title="http://chitchat.at.infoseek.co.jp/vmware/vfd.html" href="http://chitchat.at.infoseek.co.jp/vmware/vfd.html" target="_blank">Virtual Floppy for Windows</a>?  It basically lets you create a virtual floppy drive and script the insertion and removal of virtual floppies which are like tiny little .iso files.</p>
<p>Here how I did it:</p>
<ol>
<li>Download and unzip <a title="http://chitchat.at.infoseek.co.jp/vmware/vfd.html" href="http://chitchat.at.infoseek.co.jp/vmware/vfd.html" target="_blank">Virtual Floppy for Windows</a></li>
<li>Write yourself a batch file that looks something like this:</li>
</ol>
<p style="padding-left: 60px;">REM Get the date for the file using the wonderful :~ trick &#8212; thanks to Terry Uptmor for that trick<br />
set MYDATE=<br />
set MYYEAR=<br />
set MYMONTH=<br />
set MYDAY=<br />
set FILENAME=<br />
set MYDATE=%DATE%<br />
set MYYEAR=%MYDATE:~10,4%<br />
set MYMONTH=%MYDATE:~4,2%<br />
set MYDAY=%MYDATE:~7,2%</p>
<p style="padding-left: 60px;">REM create a variable for your filename &#8211; might as well include the computer name</p>
<p style="padding-left: 60px;">set FILENAME=ASR_%COMPUTERNAME%_%MYYEAR%%MYMONTH%%MYDAY%<br />
REM might as well do some BASIC logging<br />
Echo starting ASR Backup at %TIME% %DATE% &gt;&gt; backup.log<br />
REM refer to the vfdhelp.txt for info on these commands<br />
vfd.exe INSTALL<br />
vfd.exe START<br />
vfd.exe LINK A:<br />
vfd.exe OPEN A: c:\scripts\%FILENAME%.vfd /NEW /F<br />
REM The mysteriously undocumented asrbackup command in action (/F just specifies your filename)<br />
ntbackup asrbackup /F &#8220;%FILENAME%.bkf&#8221;<br />
vfd.exe SAVE<br />
vfd.exe ULINK<br />
vfd.exe STOP<br />
vfd.exe REMOVE</p>
<p>So now you would have a .VFD file and and .BKF.  (You would probably want to also run a data backup around this time, also I&#8217;m not sure if ASR will backup non-system files on the system volume so a separate full system volume backup wouldn&#8217;t hurt).</p>
<p>If your server crashed, you could just load up the VFD file on your laptop (which is all prepped with VFD.exe and ready to go of course <img src='http://globalizenetworks.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />  to a virtual B: drive and use windows explorer to do a &#8220;copy disk&#8221; over to a physical floppy (using your handy USB floppy drive), plug  a large usb drive with the bkf files on it to the new server, boot to the 2003 install disk, select ASR option, yadda yadda yadda</p>
]]></content:encoded>
			<wfw:commentRss>http://globalizenetworks.com/blog/2008/06/04/automate-asr-backups-on-windows-2003-server/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

