From 24bbf3fccdc3d1bbb890769f958597ad318d3891 Mon Sep 17 00:00:00 2001 From: Thorsten Engel Date: Mon, 20 Jun 2005 12:25:42 +0000 Subject: [PATCH] added VSS toggling by enable_vss git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@2150 91ce42f0-d328-0410-95d8-f526ca767f89 --- bacula/src/filed/job.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bacula/src/filed/job.c b/bacula/src/filed/job.c index 4665fceebc..f17f9a2385 100644 --- a/bacula/src/filed/job.c +++ b/bacula/src/filed/job.c @@ -1205,7 +1205,7 @@ static int backup_cmd(JCR *jcr) #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]; @@ -1294,7 +1294,7 @@ cleanup: #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 -- 2.39.5