New-VBRScriptProcessingOptions
Short Description
Creates pre-freeze and post-thaw scripts settings for Veeam Agent backup jobs.
Product Edition: Community, Standard, Enterprise, Enterprise Plus, Veeam Universal License
Syntax
|
New-VBRScriptProcessingOptions [-Credentials <CCredentials>] -ProcessingAction <VBRGeneralProcessingAction> [-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 |
|---|---|---|---|---|---|
|
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. |
|
False |
Named |
False |
|
ProcessingAction |
Specifies script processing settings:
Note: The |
|
True |
Named |
False |
|
ScriptPostJobCommand |
Specifies a post-freeze script. |
|
False |
Named |
False |
|
ScriptPostthawCommand |
Specifies the path on your backup server to a local folder with the post-thaw script. |
|
False |
Named |
False |
|
ScriptPrefreezeCommand |
Specifies the path on your backup server to a local folder with the pre-freeze script. |
|
False |
Named |
False |
|
ScriptPreJobCommand |
Specifies a post-thaw script. |
|
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
Get-VBRCredentialsReturns credentials records.