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:
Once the script has been added, it’ll be visible in the list of scripts stored on the 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:
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:
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:
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!
1 thought on “Using Scripts with Policies”