Scott Hanselman

Windows Home Server Unsupported Feature - Backup Duplication

January 14, 2008 Comment on this post [12] Posted in Home Server | Musings | Tools
Sponsored By

image My wife's laptop died last week and I just successfully restored it from a backup using the Windows Home Server bootable CD. It's so simple it's creepy. I just bought a new harddrive, booted off a CD, and selected a day from over a week's backups and restored. Twenty minutes later I've got her machine back up with a larger hard drive.

As I was poking around my WHS I noticed how much hard drive space was being used on my Storage Tab. I've got four machines backed up, and about 260gigs is used.

Now, "Duplication" (the WHS software-RAID-like feature) isn't turned on by default for backups in Windows Home Server. All my files are duplicated in all my shared, but since a backup is already a duplication of the original, and since you can store multiple days of backups (I have 7 days, so a week's worth of  backups over four machines) there's really no reason to duplicate the backup again.

That said, you can go to this totally unsupported and may well go away in the future no warranty express or implied you're on your own don't ask for support from anyone it's your butt not mine Registry key from Regedit:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows Home Server\Storage Manager\Folders

From a list of GUIDs, find the one that has the FriendlyName of "Windows Home Server Computer Backup." Under that key there is an "Attributes" sub-key. Create a DWORD value "Reliable" = 1.

(If these instructions are too technical or don't make sense, you might want to reconsider heading down this path, or you can find a nerd to do this. I don't want to make this too easy because if you do this unsupported thing, I'd hate to have your house burst into flames because if it.)

Setting this value does one simple thing, it turns on duplication of the backups database.

Disclaimer:

  • This value isn't referenced or mentioned in the WHS SDK, so it's officially unsupported right now.
  • It might go away some day.
  • I don't work for the WHS team, so you probably shouldn't listen to me but rather to them.

You might freak out and ask yourself, "why wasn't this turned on by default?" Well, there are some pretty good reasons actually. There can be a significant performance impact. From a team member:

"Whenever you change the contents of a duplicated file, after you close the file, the migrator copies the entire contents of the file to the second disk. The nature of backup is that it frequently makes small changes to large files, meaning that the migrator may end up doing far more work than the backup process does."

That makes sense. If I'm running nightly backups of four machines I could easily see the migrator (the service that makes duplicates) running all night long on my machine. But, I'm also paranoid about losing data so I think this key is for me. It may not be for you, but it's nice to know it's there.

About Scott

Scott Hanselman is a former professor, former Chief Architect in finance, now speaker, consultant, father, diabetic, and Microsoft employee. He is a failed stand-up comic, a cornrower, and a book author.

facebook twitter subscribe
About   Newsletter
Hosting By
Hosted in an Azure App Service
January 15, 2008 0:26
Sounds great! You mention that it took 20 minutes to restore onto the new drive. How large was the backup you were using? You said 260 gigs for the 4 computers do you know how large the one you backed up from was?

Also I am just wondering since you mention it is a laptop that it might have just been because of a small drive or perhaps the configuration you have there which facilitated this pretty reasonable speed. Wondering how long it might take to perform a backup with a large drive.
January 15, 2008 0:31
So does that mean that your PC Backups went from 260 GB to 520?
January 15, 2008 0:35
Scott, this hack will become unnecessary in a few months when the WHS PowerPack 1 is released. It will allow you to back up your backup database directly to a drive you designate (typically external USB) so you can just do this once a week and be fully covered without the perf hit.
January 15, 2008 0:36
I don't think so, Eric, in image above it shows duplication as taking 119 GB.
January 15, 2008 0:46
Ed - Valid point. I'm running PP1 and backing that up, but I wasn't sure what was NDA and wat wasn't.

Brendan - It was a 60 gig backup size to a fresh 100 gig drive over a 1Gbps network.
January 15, 2008 1:19
Interesting hack, I wonder if I could use it to help with an issue I'm running into.

I've setup a subversion repository on my WHS and it's root folder is a share, one of the folders in the big disk cloud. Because I'm paranoid about losing my repository I set it for duplication but it seems like it fails now and then and I'm pretty sure it's because of how the file structure is used to handle the repository. Lots and lots of little writes all over the place and I think that confuses the migrator. Plus it doesn't help that when it fails I can't seem to find any way to find the real error details. If I can just get my repository duplicated I'd feel *a lot* better.
January 15, 2008 1:19
Scott, what about the WHS corruption issue? I thought one of the triggering factors was setting shares to duplicate? As far as I can tell backups are not currently at risk, but would setting the reg to duplicate them cause them to be at risk? Love me some HP ex470 mediasmart server, not loving the potential corruption issue.
January 15, 2008 1:27
Scott, Sorry... I added a link to the WHS blog that talks about the corruption issue and I must be comment illiterate because it titled the link with my name, this was not what I meant to do.
January 15, 2008 4:33
So how much of the hardware can change while still allowing you to do an image restore like this? If her laptop was stolen, could you restore the backup onto a different laptop all together?
January 15, 2008 4:36
Mike - I'm totally not worried about that issue, as it's a total edge case and they'll have a patch out within a few weeks I'm sure.

Lance - You can restore anything to anything as long as the hard drive is larger. What Windows chooses to do with that change is not WHS's issue, but Windows. Worst case scenario you'd have to reactivate Windows over the phone, AFAIK.
January 15, 2008 18:54
Hmm. I always thought that if you changed your motherboard, you'd have to reinstall windows to get it to boot, so I always did. It's been a while since I've tried, so maybe I should next time.
January 15, 2008 23:02
Anyone wanting to restore their "Windows" operating system, must realize how Microsoft ties the operating system to a physical device, thus no portable device is legally allowed accordingly via Microsoft policies.

Example, despite Linux being able to run on external media, like CD, DVD, Blue-ray, USB, eSATA and the sort, Windows isn't. Don't forget, Windows also requires them hardware drivers, and it does create a record of this during install, which prevents you from wanting to copy "Windows" to yet another different computer...

none of this should surprise anyone... knowing how Microsoft functions... all that Antipiracy code, activation, validation, WGA and so forth is designed to prevent you from doing this...

But you can use Acronis to restore your Windows operating system to any new different hardware computer, just as long as you acquire the hardware drivers to install. WHS doesn't allow this, so you must hope nobody needs to replace their computer, and God forbid all your backup images are lost by WHS due to data corruption, theft or hard drive failure...



Tex

Comments are closed.

Disclaimer: The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.