Simple Shadow Copy Creation for Backup
There are a number of different types of shadow copy a requester can create. However, for most backup applications, you would do the following:
- Call IVssBackupComponents::SetContext with a context of VSS_CTX_BACKUP.
- Call IVssBackupComponents::GatherWriterMetadata to initialize communication with writers.
- Call IVssBackupComponents::AddComponent to add file and database components to the backup.
- Call IVssBackupComponents::StartSnapshotSet to initialize the shadow copy mechanism.
- Call IVssBackupComponents::AddToSnapshotSet to include volumes in the shadow copy.
- Call IVssBackupComponents::PrepareForBackup to notify writers of backup operations.