Backup Job and Snapshot Scripts

In this article

    You can specify custom scripts that will be executed within the backup job session on Linux computers. Veeam Agent for Linux supports the following types of scripts:

    • Backup job scripts  — pre-job and post-job scripts that run on the Veeam Agent computer before and after the backup job session.
    • Snapshot scripts — pre-freeze and post-thaw scripts that run on the Veeam Agent computer before and after the volume snapshot is created.

    To learn more, see Backup Job Scripts.

    Veeam Backup & Replication offers 2 scenarios for specifying script settings:

    You can specify both backup job scripts and snapshot scripts for the backup job if the following conditions are met:

    1. You selected the Server option at the Job Mode step of the wizard.
    2. You did not select the Backup directly from live file system option at the Backup Mode step of the wizard.

    In one of the following conditions, you can specify only backup job scripts that will be executed on Linux computers:

    • If you selected the Server option at the Job Mode step of the wizard and selected the Backup directly from live file system option at the Backup Mode step of the wizard.
    • If you selected the Workstation option at the Job Mode step of the wizard.

    Backup Job and Snapshot Scripts TIP

    You can also specify custom scripts that will be executed on the backup server before and/or after the backup job session. To learn more, see Script Settings.

    Specifying Backup Job and Snapshot Scripts

    To specify custom scripts for the job:

    1. At the Guest Processing step, select the Enable application-aware processing check box.
    2. Click Applications.
    3. In the displayed list, select a protection group or individual computer and click Edit.

    To define custom settings for a computer added as a part of a protection group, you must include the computer to the list as a standalone object. To do this, click Add and choose the computer whose settings you want to customize. Then select the computer in the list and define the necessary settings.

    1. [For an entire computer backup or volume-level backup job] In the Processing Settings window, click the Scripts tab.

    Backup Job and Snapshot Scripts NOTE

    For a file-level backup job, application-aware processing and database processing options are not available, and no tabs are displayed in the Processing Settings window.

    1. Select the Enable script execution check box.
    2. In the Job scripts section, specify custom scripts that you want to execute before and/or after the backup job session. To do this, in the Pre-job script and Post-job script fields, click Browse and choose executable files from a local folder on the backup server.
    3. In the Snapshot scripts section, specify custom scripts that you want to execute before Veeam Agent for Linux creates a snapshot of the backed-up volume and/or after the snapshot is created. To do this, in the Pre-freeze script and Post-thaw script fields, click Browse and choose executable files from a local folder on the backup server.

    Veeam Agent for Linux supports scripts in the SH file format. During the backup job session, Veeam Backup & Replication will upload the scripts to the /var/lib/veeam/scripts directory on each Veeam Agent computer added to the backup job and execute them on these computers.

    Backup Job and Snapshot Scripts 

    Specifying Backup Job Scripts

    To specify custom scripts for the job:

    1. At the Guest Processing step, select the Enable application-aware processing check box.
    2. Click Applications.
    3. In the displayed list, select a protection group or individual computer and click Edit.

    To define custom settings for a computer added as a part of a protection group, you must include the computer to the list as a standalone object. To do this, click Add and choose the computer whose settings you want to customize. Then select the computer in the list and define the necessary settings.

    1. In the Processing Settings window, select the Enable script execution check box.
    2. In the Pre-job script and Post-job script fields, click Browse to choose executable files from a local folder on the backup server.

    Veeam Agent for Linux supports scripts in the SH file format. During the backup job session, Veeam Backup & Replication will upload the scripts to the /var/lib/veeam/scripts directory on each Veeam Agent computer added to the job and execute them on these computers.

    Backup Job and Snapshot Scripts