Click or drag to resize
IVssBackupComponentsAddSnapshotToRecoverySet Method
Specifies the volumes to be included in a LUN resynchronization operation. This method is supported only on Windows server operating systems.

Namespace: Alphaleonis.Win32.Vss
Assembly: AlphaVSS.Common (in AlphaVSS.Common.dll) Version: (
void AddSnapshotToRecoverySet(
	Guid snapshotId,
	string destinationVolume


Type: SystemGuid
The identifier of the shadow copy that was returned by the AddToSnapshotSet(String, Guid) method during backup. This parameter is required and cannot be Guid.Empty.
Type: SystemString
This parameter is optional and can be . A value of means that the contents of the shadow copy volume are to be copied back to the original volume. VSS identifies the original volume by the VDS_LUN_INFO information in the Backup Components Document.
ArgumentExceptionOne of the parameter values is not valid.
UnauthorizedAccessExceptionThe caller does not have sufficient backup privileges or is not an administrator.
OutOfMemoryExceptionOut of memory or other system resources.
SystemExceptionUnexpected VSS system error. The error code is logged in the event log.
VssBadStateExceptionEither there is no hardware provider that supports the operation, or the requester did not successfully add any volumes to the recovery set.
VssLegacyProviderExceptionThis version of the hardware provider does not support this operation.
VssObjectNotFoundExceptionThe snapshotId parameter specifies a shadow copy that the hardware provider does not own.
VssResyncInProgressExceptionAnother LUN resynchronization operation is already in progress.
VssSnapshotNotInSetExceptionThe snapshotId parameter specifies a shadow copy that does not exist in the Backup Components Document.
VssVolumeNotSupportedExceptionLUN resynchronization is not supported on this volume, because it is a dynamic volume, because the destination disk does not have a unique page 83 storage identifier, because the specified volume does not reside on a LUN managed by a VSS hardware provider, or because the destination disk is a cluster quorum disk.

Note Note
Windows XP, Windows 2003, Windows Vista, Windows 2008, Windows 7: This method requires Windows Server 2008 R2.

See Also