Using pre-backup and post-backup scripts – Dell PowerVault DP600 User Manual
Page 141
141
Using Pre-Backup and Post-Backup Scripts
A pre-backup script is a script that resides on the protected computer, is executed before each
DPM backup job, and prepares the protected data source for backup.
A post-backup script is a script that runs after a DPM backup job to do any post-backup
processing, such as bringing a virtual machine back online.
When you install a protection agent on a computer, a ScriptingConfig.xml file is added to
the install path\Microsoft Data Protection Manager\DPM\Scripting folder on the protected
computer. For each protected data source on the computer, you can specify a pre-backup script
and a post-backup script in ScriptingConfig.xml.
When DPM runs a protection job, ScriptingConfig.xml on the protected computer is checked. If a
pre-backup script is specified, DPM runs the script and then completes the job. If a post-backup
script is specified, DPM completes the job and then runs the script.
Note
Protection jobs include replica creation, express full backup, synchronization, and
consistency check.
DPM runs the pre-backup and post-backup scripts by using the local system account. As a best
practice, you should ensure that the scripts have Read and Execute permissions for the
administrator and local system accounts only. This level of permissions helps to prevent
unauthorized users from modifying the scripts.
ScriptingConfig.xml
xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2003/dls/ScriptingConfig.xsd">
To specify pre-backup and post-backup scripts
1. On the protected computer, open the ScriptingConfig.xml file in an XML or text editor.
2. For each data source, complete the DatasourceScriptConfig element as follows:
a. For the DataSourceName attribute, enter the data source volume (for file data