{"id":467,"date":"2010-09-13T02:09:03","date_gmt":"2010-09-13T07:09:03","guid":{"rendered":"http:\/\/swildow.darktech.org\/wp\/?p=467"},"modified":"2010-09-13T02:09:03","modified_gmt":"2010-09-13T07:09:03","slug":"from-minasi-about-2008-backup","status":"publish","type":"post","link":"https:\/\/www.wildow.com\/blog\/?p=467","title":{"rendered":"from Minasi about 2008 backup"},"content":{"rendered":"<h3>CompletePC Backup:\u00a0 Transplanting a Vista installation from one drive to  another<\/h3>\n<p>I know I&#8217;ve covered CompletePC Backup in two previous newsletters, but I have  since used it for a real-world backup and restore and in the process discovered  a couple of undocumented things that might be useful.\u00a0 (&#8220;Undocumented&#8221; because  I&#8217;ve spent a lot of time with the Server 2008 version of CompletePC Backup and  noticed a few useful options to the wbadmin command that Microsoft&#8217;s  documentation clearly stated only worked with 2008 and not Vista.\u00a0 You won&#8217;t be  surprised to hear that they did work in Vista, after all.)<\/p>\n<p><!--more--><\/p>\n<p>Quick review:\u00a0 CompletePC Backup is a new technology built into Vista and  Server 2008 that backs up entire drive letters (or groups of drive letters),  storing them in the VHD format that Microsoft normally uses to store its virtual  machines for Virtual Server, Virtual PC or the upcoming Hyper-V server.\u00a0 The VHD  format understands the notion of snapshots and so a given VHD can store many  versions of a given drive&#8217;s backup, and does it fairly efficiently as the  snapshots store just the differences from one backup to another.\u00a0 These backups  can then be restored to do a complete system restore, allowing you to do a  CompletePC Backup of a system and then restore that to a system with somewhat  different hardware.\u00a0 (Different drive architectures seem not to always work \u2014  transplanting a backup taken from an IDE hard disk doesn&#8217;t seem to be possible  on a SATA hard disk, for example, although I HAVE transplanted a SCSI backup  onto an IDE drive.)\u00a0 Thus, CompletePC Backup allows for so-called &#8220;bare metal&#8221;  restores.\u00a0 Again, it <em>cannot<\/em> just back up a single file or folder \u2014 just  an entire drive.<\/p>\n<p>Anyway, here&#8217;s the story.\u00a0 7200 RPM laptop hard disks now come in a 200 GB  size.\u00a0 (I&#8217;m staying with 7200 RPM because Vista is a <em>lot<\/em> happier with  7200s.\u00a0 Previously 160 GB was the largest 7200 RPM laptop-sized drive.)\u00a0 In  addition to being larger, the drive (the Hitachi Travelstar 7K200) has a 16 MB  cache, rather than the 8 MB cache found in the other laptop hard disks that I&#8217;ve  used&#8230; so I <em>had<\/em> to have it.<\/p>\n<p>I know, you&#8217;re saying, &#8220;Minasi&#8217;s going to transplant his Vista system from  one drive to another for a measly 40 more gigs?&#8221;\u00a0 Yup; that measly 40 gigs, my  friends, is equivalent to space for four more virtual machines, or a couple more  virtual machines <em>and<\/em> space for a bunch more photos.\u00a0 (If you&#8217;ve not been  to <a href=\"http:\/\/www.minasi.com\/photos\">www.minasi.com\/photos<\/a>, then you&#8217;re  missing out on the gray fox and dolphin pictures.) But how to move from the 160  to the 200 easily and cheaply?\u00a0 With CompletePC Backup.\u00a0 I&#8217;ve covered CompletePC  Backup before, but now that I&#8217;ve used it to do a &#8220;no muss, no fuss, no greasy  aftertaste&#8221; drive upgrade, I wanted to cover the steps in detail to (1) document  some extra CompletePC syntax that I found in the process of doing the drive  transplant and (2) save someone having to do this the trouble of looking all of  this vaguely-documented stuff up.\u00a0 I have already covered much of this in  Newsletters #63 and #64, but, again, when I actually bet my <em>laptop&#8217;s<\/em> drive on it, I found having step-by-steps useful, as I&#8217;d sat down beforehand and  laid out a procedure \u2014 and I&#8217;m hoping you&#8217;ll find it useful also.<\/p>\n<h4>Backing Up the Drive<\/h4>\n<p>As I&#8217;ve discussed in previous newsletters, we&#8217;re going to back up the  existing drives on the laptop to either an external drive (like a USB-connected  drive) or a network share, using the wbadmin.exe command-line tool shipped with  Vista but which is, sadly, a mite underdocumented.<\/p>\n<p>First, open an elevated command prompt (one where you right-clicked the  &#8220;Command Prompt&#8221; icon, chose &#8220;Run as administrator&#8221; and clicked &#8220;Continue&#8221; at  the User Account Control prompt).<\/p>\n<p>Then type &#8220;wbadmin start backup -backuptarget:<em>wheretobackupto<\/em> -allcritical -quiet&#8221; where <em>wheretobackupto<\/em> is either an UNC path or a  drive letter.\u00a0 Remember from previous newsletters that you cannot specify a  drive letter that is actually a mapped drive (and you may recall that the GUI is  completely network-deaf for some reason) and if you specify a drive letter that  <em>is<\/em> a hard drive letter, then ensure that you specify only the drive  letter &#8212; you cannot include a path within that drive letter.<\/p>\n<p>The &#8220;-allcritical&#8221; is an option that I discovered shortly after writing the  last newsletter wherein I covered wbadmin.\u00a0 It appears nowhere in Vista  documentation, but it appears in Server 2008 documentation with the specific  warning that the &#8220;-allcritical&#8221; option only works on Server, and not Vista.\u00a0 (So  much for documentation.)<\/p>\n<p>Here are a couple of working examples:<\/p>\n<pre>wbadmin start backup -backuptarget:h: -allcritical -quiet<\/pre>\n<p>This is the simplest example, which instructs wbadmin to back up everything  on the PC except drive h:, and to put the backup on h:.\u00a0 (CompletePC cannot back  itself up to a drive that it is backing up for some reason.\u00a0 You&#8217;d think it&#8217;d be  smart enough to be able to handle it, y&#8217;know?)\u00a0 The trick is the &#8220;-allcritical&#8221;  switch; otherwise, we&#8217;d have to name every drive to get those drives backed up.\u00a0  The documentation says that &#8220;-allcritical&#8221; only backs up the drives that are  essential to making the OS work, but my older laptop image had a superfluous  drive D: that was 1.5 GB in size and did nothing of any value, but -allcritical  backed it up, all the same.\u00a0 To reiterate an important point, this would not  work:<\/p>\n<pre>wbadmin start backup -backuptarget:h:\\pcbackups -allcritical -quiet<\/pre>\n<p>I have no idea why, but wbadmin doesn&#8217;t let you specify a full drive and  path, just a drive; it then puts it in a folder on that drive called  WindowsImageBackup.<\/p>\n<p>(Interesting note:\u00a0 I&#8217;m not sure why, but when I restored the backup to the  new drive, it rearranged my volumes &#8212; I had three, only two of which were  important \u2014 so that the essential ones were restored first, and the superfluous  one later.\u00a0 I don&#8217;t know if this is a behavior that&#8217;ll happen every time, as  I&#8217;ve only tried it once, but it was wonderful, as it let me delete the useless  volume and then use its 1.5 GB in combination with the newly-acquired 40 GB as  one new volume.\u00a0 Very nice!)<\/p>\n<pre>wbadmin start backup -backuptarget:\\\\myserver\\myshare\\pcbackupsdir -allcritical -quiet<\/pre>\n<p>Here, we&#8217;re doing the same thing, but to a share.\u00a0 Notice the next wbadmin  oddity \u2014 specifying an UNC path <em>lets you specify a folder within it<\/em>.\u00a0  What backing up to H: could do, backing up to \\\\myserver could.\u00a0 Go figure.<\/p>\n<p>Expect the backup to take a fair amount of time.\u00a0 On my system, backing up  the roughly 152 GB of data on my hard disk took about eight hours.<\/p>\n<h4>Restoring to the new drive<\/h4>\n<p>Now that my original 160 GB drive was backed up, it was time to perform some  open-PC surgery and swap the drive.\u00a0 I opened up the PC, removed the 160 GB  drive, and replaced it with the empty 200 GB drive.\u00a0 (Of course, the nice part  about this is that if the restore fails, I could have always fallen back to the  160 GB drive.)\u00a0 After securing the new drive, I popped the Vista installation  DVD and booted from it.\u00a0 When I got to the &#8220;Install Now&#8221; screen, I opted instead  to click &#8220;Repair your computer.&#8221;\u00a0 That in turn led to a screen that offered me  several options, two of which were &#8220;CompletePC Restore&#8221; and &#8220;Command Prompt.&#8221;\u00a0  You&#8217;ll use one or another of those two options, depending on where you put the  backup.<\/p>\n<p>If you backed up your old drive onto an external USB drive, then plug it in  (if it&#8217;s not plugged in yet) and choose &#8220;System Restore.&#8221;\u00a0 Then just run the GUI  \u2014 it&#8217;ll look around, find a CompletePC backup on the USB drive, and offer to  restore it to your 200 GB drive.\u00a0 It will warn you that it&#8217;s going to blow away  anything currently on the hard disk (it has to repartition the drive to match  the backed-up partitions), and in a short time, much less time than the backup  took, you&#8217;ll have a working system.<\/p>\n<p>If, on the other hand, you backed up to a network share, then you need to do  three things:<\/p>\n<ul>\n<li>Connect to the network<\/li>\n<li>Get the internal &#8220;version number&#8221; of the backup, even if it&#8217;s the only one<\/li>\n<li>Run a recovery from the GUI or the command line<\/li>\n<\/ul>\n<p>Getting on the network is easy:<\/p>\n<ul>\n<li>At the dialog box\/window where you <em>didn&#8217;t<\/em> choose &#8220;CompletePC  Restore,&#8221; choose &#8220;Command Prompt.&#8221;<\/li>\n<li>In the command prompt, type &#8220;startnet&#8221; and press Enter.<\/li>\n<li>Check that you&#8217;ve got network connectivity with &#8220;ipconfig&#8221; and, if you  don&#8217;t, then look at newsletter #59 for some tips on how to get that network  connectivity going.<\/li>\n<\/ul>\n<p>Next, find out the version of your backup by typing<\/p>\n<pre>wbadmin get versions -backuptarget:\\\\myserver\\myshare\\pcbackupsdir<\/pre>\n<p>(Of course, your share won&#8217;t have that exact name; substitute whatever you&#8217;ve  used.)\u00a0 You&#8217;ll get a &#8220;version name&#8221; back that looks like \u201c08\/16\/2007-14:17\u201d and  you will then plug that date into a command that looks like<\/p>\n<pre>wbadmin start sysrecovery \u2013backuptarget:\\\\<em>uncpath<\/em> -version:<em>versionnumber<\/em> -recreatedisks -quiet<\/pre>\n<p>So, for example, in my case I&#8217;d type<\/p>\n<pre>wbadmin start sysrecovery \u2013backuptarget:\\\\myserver\\myshare\\pcbackupsdir \r\n-version:08\/16\/2007-23:47 -recreatedisks -quiet<\/pre>\n<p>That should be typed on just one line \u2014 I broke that to make it a bit more  readable.\u00a0 Again, the system will run for a while and you&#8217;ll have your OS on the  new drive, good as new.\u00a0 Just remember from Newsletter #63 that the target drive  must be the same size or larger than the old drive, or it won&#8217;t work.\u00a0 Good luck  upsizing!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>CompletePC Backup:\u00a0 Transplanting a Vista installation from one drive to another I know I&#8217;ve covered CompletePC Backup in two previous newsletters, but I have since used it for a real-world backup and restore and in the process discovered a couple &#8230; <a class=\"more-link\" href=\"https:\/\/www.wildow.com\/blog\/?p=467\">Read More &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-467","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/www.wildow.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/467","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wildow.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wildow.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wildow.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wildow.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=467"}],"version-history":[{"count":2,"href":"https:\/\/www.wildow.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/467\/revisions"}],"predecessor-version":[{"id":469,"href":"https:\/\/www.wildow.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/467\/revisions\/469"}],"wp:attachment":[{"href":"https:\/\/www.wildow.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=467"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wildow.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=467"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wildow.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=467"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}