New-VBRScriptProcessingOptions
Short Description
Creates pre-freeze and post-thaw scripts settings for Veeam Agent backup jobs.
Applies to
Product Edition: Community, Standard, Enterprise, Enterprise Plus, Veeam Universal License
Syntax
New-VBRScriptProcessingOptions -ProcessingAction <VBRGeneralProcessingAction> {DisableCompletely | IgnoreFailures | RequireSuccess} [-Credentials <CCredentials>] [-ScriptPrefreezeCommand <string>] [-ScriptPostthawCommand <string>] [-ScriptPreJobCommand <string>] [-ScriptPostJobCommand <string>] [<CommonParameters>] |
Detailed Description
This cmdlet creates the VBRScriptProcessingOptions object. This object contains pre-freeze and post-thaw scripts settings for the protected computer OS quiescence. You can use these scripts to create consistent backups of the protected computers that do not support Microsoft VSS.
For more information about custom scripts, see the Pre-Freeze and Post-Thaw Scripts section of the Veeam Agent Management Guide.
Parameters
Parameter | Description | Type | Required | Position | Accept Pipeline Input |
---|---|---|---|---|---|
ProcessingAction | Specifies script processing settings:
Note: The IgnoreFailures option does not work for Veeam Agent jobs that back up Linux computers. Use the RequireSuccess option to enable script execution for these types of jobs. | VBRGeneralProcessingAction | True | Named | False |
Credentials | Specifies the user account credentials with local administrator privileges on the VM guest OS. Veeam Backup & Replication will use these credentials to run pre-freeze and post-thaw scripts. By default, Veeam Agent for Microsoft Windows will use the credentials that you specified for the protection group. Note: this option works for Veeam Agent jobs that back up Windows computers only. | Accepts the CCredentials object. To get this object, run the Get-VBRCredentials cmdlet. | False | Named | False |
ScriptPrefreezeCommand | Specifies the path on your backup server to a local folder with the pre-freeze script. | String | False | Named | False |
ScriptPostthawCommand | Specifies the path on your backup server to a local folder with the post-thaw script. | String | False | Named | False |
ScriptPreJobCommand | Specifies a post-thaw script. | String | False | Named | False |
ScriptPostJobCommand | Specifies a post-freeze script. | String | False | Named | False |
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see Microsoft Docs.
Output Object
This cmdlet returns the VBRScriptProcessingOptions object that contains pre-freeze and post-thaw scripts settings for Veeam Agent backup jobs.
Examples
Example 1. Creating Script Processing Settings for Veeam Agent Backup Job (Linux)
This command creates script processing settings for a Veeam Agent job that backs up Linux computers. The job will run with the following options:
|
Example 2. Creating Script Processing Settings for Veeam Agent Backup Job (Windows)
This example shows how to create script processing settings for a Veeam Agent job that backs up Windows computers. The job will run with the following options:
Perform the following steps:
|
Related Commands