Scripts Settings

You can specify custom scripts that Veeam Backup & Replication will run before and after the backup job. These scripts apply to the backup job itself, not to the VM quiescence process. To run pre-freeze and post-thaw scripts for VM quiescence, use the Guest Processing step of the wizard. For details, see Pre-Freeze and Post-Thaw Scripts.

If you use a Linux-based backup server, you must upload the scripts to the backup server before you configure script settings. For details and script limitations, see section Scripts.

To specify script settings for the backup job, do the following:

  1. At the Storage step of the wizard, click Advanced job settings.
  2. Click the Scripts tab.
  3. Select the Run the following script before the job check box, the Run the following script after the job check box or both.
  4. For each selected check box, click Browse and select the executable file on the backup server. Veeam Backup & Replication will run the scripts on the backup server.
  5. Choose how often Veeam Backup & Replication will run the scripts. By default, the Run scripts every <N> backup session option is selected and N is set to 1, that is, Veeam Backup & Replication runs the scripts in every job session.
  • If you select the Run scripts every <N> backup session option, specify the number of job sessions after which Veeam Backup & Replication will run the scripts.
  • If you select the Run scripts on the selected days only option, click Configure and select the days of the week. Veeam Backup & Replication will run the scripts only once on each selected day, during the first job session on that day.

Veeam Backup & Replication runs the post-job script regardless of whether the job succeeds or fails. If the job fails, Veeam Backup & Replication will do either of the following:

  • If the job runs on schedule, Veeam Backup & Replication will run the post-job script after the last retry attempt.
  • If you start the job manually, Veeam Backup & Replication will run the post-job script after the first attempt because manually started jobs are not retried.

Note

To run the scripts, Veeam Backup & Replication uses the service account under which the Veeam Backup Service runs.

Scripts Settings

Page updated 2026-12-03

Page content applies to build 13.2.0.193