none
Can't get Prebackup-script to work RRS feed

  • Question

  • Im trying reference a CMD-file withing ScriptingConfig.xml on my protected member, but I just get

    "The configuration of the pre-backup script or the post-backup script XML for Volume E:\ is incorrect. (ID 30193 Details: Internal error code: 0x809909F4)"

     when I kick any protectionjobs.

    I only found one match on this on technet, where Mike told the guy to include the datasourcename attribute.

    I can run the cmd manually as System through psexec, so there has to be a pure markup-error, but I just cant get what it is.

    the content of ScriptingConfig.xml is

    <?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="E:">
         <PreBackupScript>”C:\Program Files\Microsoft Data Protection Manager\DPM\Scripting\CopyDBfiles.cmd”</PreBackupScript>
         <TimeOut>40</TimeOut>
       </DatasourceScriptConfig>
    </ScriptConfiguration>
    

    Any ideas?

     


    Ivarson

    Thursday, January 29, 2015 11:32 PM

Answers

  • Hi,

    Don't use quotes with the script path and name; otherwise the XML code will be read as malformed and it won't function.

    To test real fast, copy the copydbfiles.cmd to c: and change the script to:

      <PreBackupScript>C:\CopyDBfiles.cmd</PreBackupScript>


    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. Regards, Mike J. [MSFT] This posting is provided "AS IS" with no warranties, and confers no rights.

    Saturday, January 31, 2015 2:41 PM
    Moderator

All replies

  • Hi,

    Don't use quotes with the script path and name; otherwise the XML code will be read as malformed and it won't function.

    To test real fast, copy the copydbfiles.cmd to c: and change the script to:

      <PreBackupScript>C:\CopyDBfiles.cmd</PreBackupScript>


    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. Regards, Mike J. [MSFT] This posting is provided "AS IS" with no warranties, and confers no rights.

    Saturday, January 31, 2015 2:41 PM
    Moderator
  • Was that all there was to it?

    Could you still add a path with blanks; such as Program Files without qutes?

    I ended up with an independent scheduled task, but this is still relevant.

    so thanks.


    Ivarson

    Wednesday, February 4, 2015 10:58 PM
  • Hi,

    Yes, you should be able to use paths with spaces without using quotes.  Did you do the quick test to be sure that worked ? 


    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. Regards, Mike J. [MSFT] This posting is provided "AS IS" with no warranties, and confers no rights.

    Wednesday, February 4, 2015 11:19 PM
    Moderator
  • No. I'll take your Word for it,

    I solved my particular situation with a scheduled robocopy.

    Maybe the TechNet article regarding this should reflect this, or at least not include quotes in the path-section of ScriptingConfig.xml..

    https://technet.microsoft.com/en-us/library/jj244602.aspx

    O.T thanks also for your input in our Adviosry-case


    Ivarson

    Thursday, February 5, 2015 12:50 AM