<?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>..::\\ www.christiano.ch //::.. &#187; DiskShadow</title>
	<atom:link href="http://www.christiano.ch/wordpress/tag/diskshadow/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.christiano.ch/wordpress</link>
	<description>christiano.ch blog - personal knowledge base, news, memoires et cetera</description>
	<lastBuildDate>Fri, 06 Jan 2012 15:28:23 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<meta xmlns="http://www.w3.org/1999/xhtml" name="robots" content="noindex,follow" />
		<item>
		<title>Did you know about DiskShadow? Creating Shadow Copy from the command line</title>
		<link>http://www.christiano.ch/wordpress/2010/07/16/did-you-know-about-diskshadow-creating-shadow-copy-from-the-command-line/</link>
		<comments>http://www.christiano.ch/wordpress/2010/07/16/did-you-know-about-diskshadow-creating-shadow-copy-from-the-command-line/#comments</comments>
		<pubDate>Fri, 16 Jul 2010 06:27:55 +0000</pubDate>
		<dc:creator>christian</dc:creator>
				<category><![CDATA[CMD / Batch]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Windows General]]></category>
		<category><![CDATA[DiskShadow]]></category>

		<guid isPermaLink="false">http://www.christiano.ch/wordpress/2010/07/16/did-you-know-about-diskshadow-creating-shadow-copy-from-the-command-line/</guid>
		<description><![CDATA[This can be an alternative for taking a Snapshot in Hyper-V.. According to TechNet @Microsoft they state: DiskShadow.exe is a tool that exposes the functionality offered by the Volume Shadow Copy Service (VSS). By default, DiskShadow uses an interactive command &#8230; <a href="http://www.christiano.ch/wordpress/2010/07/16/did-you-know-about-diskshadow-creating-shadow-copy-from-the-command-line/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<table border="0" cellspacing="0" cellpadding="2" width="675">
<tbody>
<tr>
<td valign="top" width="690">This can be an alternative for taking a Snapshot in Hyper-V..         <br />According to TechNet @Microsoft they state: DiskShadow.exe is a tool that exposes the functionality offered by the Volume Shadow Copy Service (VSS). By default, DiskShadow uses an interactive command interpreter similar to that of DiskRAID or DiskPart. DiskShadow also includes a scriptable mode.</td>
<td valign="top" width="10"><a href="http://www.christiano.ch/wordpress/wp-content/uploads/2010/07/Logo_windowsserver2008hypervlogov_21.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="Logo_windows-server-2008-hyper-v-logo-v_2" border="0" alt="Logo_windows-server-2008-hyper-v-logo-v_2" src="http://www.christiano.ch/wordpress/wp-content/uploads/2010/07/Logo_windowsserver2008hypervlogov_2_thumb1.png" width="165" height="78" /></a> </td>
</tr>
</tbody>
</table>
<p> <span id="more-1053"></span>
<p><strong>Note</strong>: DiskShadow.exe is not supported on Windows Server 2003 / Windows Vista!</p>
<p>Here are the commands for diskshadow to back up the VHD using VSS (its kicks off vss inside the VM so the data is consistent)   </p>
<p>Go to cmd prompt:    </p>
<p><em>diskshadow.exe     <br />set context persistent      <br />add volume d: alias ddrive      <br />set verbose on      <br />create      <br />expose %ddrive% y:</em>    </p>
<p>This will take a VSS snapshop of my D drive (where my vhd lives) and then mounts it as drive letter Y: Now copy the contents of Y: to a safe place. When your done you can delete the snapshop and unmount Y:    <br />Delete Shadows Volume D:    <br /><em>     <br />unexpose y:</em></p>
<p>&#160;</p>
<p>The following sequence generates a shadow copy on volume D: that remains even after the end of the program but not on the file system as &quot;previous version&quot; is available. Theoretically, you could run this script periodically. </p>
<p><em>set context persistent     <br />begin backup      <br />add volume e:      <br />create      <br />end backup</em></p>
<p><em></em></p>
<p><a href="http://www.christiano.ch/wordpress/wp-content/uploads/2010/07/DiskShadow_Create_Backup_Shadow.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="DiskShadow_Create_Backup_Shadow" border="0" alt="DiskShadow_Create_Backup_Shadow" src="http://www.christiano.ch/wordpress/wp-content/uploads/2010/07/DiskShadow_Create_Backup_Shadow_thumb.png" width="666" height="561" /></a> </p>
<p><em></em></p>
<p>The Fact that shadow copies for this volume are in use can also be seen in explorer. Right-click the drive D: and go to <em>Shadow Copies</em></p>
<p><a href="http://www.christiano.ch/wordpress/wp-content/uploads/2010/07/DiskShadow_ShowShadowsExplorerDriveProperties.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="DiskShadow_ShowShadowsExplorerDriveProperties" border="0" alt="DiskShadow_ShowShadowsExplorerDriveProperties" src="http://www.christiano.ch/wordpress/wp-content/uploads/2010/07/DiskShadow_ShowShadowsExplorerDriveProperties_thumb.png" width="367" height="516" /></a> </p>
<p>&#160;</p>
<p>To list the shadow just use </p>
<p><em>List Shadows</em></p>
<p>and to expose a specific shadow</p>
<p><em>expose {ShadowCopyId} V:</em></p>
<p>don’t forget to discard / unexpose the drive when done!</p>
<p><em>unexpose V:</em></p>
<p><strong>Links</strong></p>
<p><a title="DiskShadow Documentation @Microsoft Technet" href="http://technet.microsoft.com/de-de/library/cc772172(WS.10).aspx" target="_blank">DiskShadow Documentation @Microsoft Technet</a></p>
<div class="tweetthis" style="text-align:left;"><p> <a class="tt" href="http://twitter.com/intent/tweet?text=Did+you+know+about+DiskShadow%3F+Creating+Shadow+Copy+from+the+command+line+http%3A%2F%2Fchristiano.ch%2Fwordpress%2F%3Fp%3D1053" title="Post to Twitter"><img class="nothumb" src="http://www.christiano.ch/wordpress/wp-content/plugins/tweet-this/icons/en/twitter/tt-twitter.png" alt="Post to Twitter" /></a> <a class="tt" href="http://twitter.com/intent/tweet?text=Did+you+know+about+DiskShadow%3F+Creating+Shadow+Copy+from+the+command+line+http%3A%2F%2Fchristiano.ch%2Fwordpress%2F%3Fp%3D1053" title="Post to Twitter">Tweet This Post</a></p></div>]]></content:encoded>
			<wfw:commentRss>http://www.christiano.ch/wordpress/2010/07/16/did-you-know-about-diskshadow-creating-shadow-copy-from-the-command-line/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

