Using pre-backup and post-backup scripts – Dell PowerVault DP600 User Manual

Page 141

Advertising
background image

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

<?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="Data source">

<PreBackupScript>”Path\Script” </PreBackupScript>

<PreBackupCommandLine>parameters</PreBackupCommandLine>

<PostBackupScript>"Path\Script” </PostBackupScript >

<PostBackupCommandLine>parameters</PostBackupCommandLine>

<TimeOut>30</TimeOut>

</DatasourceScriptConfig>

</ScriptConfiguration>

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

Advertising