none
DPM 2016 Pre-Backup Script failing to run

    Question

  • I'm trying to set up my DPM 2016 server to backup MySQL on Windows server 2012.  Rummaging through a few articles, I found some that suggesting using pre/post backup scripts on the protected server.  For now, I'm just using a test file, test.bat, that consists of:

    Echo Test >> D:\Tools\Test.txt

    Running the batch file provides the expected results of creating a text file named Test.txt with the contents "Test"

    I copied the scripting code from the microsoft website to create a ScriptingConfig.xml:

    <?xml version="1.0" encoding="utf-8"?>
    <ScriptConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
     xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
     xmlns="http://schemas.microsoft.com/2003/dls/ScriptingConfig.xsd">

    <DatasourceScriptConfig DataSourceName=D:\>
    <PreBackupScript>D:\Tools\Test.bat</PreBackupScript>
    <PostBackupScript></PostBackupScript>
    </DatasourceScriptConfig>

    </ScriptConfiguration>


    But I can't seem to get a backup job to run the batch file.  I get no errors.  So I turned on verbose logging and get the following:

    53A8 4EB8 07/09 16:12:50.801 03 ccreatesnapshotsubtask.cpp(1104) [00000000023D3470] 69C84B46-6F9B-4147-BCBF-924A7F86B0BE VERBOSE ==>Tasks::CCreateSnapshotSubTask::ExecutePreScript
    53A8 4EB8 07/09 16:12:50.801 00 cbackupworkitem.cpp(1325) 69C84B46-6F9B-4147-BCBF-924A7F86B0BE VERBOSE CAAWorkItem: GetDataSourceState [0000000002C15C00]
    53A8 4EB8 07/09 16:12:50.801 31 vadatasourcestate.cpp(511) [00000000024CC940] 69C84B46-6F9B-4147-BCBF-924A7F86B0BE VERBOSE ==>CVADataSourceState::GetDataSourceInfo
    53A8 4EB8 07/09 16:12:50.801 31 vadatasourcestate.cpp(511) [00000000024CC940] 69C84B46-6F9B-4147-BCBF-924A7F86B0BE VERBOSE <--CVADataSourceState::GetDataSourceInfo
    53A8 4EB8 07/09 16:12:50.801 31 vadatasourcestate.cpp(511) [00000000024CC940] 69C84B46-6F9B-4147-BCBF-924A7F86B0BE VERBOSE ==>CVADataSourceState::GetDataSourceInfo
    53A8 4EB8 07/09 16:12:50.801 31 vadatasourcestate.cpp(511) [00000000024CC940] 69C84B46-6F9B-4147-BCBF-924A7F86B0BE VERBOSE <--CVADataSourceState::GetDataSourceInfo
    53A8 4EB8 07/09 16:12:50.801 31 vadatasourcestate.cpp(511) [00000000024CC940] 69C84B46-6F9B-4147-BCBF-924A7F86B0BE VERBOSE ==>CVADataSourceState::GetDataSourceInfo
    53A8 4EB8 07/09 16:12:50.801 31 vadatasourcestate.cpp(511) [00000000024CC940] 69C84B46-6F9B-4147-BCBF-924A7F86B0BE VERBOSE <--CVADataSourceState::GetDataSourceInfo
    53A8 4EB8 07/09 16:12:50.801 31 vadatasourcestate.cpp(597) [00000000024CC940] 69C84B46-6F9B-4147-BCBF-924A7F86B0BE VERBOSE ==>CVADataSourceState::GetVssBackupMode
    53A8 4EB8 07/09 16:12:50.801 31 vadatasourcestate.cpp(597) [00000000024CC940] 69C84B46-6F9B-4147-BCBF-924A7F86B0BE VERBOSE <--CVADataSourceState::GetVssBackupMode
    53A8 4EB8 07/09 16:12:50.801 31 vadatasourcestate.cpp(560) [00000000024CC940] 69C84B46-6F9B-4147-BCBF-924A7F86B0BE VERBOSE ==>CVADataSourceState::GetBackupType
    53A8 4EB8 07/09 16:12:50.801 31 vadatasourcestate.cpp(560) [00000000024CC940] 69C84B46-6F9B-4147-BCBF-924A7F86B0BE VERBOSE <--CVADataSourceState::GetBackupType
    53A8 4EB8 07/09 16:12:50.801 31 basewriterbackuphelper.cpp(86) [00000000034D12E0] 69C84B46-6F9B-4147-BCBF-924A7F86B0BE VERBOSE ==>CBaseWriterBackupHelper::Initialize
    53A8 4EB8 07/09 16:12:50.801 31 basewriterbackuphelper.cpp(86) [00000000034D12E0] 69C84B46-6F9B-4147-BCBF-924A7F86B0BE VERBOSE <--CBaseWriterBackupHelper::Initialize
    53A8 4EB8 07/09 16:12:50.801 31 vadatasourcestate.cpp(644) [00000000024CC940] 69C84B46-6F9B-4147-BCBF-924A7F86B0BE VERBOSE ==>CVADataSourceState::GetOperationType
    53A8 4EB8 07/09 16:12:50.801 31 vadatasourcestate.cpp(644) [00000000024CC940] 69C84B46-6F9B-4147-BCBF-924A7F86B0BE VERBOSE <--CVADataSourceState::GetOperationType
    53A8 4EB8 07/09 16:12:50.801 31 basewriterbackuphelper.cpp(134) [00000000034D12E0] 69C84B46-6F9B-4147-BCBF-924A7F86B0BE NORMAL SetOperationType(1)
    53A8 4EB8 07/09 16:12:50.801 31 vadatasourcestate.cpp(511) [00000000024CC940] 69C84B46-6F9B-4147-BCBF-924A7F86B0BE VERBOSE ==>CVADataSourceState::GetDataSourceInfo
    53A8 4EB8 07/09 16:12:50.801 31 vadatasourcestate.cpp(511) [00000000024CC940] 69C84B46-6F9B-4147-BCBF-924A7F86B0BE VERBOSE <--CVADataSourceState::GetDataSourceInfo
    53A8 4EB8 07/09 16:12:50.801 31 vadatasourcestate.cpp(1473) [00000000024CC940] 69C84B46-6F9B-4147-BCBF-924A7F86B0BE VERBOSE ==>CVADataSourceState::LoadScriptConfig
    53A8 4EB8 07/09 16:12:50.801 31 vascriptinghelper.cpp(92) [00000000024CC9D0] 69C84B46-6F9B-4147-BCBF-924A7F86B0BE VERBOSE ==>CScriptingConfiguration::LoadConfiguration
    53A8 4EB8 07/09 16:12:50.801 05 xmlprocessingutils.cpp(1151) 69C84B46-6F9B-4147-BCBF-924A7F86B0BE VERBOSE ==>LoadXmlDocument
    53A8 4EB8 07/09 16:12:50.801 05 xmlprocessingutils.cpp(1151) 69C84B46-6F9B-4147-BCBF-924A7F86B0BE VERBOSE <--LoadXmlDocument
    53A8 4EB8 07/09 16:12:50.801 31 vascriptinghelper.cpp(195) [00000000024CC9D0] 69C84B46-6F9B-4147-BCBF-924A7F86B0BE VERBOSE Could not find script config for D:
    53A8 4EB8 07/09 16:12:50.801 31 vascriptinghelper.cpp(92) [00000000024CC9D0] 69C84B46-6F9B-4147-BCBF-924A7F86B0BE VERBOSE <--CScriptingConfiguration::LoadConfiguration
    53A8 4EB8 07/09 16:12:50.801 31 vadatasourcestate.cpp(1473) [00000000024CC940] 69C84B46-6F9B-4147-BCBF-924A7F86B0BE VERBOSE <--CVADataSourceState::LoadScriptConfig
    53A8 4EB8 07/09 16:12:50.801 31 vascriptinghelper.cpp(225) [00000000024CC9D0] 69C84B46-6F9B-4147-BCBF-924A7F86B0BE VERBOSE ==>CScriptingConfiguration::GetConfiguration
    53A8 4EB8 07/09 16:12:50.801 31 vascriptinghelper.cpp(225) [00000000024CC9D0] 69C84B46-6F9B-4147-BCBF-924A7F86B0BE VERBOSE <--CScriptingConfiguration::GetConfiguration
    53A8 4EB8 07/09 16:12:50.801 03 ccreatesnapshotsubtask.cpp(1149) [00000000023D3470] 69C84B46-6F9B-4147-BCBF-924A7F86B0BE VERBOSE No PreScript to execute

    Any ideas what I'm doing wrong?

    Thanks!

    Monday, July 9, 2018 4:20 PM