简体   繁体   English

需要Volume Shadow Copy API冻结Exchange Writer

[英]Need Volume Shadow Copy API to freeze Exchange Writers

I have implement my own application (probably using Volume Shadow Copy) for backing up the Exchange 2010 server. 我已经实现了自己的应用程序(可能使用了卷影复制)来备份Exchange 2010服务器。

I have found following schema: Backup Sequence Diagram 我发现以下架构: 备份序列图

But I cannot find any functions for directly freeze/thawn the Exchnage Writers. 但是我找不到直接冻结/淘汰Exchnage Writers的任何功能。

I did find only such functions that call "freeze" and "thawn" commands as part of snapshot creation (see following schema: Overview of Processing a Backup Under VSS ) 我确实发现只有这样的函数才能在快照创建过程中调用“冻结”和“ thawn”命令(请参见以下架构: 在VSS下处理备份的概述

Please help me to find any documentation about first schema, ie which API functions I can use to freeze and thaw Writers 请帮助我找到有关第一个架构的任何文档,即可以用来冻结和解冻Writer的API函数

Thanks 谢谢

There is a comprehensive example, in the form of VSHADOW.exe which is a sample VSS Requestor provided as part of the SDK. 有一个完整的示例,形式为VSHADOW.exe,它是作为SDK的一部分提供的示例VSS请求程序。

The license agreement includes this: 许可协议包括:

Sample Code. 示例代码。 You may modify, copy, and distribute the source and object code form of code marked as “sample.” 您可以修改,复制和分发标记为“样本”的代码的源代码和目标代码形式。

You may be able to adapt VSHADOW to do what you want, however the simplest way is to use VSHADOW.exe as is. 您可能可以使VSHADOW适应您的需要,但是最简单的方法是照原样使用VSHADOW.exe。

You can use VSHADOW to create the shadow copy, mount it on a symbolic link or drive letter, do whatever it was you wanted, then destroy the shadow copy volume and symlink. 您可以使用VSHADOW创建卷影副本,将其安装在符号链接或驱动器号上,执行所需的任何操作,然后销毁卷影副本卷和符号链接。

To be clear, you are not supposed to back up the frozen files during the freeze action, you are supposed to create a shadow copy of the frozen files, so they can be unfrozen quickly, and then back up the shadow copy. 需要明确的是,您不应在冻结操作期间备份已冻结的文件,而应创建已冻结文件的卷影副本,以便可以快速取消冻结它们,然后备份该卷影副本。

VSHADOW will freeze, create a shadow copy, unfreeze (taking only a few seconds in all), then mount the shadow copy on a drive letter, call an external program - your backup program, which can then back up the shadow copy of the exchange database - then delete the shadow copy. VSHADOW将冻结,创建卷影副本,解冻(总共仅花费几秒钟),然后将卷影副本安装在驱动器号上,调用外部程序-您的备份程序,该程序可以备份交换的卷影副本数据库-然后删除卷影副本。 The shadow copy will not change, and can be backed up without causing sharing conflicts. 卷影副本将不会更改,并且可以备份而不会引起共享冲突。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM