Using Scripts with Policies

Newly added in PowerProtect Data Manager 19.16 is the ability to add pre- and post-scripts to a number of different policy types.

One aspect I really like about the nature of Data Manager pre- and post-scripts is that they’re maintained on the Data Manager server, putting them in a centralised location for greater security and easier management.

Let’s have a look at how they’re configured, using a simple example of someone wanting an email when the backup starts for each asset.

To do this, you’d start by going to Protection > Scripts and creating a new script. You can either upload a script if you’ve previously created it, or you can add it, using the built-in editor. Here’s an example below where the script is manually created in the editor:

PowerProtect Data Manager Script Editor
Creating a basic pre-script for use with Data Manager backups

Once the script has been added, it’ll be visible in the list of scripts stored on the system:

PowerProtect Data Manager interface showing a single script created under Protection > Scripts.
List of scripts stored on the Data Manager system

To get this script in a policy, go over to the Protection > Policies screen and edit the policy you need to add it to:

List of policies on a PowreProtect Data Manager server.
List of policies configured on a Data Manager server

In this case, I want to add my script to the “LinuxFSRoot” policy, used to backup the root filesystem of lab systems. Select the script and click the Edit button, then move forward to the Options > Pre/Post Script tab in the wizard where you can select the script, its purpose, and other details:

Selecting the script to use with a Data Manager Policy

When done, click through the remainder of the policy editor, then save the updated policy. Now you can run the policy and check out the script results. In this case, shortly after the policy started, I received this email from the system:

Email client showing an email was received indicating when the backup started and for what system.
Evolution email client showing pre-script email received

And there you go — adding scripts to your protection policies in Data Manager is simple and straight-forward. Using this functionality you can extend protection to all manner of other scenarios (e.g., running system updates after protection, initiating database exports for databases like PostgreSQL and MySQL prior to filesystem backup, etc.) — in fact, the sky is really the limit now!

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.