From: Thorsten Engel Date: Mon, 20 Jun 2005 12:25:42 +0000 (+0000) Subject: added VSS toggling by enable_vss X-Git-Tag: Release-7.0.0~8681 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=24bbf3fccdc3d1bbb890769f958597ad318d3891;p=bacula%2Fbacula added VSS toggling by enable_vss git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@2150 91ce42f0-d328-0410-95d8-f526ca767f89 --- 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