Exchange VSS Backup Copy?

Dec 12, 2011 at 9:47 PM

Using VSSADMIN I have found the Instance and Writer ID's for the Exchange 2003 Server VSS object. Two questions. Does anyone have any sample C# source for actually taking the backup? I'm assuming I need to wrap the COPYFILE function from the KERNEL32.DLL using PINVOKE, which I have done. I'm just having trouble working through some of the functionality in order to write the VSS backup to a local disk. Second question is that when I run VSSADMIN LIST WRITERS on the Exchange 2003 Server I see that this VSS object is almost constantly stuck in State [5]: Waiting for completion. Any way around this? I don't want to keep rebooting the server, and I know that no other backup software is currently holding up the works...

Dec 12, 2011 at 9:52 PM

Oops, I meant wrapping the COPYFILE function using DLLIMPORT (not PINVOKE), since this KERNEL32.DLL function is unmanaged code...