Set-VBRApplicationProcessingOptions
Short Description
Modifies application-aware processing settings for Veeam Agent backup jobs.
Product Edition: Community, Standard, Enterprise, Enterprise Plus, Veeam Universal License
Syntax
|
Set-VBRApplicationProcessingOptions -Options <VBRApplicationProcessingOptions> [-Enable]
[-GeneralTransactionLogAction <VBRGeneralTransactionLogAction>] [-IgnoreErrors]
[-SQLProcessingOptions <VBRSQLProcessingOptions>] [-SharePointCredentials <CCredentials>]
[-OracleProcessingOptions <VBROracleProcessingOptions>]
[-ScriptProcessingOptions <VBRScriptProcessingOptions>] [-MySQLProcessingOptions <VBRMySQLProcessingOptions>]
[-PostgreSQLProcessingOptions <VBRPostgreSQLProcessingOptions>] [<CommonParameters>] |
Detailed Description
This cmdlet modifies application-aware processing settings for Veeam Agent backup jobs.
Note |
|
To modify settings, specify new values for the necessary parameters. The cmdlet will overwrite the previous parameter values with new values. The parameters that you omit will remain unchanged. |
Parameters
Parameters
|
Parameter
|
Description
|
Type
|
Required
|
Position
|
Accept Pipeline Input
|
|
Enable
|
Enables application-aware processing. Veeam Backup & Replication will turn on the application-aware processing option for the selected protection group or a discovered computer.
Note: For Veeam Agent jobs that back up Linux computers, this parameter will also stop the backup process if any error occurs during application-aware processing.
|
SwitchParameter
|
False
|
Named
|
False
|
|
GeneralTransactionLogAction
|
Specifies transaction logs action:
Note:
-
This parameter is required for Veeam Agent backup jobs that back up Windows computers.
-
This parameter does not work for Veeam Agent backup jobs that back up Linux computers.
|
VBRGeneralTransactionLogAction
|
False
|
Named
|
False
|
|
IgnoreErrors
|
Defines that Veeam Backup & Replication will ignore application processing errors. In case an error occurs during application-aware processing, Veeam Backup & Replication will continue to run the backup job. The resulting backup will be crash-consistent.
Note: This parameter works for Veeam Agent jobs that back up Linux computers only. You must use the Enable parameter to set up processing options with the IgnoreErrors option.
|
SwitchParameter
|
False
|
Named
|
False
|
|
MySQLProcessingOptions
|
Specifies MySQL processing settings. Veeam Agent will apply these settings to a Veeam Agent backup job.
Accepts the VBRMySQLProcessingOptions object. To get this object, run the New-VBRMySQLProcessingOptionsDefines settings for processing backed-up MySQL databases on Linux computers. cmdlet.
|
VBRMySQLProcessingOptions
|
False
|
Named
|
False
|
|
Options
|
Specifies application processing settings that you want to modify.
Accepts the VBRApplicationProcessingOptions object. To get this object, run the New-VBRApplicationProcessingOptionsCreates application-aware processing settings for Veeam Agent backup jobs. cmdlet.
|
VBRApplicationProcessingOptions
|
True
|
Named
|
True (ByValue)
|
|
OracleProcessingOptions
|
Specifies Oracle processing settings.
Accepts the VBROracleProcessingOptions object. To get this object, run the New-VBROracleProcessingOptionsCreates settings for processing Oracle database archived logs. cmdlet.
|
VBROracleProcessingOptions
|
False
|
Named
|
False
|
|
PostgreSQLProcessingOptions
|
Specifies PostgreSQL processing settings. Veeam Agent will apply these settings to a Veeam Agent backup job.
Accepts the VBRPostgreSQLProcessingOptions object. To get this object, run the New-VBRPostgreSQLProcessingOptionsDefines settings for processing backed-up PostgreSQL databases on Linux computers. cmdlet.
|
VBRPostgreSQLProcessingOptions
|
False
|
Named
|
False
|
|
ScriptProcessingOptions
|
Specifies custom script settings. Veeam Agent will run pre-freeze and post-thaw scripts per these settings.
Accepts the VBRScriptProcessingOptions object. To get this object, run the New-VBRScriptProcessingOptionsCreates pre-freeze and post-thaw scripts settings for Veeam Agent backup jobs. cmdlet.
|
VBRScriptProcessingOptions
|
False
|
Named
|
False
|
|
SharePointCredentials
|
Specifies the credentials for the SharePoint user account that has enough permissions on the application. Veeam Agent for Microsoft Windows will use these credentials to connect to SharePoint and to back up the application.
|
CCredentials
|
False
|
Named
|
False
|
|
SQLProcessingOptions
|
Specifies SQL processing settings.
Accepts the VBRSQLProcessingOptions object. To get this object, run the New-VBRSQLProcessingOptionsDefines settings for processing Microsoft SQL database transaction logs. cmdlet.
|
VBRSQLProcessingOptions
|
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 VBRApplicationProcessingOptions object that contains application-aware processing settings for Veeam Agent backup jobs.
Examples
Example 1. Disabling Oracle and SQL Processing Settings for Veeam Agent Backup Job (Windows)
|
This example shows how to disable Oracle and SQL processing settings for a Veeam Agent job that backs up Windows computers.
|
$creds = Get-VBRCredentials -Name "UserName"
$sql = New-VBRSQLProcessingOptions -TransactionAction BackupPeriodically -LogBackupPeriod 15 -Credentials $creds
$script = New-VBRScriptProcessingOptions -ProcessingAction RequireSuccess -ScriptPrefreezeCommand "C:\scripts\pre-script.bat" -ScriptPostthawCommand "C:\scripts\post-script.bat"
$group = Get-VBRProtectionGroup -Name "WindowsGroup"
$processoptions = New-VBRApplicationProcessingOptions -BackupObject $group -OSPlatform Windows -Enable -GeneralTransactionLogAction ProcessLogsWithJob -SQLProcessingOptions $sql -SharePointCredentials $creds
$newoptions = Set-VBRApplicationProcessingOptions -Options $processoptions -Enable -GeneralTransactionLogAction PerformCopyOnly -SharePointCredentials $creds -ScriptProcessingOptions $script
$job = Get-VBRComputerBackupJob -Name "WindowsBackupJob"
Set-VBRComputerBackupJob -Job $job -ApplicationProcessingOptions $newoptions -EnableApplicationProcessing |
Perform the following steps:
- Run the
Get-VBRCredentialsReturns credentials records. cmdlet. Specify the Name parameter value. Save the result to the $creds variable.
- Run the
New-VBRSQLProcessingOptionsDefines settings for processing Microsoft SQL database transaction logs. cmdlet. Specify the TransactionAction and LogBackupPeriod parameter values. Set the $creds variable as the Credentials parameter value. Save the result to the $sql variable.
- Run the
New-VBRScriptProcessingOptionsCreates pre-freeze and post-thaw scripts settings for Veeam Agent backup jobs. cmdlet. Specify the ProcessingAction, ScriptPrefreezeCommand and ScriptPostthawCommand parameter values. Save the result to the $script variable.
- Run the
Get-VBRProtectionGroupReturns protection groups. cmdlet. Specify the Name parameter value. Save the result to the $group variable.
- Run the
New-VBRApplicationProcessingOptionsCreates application-aware processing settings for Veeam Agent backup jobs. cmdlet. Set the $group variable as the BackupObject parameter value. Specify the OSPlatform, GeneralTransactionLogAction, SQLProcessingOptions and SharePointCredentials parameter values. Provide the Enable parameter. Save the result to the $processoptions variable.
- Run the
Set-VBRApplicationProcessingOptions cmdlet. Specify the following settings:
- Set the
$processoptions variable as the Options parameter value.
- Provide the
Enable parameter.
- Set the
PerformCopyOnly option for the GeneralTransactionLogAction parameter.
- Set the
$creds variable as the SharePointCredentials parameter value.
- Set the
$script variable as the ScriptProcessingOptions parameter value.
- Save the result to the
$newoptions variable.
- Run the
Get-VBRComputerBackupJobReturns Veeam Agent backup jobs and Veeam Agent backup policies. cmdlet. Specify the Name parameter value. Save the result to the $job variable.
- Run the
Set-VBRComputerBackupJobModifies Veeam Agent backup jobs and Veeam Agent backup policies. cmdlet. Set the $job variable as the Job parameter value. Set the $newoptions variable as the ApplicationProcessingOptions parameter value. Provide the EnableApplicationProcessing parameter.
|
Example 2. Modifying Application-Aware Processing Settings for Veeam Agent Backup Job (Linux)
|
This example shows how to modify application-aware processing settings for a Veeam Agent backup job that backs up Linux computers. The job will run with the following options:
- Veeam Backup & Replication will run pre-freeze and post-thaw scripts to create a transactionally consistent backup.
- Veeam Backup & Replication will use a user account that has SYSDBA rights on the database to connect to the Oracle database.
- In case an error occurs, Veeam Backup & Replication will stop the backup job.
|
$script = New-VBRScriptProcessingOptions -ProcessingAction RequireSuccess -ScriptPrefreezeCommand "/scripts/pre.sh" -ScriptPostthawCommand "/scripts/post.sh"
$creds = Get-VBRCredentials -Name "UserName"
$oracle = New-VBROracleProcessingOptions -Credentials $creds
$group = Get-VBRProtectionGroup -Name "LinuxGroup"
$processoptions = New-VBRApplicationProcessingOptions -BackupObject $group -OSPlatform Linux -IgnoreErrors -OracleProcessingOptions $oracle -ScriptProcessingOptions $script
$newoptions = Set-VBRApplicationProcessingOptions -Options $processoptions -OracleProcessingOptions $oracle -ScriptProcessingOptions $script -Enable
$job = Get-VBRComputerBackupJob -Name "LinuxBackupJob"
Set-VBRComputerBackupJob -Job $job -ApplicationProcessingOptions $newoptions -EnableApplicationProcessing |
Perform the following steps:
- Run the
New-VBRScriptProcessingOptionsCreates pre-freeze and post-thaw scripts settings for Veeam Agent backup jobs. cmdlet. Specify the ProcessingAction, ScriptPrefreezeCommand and ScriptPostthawCommand parameter values. Save the result to the $script variable.
- Run the
Get-VBRCredentialsReturns credentials records. cmdlet. Specify the Name parameter value. Save the result to the $creds variable.
- Run the
New-VBROracleProcessingOptionsCreates settings for processing Oracle database archived logs. cmdlet. Set the $creds variable as the Credentials parameter value. Save the result to the $oracle variable.
- Run the
Get-VBRProtectionGroupReturns protection groups. cmdlet. Specify the Name parameter value. Save the result to the $group variable.
- Run the
New-VBRApplicationProcessingOptionsCreates application-aware processing settings for Veeam Agent backup jobs. cmdlet. Set the $group variable as the BackupObject parameter value. Specify the OSPlatform, OracleProcessingOptions and ScriptProcessingOptions parameter values. Provide the IgnoreErrors parameter. Save the result to the $processoptions variable.
- Run the
Set-VBRApplicationProcessingOptions cmdlet. Specify the following settings:
- Set the
$processoptions variable as the Options parameter value.
- Set the
$oracle variable as the OracleProcessingOptions parameter value.
- Set the
$script variable as the ScriptProcessingOptions parameter value.
- Provide the
Enable parameter.
- Save the result to the
$newoptions variable.
- Run the
Get-VBRComputerBackupJobReturns Veeam Agent backup jobs and Veeam Agent backup policies. cmdlet. Specify the Name parameter value. Save the result to the $job variable.
- Run the
Set-VBRComputerBackupJobModifies Veeam Agent backup jobs and Veeam Agent backup policies. cmdlet. Set the $job variable as the Job parameter value. Set the $newoptions variable as the ApplicationProcessingOptions parameter value. Provide the EnableApplicationProcessing parameter.
|
Related Commands