Is it possible to use the Pre and Post command options to run a script on a remote UNIX / LINUX server?

Article:TECH19151  |  Created: 2002-01-22  |  Updated: 2011-12-26  |  Article URL http://www.symantec.com/docs/TECH19151
Article Type
Technical Solution

Product(s)

Issue



Is it possible to use the Pre and Post command options to run a script on a remote UNIX / LINUX server?


Solution



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
#!sh   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.

 



Legacy ID



245844


Article URL http://www.symantec.com/docs/TECH19151


Terms of use for this information are found in Legal Notices