![]() |
| Retrospect administrators can use Retrospect’s external scripting to hook into Retrospect’s events. These hooks can be used to integrate with monitoring systems, quiesce databases and other services before a backup starts or alert the administrator to unusual error conditions. Script hooks can also be used as web hooks, triggering events on services such as Slack or IFTTT. Retrospect triggers these events by calling a file named "RetroEventHandler". This file can be any script type known to the operating system (As examples for Windows, BAT or VBScript. For Mac, bash or ruby). They can even be compiled programs. For each event, Retrospect sends the name of the event followed by information specific for the event. Retrospect looks in the following locations:
Note that you do not need to restart the application for Retrospect to recognize the script hooks file.
Events Retrospect has fifteen events that can be handled by scripts. Retrospect client software has two of these events. Below are the event names and descriptions of when they are triggered.
Example scripts email notifier Windows specific batch file to illustrate emailing each event. (Old) ifttt Mac (Bash) and Windows (VBScript) example scripts that trigger an IFTTT Maker event lotus_domino Older Windows example script for quiescing a Lotus Domino server before backup and restarting it after the backup is complete. (Old) quitexchange_bat Example for pausing Microsoft’s Exchange server before backup and restarting it after backup is complete. quitoutlook vb Visual Basic application that would quit Microsoft Outlook before backup and restarting it after backup is complete. (Old) quitoutlook vbs Visual Basic script that would quit Microsoft Outlook before backup and restarting it after backup is complete. (Old) sample bat Windows Batch Script example. This triggers a dialog for each event. sample vb Visual Basic application example. sample vbs Visual Basic script example. As above, it triggers a dialog for each event. sample_c Windows command line application example. As above, it triggers a dialog for each event. sample_rb Event handler written in the Ruby language. This logs each event to a file. sample_sh Event handler written in the bash script language. This logs each event to a file. slack Mac (Bash) and Windows (VBScript) example scripts that send a Slack message. vcb Windows batch file to quiesce VMware VCB servers. (Old) ask Displays a dialog controlservices Starts or stops a Windows service mailsndr Command-line interface for sending email via smtp. |


