Configure scripts

Prescripts and postscripts are scripts that can be run before or after Backup and restore jobs run, both at a job-level and before or after snapshots are captured. A script can consist of one or many commands, such as a shell script for Linux®-based virtual machines or Batch and PowerShell scripts for Windows™-based virtual machines.

Scripts can be created locally, uploaded to your environment through the Scripts pane, then applied to job definitions. In a Windows environment, if your application supports VSS, the backup job triggers the VSS application quiesce logic if the Make these VMs application/file system consistent option is enabled when creating the VMware backup job. However, for applications that don’t support VSS, or on Linux virtual machines, pre and post snapshot scripts can be used to quiesce your application for the snapshot backup.

Tip: If adding a script to a Windows-based File System job definition, the user running the script must have the "Log on as a service" right enabled, which is required for running prescripts and postscripts. For more information about the "Log on as a service" right, see Add the Log on as a service Right to an Account.