Subscribe to Windows IT Pro
March 18, 2008 12:00 AM

Q. How can I run pre- and post-backup scripts with Microsoft System Center Data Protection Manager (DPM) 2007?

Windows IT Pro
InstantDoc ID #98743
Rating: (2)
A. A. DPM 2007 can run a pre-synchronization-process script and a post-synchronization script.

In the following example, I run a pre-synchronization script to suspend any running VMs, and a post-synchronization script to resume VM operation. To enable the pre- and post-backup scripts, edit the ScriptingConfig.xml file found in the Program Files\Microsoft Data Protection Manager\DPM\Scripting protected server folder, and add a DatasourceScriptConfig entry for each data source that requires a pre- or post-backup script. DataSourceName is the volume for file data sources. The application data-source name form should be "Instance\Database" for Microsoft SQL Server and "Storage group name" for Microsoft Exchange. Don't use quotes with the script path and name; otherwise, the computer will read the XML code as malformed and it won’t function.

<?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:\Scripts\suspendallvirts.bat</PreBackupScript>
<PreBackupCommandLine />
<PostBackupScript>D:\Scripts\resumeallvirts.bat</PostBackupScript>
<PostBackupCommandLine />
<TimeOut>90 </DatasourceScriptConfig>
</ScriptConfiguration>

Related Content:

ARTICLE TOOLS

Comments
    There are no comments to display. Be the first one!
You must log on before posting a comment.

Are you a new visitor? Register Here

advertisement

advertisement

Windows is a trademark of the Microsoft group of companies. Windows IT Pro is used by Penton Media Inc. under license from owner.