Hyper-V vss-writer没有制作最新的副本

我正在使用diskshadow在Windows 2008服务器上备份实时Hyper-V计算机。

备份包含3个脚本,第一个将创build卷影副本并将其公开,第二个使用robocopy将它们复制到远程位置,第三个脚本再次展示卷影副本。

第一个脚本 – 正确运行的脚本,但没有做到应有的function:

# DiskShadow script file to backup VM from a Hyper-V host # First, delete any shadow copies of the drives. System Drives needs to be included. Delete Shadows volume C: Delete Shadows volume D: Delete Shadows volume E: #Ensure that shadow copies will persist after DiskShadow has run set context persistent # make sure the path already exists set verbose on begin backup add volume D: alias VirtualDisk add volume C: alias SystemDrive # verify the "Microsoft Hyper-V VSS Writer" writer will be included in the snapshot # NOTE: The writer GUID is exclusive for this install/machine, must be changed on other machines! writer verify {66841cd4-6ded-4f4b-8f17-fd23f8ddc3de} create end backup # Backup is exposed as drive X: make sure your drive letter X is not in use Expose %VirtualDisk% X: Exit 

接下来只是一个robocopy ,然后是一个unexpose

现在,当我运行上面的脚本时,我从中得不到任何错误,除了“BITS”写入器已被排除,因为它没有包含任何组件。 没关系,因为我真的只需要Hyper-V编写器。 我也仔细检查了作者的GUID,这是正确的。

在Hyper-V写入器激活的时候,客户机器上会发生两件事情:

  1. Debian / Linux机器将进入保存状态,完成恢复后,一切正常。
  2. Windows客人将“创buildvss snapshop-sets”或类似的东西。

然后X:暴露,我可以复制.vhd文件。

问题是,出于某种原因,我得到的VHD文件似乎是旧的副本,他们错过了实际机器上的文件,用户和更新。

我也尝试手动将机器放在保存状态,没有改变结果。 我希望这里有人有一个如何解决这个问题的想法。

我看到这个问题已经很久没有回答,所以我会假设没有解决scheme或VSS代理有问题。

我会为您提供另一个解决scheme,而不是使用脚本,这可能只是帮助。 我的朋友们一直在告诉我这个专门用于从Windows备份Hyper-V访客计算机的免费工具,我build议你使用它,看看它是否让你更好的function,你现在正在使用。

http://www.veeam.com/virtual-machine-backup-solution-free.html?ad=menu

谢谢,