Click or drag to resize
VssRestoreMethod Enumeration
This enumeration is used by a writer at backup time to specify through its Writer Metadata Document the default file restore method to be used with all the files in all the components it manages.

Namespace: Alphaleonis.Win32.Vss
Assembly: AlphaVSS.Common (in AlphaVSS.Common.dll) Version: 1.3.0.0 (1.3.0.0)
Syntax
public enum VssRestoreMethod
Members
  Member nameValueDescription
Undefined0

No restore method is defined.

This indicates an error on the part of the writer.

RestoreIfNotThere1 A requester will restore files of a selected component or component set only if there are no versions of those files currently on the disk.
RestoreIfCanReplace2 A requester will restore files of a selected component or component set only if there are no versions of those files currently on the disk that cannot be overwritten.
StopRestoreStart3 This value is used by a writer to indicates that a given service must be stopped prior to the start of the restore. After the restore operation, the service will be restarted.
RestoreToAlternateLocation4 A requester must restore the files of a selected component or component set to the location specified by the alternate location mapping specified in the writer component metadata file.
RestoreAtReboot5 A requester will restore the files of a selected component or component set following a reboot of the system.

Files to be restored should be copied to a temporary location, and the requester should use File.Move with the DelayUntilReboot flag to complete the restoration of these files to their proper location following reboot. (Using AlphaFS for file operations).

RestoreAtRebootIfCannotReplace6 If possible, a requester will restore the files of a selected component or component set to their correct location immediately.
Custom7 This value indicates that a custom restore method will be used to restore the files managed by the selected component or component set.
RestoreStopStart8 The requester should perform the restore operation as follows:
  1. Send the PreRestore event and wait for all writers to process it.
  2. Restore the files to their original locations.
  3. Send the PostRestore event and wait for all writers to process it.
  4. Stop the service.
  5. Restart the service.

The service to be stopped is specified by the writer beforehand when it calls the IVssCreateWriterMetadata::SetRestoreMethod method. The requester can obtain the name of the service by examining the RestoreMethod property.

See Also