Backup Job Scripts

You can instruct Veeam Agent for Unix to run custom scripts within the backup job session.

Veeam Agent runs these scripts before the backup job starts and after the backup job completes. You can use pre-job and post-job scripts, for example, to quiesce an application for the time when the backup job session runs on the Veeam Agent computer.

You can specify backup job script settings at the Guest Processing step of the New Agent Backup Job wizard. To learn more, see Backup Job Scripts.

During the backup job session, Veeam Backup & Replication uploads the scripts to each Veeam Agent computer added to the backup job and executes them on these computers. The scripts run in the same way as in the standalone version of Veeam Agent. To learn more, see the following sections:

Considerations and Limitations

  • Scripts must be created before you configure the backup job. You must specify paths to them in the backup job settings.
  • Veeam Agent supports scripts in the .SH file format only.
  • Scripts must have UNIX line endings (LF).
  • Script settings are enabled at the backup job level. If you want to configure multiple backup jobs, you can specify individual scripts for each job.
  • If you use relative paths in your scripts, during script execution such paths will refer to the root directory. For example, the script may have an output that must be saved to a new file. If you specify a relative path to that file or only a file name, the file will be created in the root directory. To specify a different location for a file, use a full absolute path.

Page updated 9/9/2024

Page content applies to build 12.3.0.310