How to execute a script on a remote UNIX/LINUX server as part of Backup Job

book

Article ID: 100050816

calendar_today

Updated On:

Description

Description

Backup Exec Remote Agent for Linux/Unix(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 reside on the Linux server. The absolute path name to the executable must be in the Pre (Post) Command value field of Backup Job.
 

Test how it works, create a simple script:

1. Create the test script called  /myScript.sh from command prompt
# vi /myScript.sh

2. Fill myScript.sh with below content

#!/bin/sh
date > /date.txt

3. Provide execute permission to the script:
# chmod 774 /myScript.sh

4. In the Pre Command field of Backup Job, enter:  /myScript.sh

5. Run the backup job.

6.. Check to see if the script ran as intended:
# cat /date.txt

The above is a test script but user can use any other script ( depending on the need ) to run as part of Backup Job.

There could be instances where the script is failing to run so test it manually on the Linux system before adding it to the backup Job.

Issue/Introduction

How to execute a script on a remote UNIX/LINUX server as part of Backup Job