I am trying backup and restore of a MS SQL server through VSS. My backup operation is running fine and I store the backup metadata in XML file.
During restore operation I am providing the same XML I created during backup operation, what is happening is that restore is failing intermittently in PreRestore Stage returning VSS_E_OBJECT_NOT_FOUND. I have tried following things
- Checked that if my VSS service is running correctly at the time of restore.
- Checked Microsoft Shadow Copy provider is running during restore.
- Checked if network services are running fine during restore.
- Checked on different forum what this error could be related to but most of the suggestion are like trying reboot the system.
Following is the line where restore operation failed:
CHECK_COM(m_pVssObject->SetAdditionalRestores(myWriterId, VSS_CT_FILEGROUP, logicalPath, compName, true));
and this is the response it is returning.
INFO: VSS: ERROR: - Error text: VSS_E_OBJECT_NOT_FOUND