<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.technet.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Virtual Machine Management : Backup / VSS</title><link>http://blogs.technet.com/m2/archive/tags/Backup+_2F00_+VSS/default.aspx</link><description>Tags: Backup / VSS</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>Invoking diskshadow to back up a Virtual Machine from a Hyper-V Host</title><link>http://blogs.technet.com/m2/archive/2008/04/17/invoking-diskshadow-to-back-up-a-virtual-machine-from-a-hyper-v-host.aspx</link><pubDate>Fri, 18 Apr 2008 02:43:00 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3038991</guid><dc:creator>mlmich</dc:creator><slash:comments>9</slash:comments><comments>http://blogs.technet.com/m2/comments/3038991.aspx</comments><wfw:commentRss>http://blogs.technet.com/m2/commentrss.aspx?PostID=3038991</wfw:commentRss><description>&lt;P&gt;DiskShadow.exe is a new tool that shipped with Windows Server 2008 and it allows you to create and restore shadow copies (snapshots).&lt;/P&gt;
&lt;P&gt;The tool is similar to vshadow (a free tool that ships with the Volume Shadow Copy/VSS SDK), but it has a diskpart-like interface.&lt;/P&gt;
&lt;P&gt;You can invoke DiskShadow from a cmdline, or you can pass a script to it using the command "diskshadow -s script.txt"&lt;/P&gt;
&lt;P&gt;Below, i will show you an example script to back up all VMs of a Hyper-V Host. First, we need to know the ID of the VSS writer for Hyper-V. To do that you need to invoke the command "list writers" from diskshadow (or from vssadmin). Once you parse its content, look for this GUID as per below underlined text.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; * WRITER "Microsoft Hyper-V VSS Writer"&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - Writer ID&amp;nbsp;&amp;nbsp; =&lt;STRONG&gt;&lt;U&gt;&lt;EM&gt; {66841cd4-6ded-4f4b-8f17-fd23f8ddc3de}&lt;BR&gt;&lt;/EM&gt;&lt;/U&gt;&lt;/STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - Writer instance ID = {d49be452-e26e-4255-a723-bfb9f996e703}&lt;/P&gt;
&lt;P&gt;Once you know the ID, you can use&amp;nbsp;a script like one below to create a snapshot for the volume the VM resides on and ensure that the VSS writer for Hyper-V is included in the snapshot process.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;lt;&amp;lt;&lt;/P&gt;
&lt;P&gt;# DiskShadow script file to backup a single VM from a Hyper-V host&lt;BR&gt;set context persistent&lt;/P&gt;
&lt;P&gt;# make sure the path already exists&lt;BR&gt;set metadata c:\example.cab&lt;BR&gt;set verbose on&lt;/P&gt;
&lt;P&gt;begin backup&lt;BR&gt;add volume d: alias SystemAndDataVolumeShadow&lt;/P&gt;
&lt;P&gt;# verify the "Microsoft Hyper-V VSS Writer" writer will be included in the snapshot&lt;BR&gt;writer verify {66841cd4-6ded-4f4b-8f17-fd23f8ddc3de}&lt;BR&gt;create&lt;/P&gt;
&lt;P&gt;end backup&lt;BR&gt;&amp;gt;&amp;gt;&lt;/P&gt;
&lt;P&gt;As you run this, you will see that the Hyper-V VSS writer is included in the shadow copy process and is participating in the backup (other writers might be included too since I chose a writer-involved snapshot and those writers might have data on the volumes selected for backup). Once the snapshot is complete, you can mount the snapshot to a mount point (you can do this using the expose diskshadow command)&amp;nbsp;and copy the entire configuration for the VM to a backup location. You can see which files comprise this VM by looking at the metadata created in the CAB file (look into manifest.xml to see which XML file corresponds for the Hyper-V writer and you can get the specific writer metadata there).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;good luck - backup is essential :) (and don't forget that Data Protection Manager does backup like no other application&amp;nbsp;and a lot more)&lt;BR&gt;&lt;/P&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3038991" width="1" height="1"&gt;</description><category domain="http://blogs.technet.com/m2/archive/tags/Hyper-V/default.aspx">Hyper-V</category><category domain="http://blogs.technet.com/m2/archive/tags/Backup+_2F00_+VSS/default.aspx">Backup / VSS</category><category domain="http://blogs.technet.com/m2/archive/tags/Data+Protection+Manager/default.aspx">Data Protection Manager</category></item><item><title>welcome</title><link>http://blogs.technet.com/m2/archive/2008/04/16/welcome.aspx</link><pubDate>Wed, 16 Apr 2008 23:56:00 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3038195</guid><dc:creator>mlmich</dc:creator><slash:comments>0</slash:comments><comments>http://blogs.technet.com/m2/comments/3038195.aspx</comments><wfw:commentRss>http://blogs.technet.com/m2/commentrss.aspx?PostID=3038195</wfw:commentRss><description>&lt;P&gt;hi everyone,&lt;/P&gt;
&lt;P&gt;thanks for visiting my blog. My name is Michael Michael and I am one of the architects on the Virtual Machine Manager team. I have been working in the virtualization space since mid 2005, and prior to that I was working on backup technologies (including Windows Storage Server and Data Protection Manager).&lt;/P&gt;
&lt;P&gt;I will use this blog to communicate my ideas and thoughts about virtualization as well post solutions to commonly asked questions.&lt;/P&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3038195" width="1" height="1"&gt;</description><category domain="http://blogs.technet.com/m2/archive/tags/VMM/default.aspx">VMM</category><category domain="http://blogs.technet.com/m2/archive/tags/Virtual+Machine+Manager/default.aspx">Virtual Machine Manager</category><category domain="http://blogs.technet.com/m2/archive/tags/Backup+_2F00_+VSS/default.aspx">Backup / VSS</category></item></channel></rss>