If you have a Unix app you want to perform pre/post tasks on while performing backup you can use this script. The only requirements are:
- Actifio Connector must be installed on the host
- App must be discovered
- The .sh file in this repo must be renamed to match the Appliance Application ID, so if the appid is 1566877, then the .sh file should be named appid.1566877.sh You can use the Appliance CLI command reportapps to display App IDs.
- The renamed .sh file should be in: /act/scripts
Effectively the order of events will be:
- Actifio requests the Connector to run the init tasks in /act/scripts/appid.xxx.sh
- Actifio requests the Connector to run the freeze tasks in /act/scripts/appid.xxx.sh
- Actifio requests the Connector to run the thaw tasks in /act/scripts/appid.xxx.sh
- Actifio requests the Connector to run the fini tasks in /act/scripts/appid.xxx.sh
The script needs simple error code checking to determine if the exit is 0 or 1.
The script is called appid.xxxx.sh by default. You must learn the Appliance Application ID of the app and then rename it. If the Appliance Application ID is 1566877 then the file name should be appid.1566877.sh You can use the Appliance CLI command reportapps to display App IDs.
Once the script is customized and named correctly place it in the following location:
/act/scripts
Make sure the .sh file is executable:
chmod 755 appid.xxxx.sh
Open a shell and run these commands:
/act/scripts/appid.1566877.sh init
/act/scripts/appid.1566877.sh freeze
/act/scripts/appid.1566877.sh thaw
/act/scripts/appid.1566877.sh fini
The script is written so when run manually, all output is echoed to the screen. When run by the Actifio Connector all output will be logged in the UDSAgent.log file that can be found in /var/act/log/UDSAgent.log This means if you are debugging events, use this log file.