--- title: "Backup Job Scripts" description: "You can instruct Veeam Agent to run custom pre-job and post-job scripts within the backup job session. For example, you may want to use custom scripts to configure email notifications about jobs performed by Veeam Agent or to create a snapshot of..." canonical: "https://helpcenter.veeam.com/docs/agentforaix/userguide/backup_job_script.html" breadcrumb: "User Guide > Overview > Data Backup > Backup Job > Backup Job Scripts" dateModified: "2026-11-03" --- # Backup Job Scripts You can instruct Veeam Agent to run custom pre-job and post-job scripts within the backup job session. For example, you may want to use custom scripts to configure email notifications about jobs performed by Veeam Agent or to create a snapshot of the file system to ensure consistency of the backed-up data. Consider the following about using backup job scripts: - Script settings are enabled at the job level: you can specify individual scripts for each job configured in Veeam Agent. - Scripts must be created beforehand. You must specify paths to them in the job settings. Veeam Agent supports scripts in the SH file format. - Veeam Agent executes the pre-job script directly before the backup job starts. After the backup job completes, Veeam Agent executes the post-job script. Veeam Agent starts the backup job regardless of the pre-job script result. If the pre-job script fails to execute, Veeam Agent will always start the backup job. Then, after the backup job completes, Veeam Agent will execute the post-job script. - The script is considered to be executed successfully if "0" is returned. - The default time period for script execution is 10 minutes. After this period expires, Veeam Agent stops executing the script and displays a warning message in the job session. If the script fails to execute before the timeout expires, Veeam Agent also displays a warning in the job session.