If you plan to back up VMs running applications that do not support VSS, you can instruct Veeam Backup & Replication to run custom pre-freeze and post-thaw scripts for these VMs. Pre-freeze scripts quiesce the VM file system and application data to bring the VM to a consistent state before Veeam Backup & Replication triggers a VM snapshot. After the VM snapshot is committed, post-thaw scripts bring the VM and applications to their initial state.
To run pre-freeze and post-thaw scripts, you must create them beforehand and specify paths to them in the job settings. When the job starts, Veeam Backup & Replication will upload these scripts to the VM guest OS and execute them. Scripts for Microsoft Windows VMs are uploaded over the network. Scripts for Linux VMs are uploaded over SSH.
A script is considered to be executed successfully if "0" is returned.
To specify pre-freeze and post-thaw scripts for the job:
|1.||At the Guest Processing step, click Applications.|
|2.||In the displayed list, select the necessary VM and click Edit.|
|4.||In the Scripting mode section, specify a scenario for scripts execution:|
|▪||Select Require successful script execution if you want Veeam Backup & Replication to stop the backup process if the script fails.|
|▪||Select Ignore script execution failures if you want to continue the backup process even if script errors occur. With this option selected, Veeam Backup & Replication will try to execute scripts even if VSS operations or snapshot creation fails. |
|▪||Select Disable script execution if you do not want to run scripts for the VM at all.|
|5.||In the Windows scripts section, specify paths to pre-freeze and post-thaw scripts for Microsoft Windows VMs. For Microsoft Windows VMs, Veeam Backup & Replication supports scripts in the BAT format.|
|6.||In the Linux scripts section, specify paths to pre-freeze and/or post-thaw scripts for Linux VMs. For Linux VMs, Veeam Backup & Replication supports scripts of the SH file type.|
If you have added to the job a VM container with Microsoft Windows and Linux VMs, you can select to execute both Microsoft Windows and Linux scripts for the VM container. When the job starts, Veeam Backup & Replication will automatically determine what OS type is installed on the VM and apply corresponding scripts to quiesce this VM.
Beside pre-freeze and post-thaw scripts for VM quiescence, you can instruct Veeam Backup & Replication to run custom scripts before the job starts and after the job completes. To learn more, see Advanced Settings.