Is it possible to use the Pre and Post command options to run a script on a remote UNIX / LINUX server?
Yes, Backup Exec Remote Agent for Linux/Unix Systems (RALUS) supports execution of Pre and Post commands.
Note: Care must be taken as the command is likely to run as user ; root
The executable must be on the Linux server and the absolute path name to the executable must be in the Pre (Post) Command value field.
In order to test how it works, create a simple script:
1. Create the test script called /myScript
date > /date.txt
2. Provide execute permission to the script:
# chmod 774 /myScript
3. In the Pre Command field, enter: /myScript
4. Run the backup job.
5. Check to see if the script ran as intended:
# cat /date.txt
Once confirmed that this mechanism works, reconfigure the job to run the desired script.
Note: Post confirmation and reconfiguration, if the desired script fails to run, this may not be due to Backup Exec. Double check the script to ensure there are no errors in it.