Set-VBRMSSQLProcessingOptions
Short Description
Modifies the Microsoft SQL Server database processing settings for application backup policies.
Product Edition: Standard, Enterprise, Enterprise Plus, Veeam Universal License
Syntax
|
Set-VBRMSSQLProcessingOptions -Options <VBRMSSQLProcessingOptions> [-EnableLogBackup] [-LogBackupPeriod <Int32>] [-EnableCopyOnlyBackup] [<CommonParameters>] |
Detailed Description
This cmdlet applies to application backup policies for Veeam Plug-In for Microsoft SQL Server.
Use this cmdlet to modify Microsoft SQL Server database processing settings. You can modify the following options:
- Enable or disable transaction log backup.
- Modify the period for transaction log backups.
- Enable or disable the copy-only backup without interrupting the backup chain.
Parameters
|
Parameter |
Description |
Type |
Required |
Position |
Accept Pipeline Input |
|---|---|---|---|---|---|
|
EnableCopyOnlyBackup |
Enables copy-only mode for backups. Using this parameter can prevent backup chain disruptions. |
|
False |
Named |
False |
|
EnableLogBackup |
Enables Microsoft SQL Server log backups when creating SQL processing options objects for application backup policies. |
|
False |
Named |
False |
|
LogBackupPeriod |
Modifies the integer defining the frequency for logs backup in minutes.
Permitted values: |
|
False |
Named |
False |
|
Options |
Specifies the database processing options that you plan to modify.
Accepts the |
|
True |
Named |
True (ByValue) |
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see Microsoft Docs.
Examples
Modify SQL Processing Options for Veeam Plug-In for Microsoft SQL Server Application Backup Policies
This example shows how to modify existing Microsoft SQL Server processing options for application backup policies for Veeam Plug-In for Microsoft SQL Server.
|
$sqloptions = New-VBRMSSQLProcessingOptions -EnableLogBackup -LogBackupPeriod 30 -EnableCopyOnlyBackup Set-VBRMSSQLProcessingOptions -Options $sqloptions |
Perform the following steps:
- Run the
New-VBRMSSQLProcessingOptionsCreates the Microsoft SQL Server database log backup settings for application backup policies. cmdlet. Specify the following settings:- Provide the
EnableLogBackupparameter. - Specify the
LogBackupPeriodparameter with the number of minutes. - Provide the
EnableCopyOnlyBackupparameter. - Save the result to the
$sqloptionsvariable.
- Provide the
- Run the
Set-VBRMSSQLProcessingOptionscmdlet. Specify theOptionsparameter with the$sqloptionsvariable.