#ifdef WIN32_VSS
/* START VSS ON WIN 32 */
- if (g_pVSSClient) {
+ if (g_pVSSClient && enable_vss == 1) {
if (g_pVSSClient->InitializeForBackup()) {
/* tell vss which drives to snapshot */
char szWinDriveLetters[27];
#ifdef WIN32_VSS
/* STOP VSS ON WIN 32 */
/* tell vss to close the backup session */
- if (g_pVSSClient)
+ if (g_pVSSClient && enable_vss == 1)
g_pVSSClient->CloseBackup();
#endif
extern void d_msg(const char *file, int line, int level, const char *fmt,...);
extern DWORD g_platform_id;
+extern int enable_vss;
// from MicroSoft SDK (KES) is the diff between Jan 1 1601 and Jan 1 1970
#ifdef HAVE_MINGW
\\\\?\\GLOBALROOT\\Device\\HarddiskVolumeShadowCopy1\\bacula\\uninstall.exe
from c:\bacula\uninstall.exe
*/
- if (g_pVSSClient) {
+ if (g_pVSSClient && enable_vss == 1) {
POOLMEM* pszBuf = get_pool_memory (PM_FNAME);
pszBuf = check_pool_memory_size(pszBuf, dwSize);
bstrncpy (pszBuf, tname, strlen(tname)+1);