VSSWriter issue of listing
Hi ,
I am writing sample vss writer for my backup application.
I am facing a problem , that my Sample writer is not listed when i give call to vssadmin list writers.
Can anybody help me how to register customized vss writer.
I am using Intialize method of VSSWriter class and subscribe method to do it.
Any help will be appriciable. :rolleyes:
thanks
harshal
Re: VSSWriter issue of listing
Hi Unidentified,
Thanks for reply ... but those links are not giving me any clue.
For more understanding , i m psoting my sample code
hr = ::CoInitializeEx(NULL, COINIT_MULTITHREADED);
hr = ::CoInitializeEx(NULL, COINIT_MULTITHREADED);
hr = CoInitializeSecurity(
NULL,
-1,
NULL,
NULL,
RPC_C_AUTHN_LEVEL_PKT_PRIVACY,
RPC_C_IMP_LEVEL_IDENTIFY,
NULL,
EOAC_NONE,
NULL
);
hr = CVssWriter::Initialize(TestWriterId,
TestWriterName,
(VSS_USAGE_TYPE)4,
VSS_ST_OTHER);
Can you give me any hint on this
Suggetions are welcome
Thanks
Re: VSSWriter issue of listing
Registry Backup and Restore Operations Under VSS
The Windows Registry Service supports a VSS writer, called the registry writer, which allows requesters to back up a system registry using data stored on a shadow copied volume. However, non-VSS Win32 APIs are required to restore a registry.
The registry writer performs in-place backups and restores of the registry. In addition, the registry writer reports only system hives; it does not report user hives.
Windows Server 2003 and Windows XP: The registry writer uses an intermediate repository file (also known as a spit file) to store registry data. In addition, the registry writer reports system hives and user hives.
The writer ID for the registry writer is AFBAB4A2-367D-4D15-A586-71DBB18F8485.
Registry Backup Using VSS
The registry writer will export and save active registry files in the locations defined by the key HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\hivelist.
The names of the values under this registry entry identify the registry hive to be saved, and the value's data provides the file containing the file (the hive file). The hive files are specified with the following format: \Device\HarddiskVolumeX\path\filename.
For example, under HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\hivelist, you might see \REGISTRY\MACHINE\SOFTWARE = \Device\HarddiskVolume1\Windows\System32\config\SOFTWARE.
The registry writer ensures that hive files are saved to disk prior to its shadow copy.
When backing up the registry hives, a requester would replace \Device\HarddiskVolumeX with the device object string of the volume's shadow copy.
Note You can convert the \Device\HarddiskVolumeX path to an equivalent Win32 path by using the QueryDosDevice function. For more information, see Obtaining a File Name From a File Handle or Displaying Volume Path Names.
For more follow this link: http://msdn.microsoft.com/en-us/libr...95(VS.85).aspx
Re: VSSWriter issue of listing
Hi ,
I was on leave. Unfortunatly none of the reply are helpful for me.
Please can anybody help me in this problem of VSS Writer.
Re: VSSWriter issue of listing
Are you referring the KB article which discuss com errors seen via event
viewer? i suppose you have to reboot everyday to ensure backups don't fail. There has to be another way of forcing these writers to reset without having to restart the server surely or at least be a fix?
Regards,