Microsoft Office Tutorials and References
In Depth Information
Running pre-backup and post-backup scripts in DPM
Running pre-backup and post-backup scripts
in DPM
On the DPM server there is a way to configure DPM to run scripts before and after
DPM backup jobs. This is handy if you need to do something either pre or post
backup such as starting or stopping a service or clearing an archive bit (which DPM
cannot do). To do this you need to place your script on the protected computers
local drive and change a DPM configuration file that is also located on the protected
computer. The script can be in PowerShell or VBS. The file that needs to be changed is
called ScriptingConig.xml and will be located here: %systemdrive%\Program Files\
Microsoft DPM\DPM\Scripting . DPM checks the ScriptingConfig.xml file before
and after running backup jobs. The ScriptingConfig.xml file will look like this:
<?xml version="1.0" encoding="utf-8"?>
<ScriptConfigurationxmlns: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">
</ScriptConfiguration>
You will need to add the following lines to the file:
DataSourceName : This property denotes the name of the protected data
source.
PreBackupScript : This script will run the pre-backup script. This is a script
that you have to specify in the ScriptingConfig.xml file.
Postbackupscript : This script will run the post-backup script. This is a
script that you have to specify in the ScriptingConfig.xml file.
TimeOut : This denotes how many minutes before the script should time out.
Once you have added the lines with the proper information the file will look
like this:
<?xml version="1.0" encoding="utf-8" ?>
<ScriptConfigurationxmlns: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">
<DatasourceScriptConfigDataSourceName="E:">
<PreBackupScript>"PATHTOVBSSCRIPTORCMDFILE"</PreBackupScript>
<PostBackupScript>"PATHTOVBSSCRIPTORCMDFILE"<PostBackupScript />
<TimeOut>30</TimeOut>
</DatasourceScriptConfig>
</ScriptConfiguration>
 
Search JabSto ::




Custom Search