Advanced Screenshot Verification - Script Validation

Follow

Scope

This article describes the Script Validation component of advanced screenshot verification. This feature is only available on Datto appliances running Ubuntu 16.04.

Use script verification with caution. Only deploy scripts in the virtual environment of your Datto appliance. Datto offers template scripts as examples only, and is unable to provide support for custom scripting or any unexpected behavior of your production environment as a result of the deployment of a custom script.

Overview

Datto appliances leverage a new screenshot verification engine. This new architecture is faster, more accurate, and less resource-intensive than the first generation of screenshot verification. It also includes the ability to perform additional validations during the screenshot process to further help in verifying backup integrity.

Description

Advanced Screenshot Verification introduces Script Validation, which allows the appliance to execute scripts upon screenshot verification. As an example, a SQL database could be checked to validate that a given table returns the correct number of rows, or an Exchange server could be checked to validate it can connect to Active Directory. Several example scripts are available for you to download from the Datto Downloads page; you can also develop your own scripts.

Procedure

You can configure backup verification scripting by navigating to the Protect → Configure Agent Settings → Verification → Backup Verification section of the Datto appliance GUI. Use the Upload Scripts button to add the scripts to the protected agent's profile, as shown in Figure 1. Upload the scripts in the order in which they need to run. The scripts will run during the agent's scheduled screenshot verification window.

uploadscripts.pngFigure 1: Upload scripts


There are three script verification templates available for download at http://download.datto.com/#scripts, which you can use to create your own scripts. They are:

  • Check Database: Validates that a designated table in a database returns a specified number of rows.
  • Check Web App: Validates that a web application is running, and returns the app homepage.
  • Check Service: Validates that a designated Windows service is available upon boot.
For Linux agents only: create the scripts in the Linux environment itself, or remove the CRLF characters from the script before implementing it. Otherwise, the characters will make the script fail to run.

After the verification script runs, and the screenshot completes, the Datto appliance will display the results of the verification in the Manage Recovery Points page of the device GUI, in the Backup Verification column. You will receive a "Verification Script Succeeded" or a "Verification Script Failed" message. Clicking the View Results button will provide more detail about the outcome of the script test.

results.pngFigure 2: Backup Verification results

Additional Resources


Was this article helpful?

0 out of 4 found this helpful

You must sign in before voting on this article.

Want to talk about it? Head on over to our Community Forum!