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:

  • IgnoreFailures: use this option if you want to continue the backup process even if script errors occur.
  • RequireSuccess: use this option if you want Veeam Backup & Replication to stop the backup process if the scripts fail.
  • DisableCompletely: use this option if you do not want to run scripts.

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

New-VBRScriptProcessingOptionsExample 1. Creating Script Processing Settings for Veeam Agent Backup Job (Linux)

New-VBRScriptProcessingOptionsExample 2. Creating Script Processing Settings for Veeam Agent Backup Job (Windows)

Related Commands

Get-VBRCredentials

Page updated 5/15/2024

Page content applies to build 12.3.1.1139