Skip to content

Actifio/UnixGenericShFile

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Background

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:

  1. Actifio Connector must be installed on the host
  2. App must be discovered
  3. 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.
  4. The renamed .sh file should be in: /act/scripts

Effectively the order of events will be:

  1. Actifio requests the Connector to run the init tasks in /act/scripts/appid.xxx.sh
  2. Actifio requests the Connector to run the freeze tasks in /act/scripts/appid.xxx.sh
  3. Actifio requests the Connector to run the thaw tasks in /act/scripts/appid.xxx.sh
  4. Actifio requests the Connector to run the fini tasks in /act/scripts/appid.xxx.sh

Error handling

The script needs simple error code checking to determine if the exit is 0 or 1.

Renaming the script

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.

Installing the Script

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

Testing the Scripts

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

Event logging

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.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages