Set-VBRSQLProcessingOptions
Short Description
Modifies settings for processing Microsoft SQL database transaction logs.
Product Edition: Community, Standard, Enterprise, Enterprise Plus, Veeam Universal License
Syntax
|
Set-VBRSQLProcessingOptions -Options <VBRSQLProcessingOptions> [-Credentials <CCredentials>] [-TransactionAction <VBRSQLTransactionLogAction>] [-LogBackupPeriod <Int32>] [-LogRetainAction <VBRLogRetainAction>] [-LogRetainPeriod <Int32>] [-UseSqlAuthentication] [<CommonParameters>] |
Detailed Description
This cmdlet modifies Microsoft SQL database transaction logs 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
|
Parameter |
Description |
Type |
Required |
Position |
Accept Pipeline Input |
|---|---|---|---|---|---|
|
Credentials |
Specifies the credentials that Veeam Agent for Microsoft Windows will use to connect to the Microsoft SQL Server. |
|
False |
Named |
False |
|
LogBackupPeriod |
For the Specifies the number of minutes for transaction logs backups. |
|
False |
Named |
False |
|
LogRetainAction |
For the Specifies retention policy for transaction logs stored in the backup location.
|
|
False |
Named |
False |
|
LogRetainPeriod |
For the Specifies the number of days to keep the transaction logs. |
|
False |
Named |
False |
|
Options |
Specifies SQL transaction logs processing settings that you want to modify.
Accepts the |
|
True |
Named |
True (ByValue) |
|
TransactionAction |
Specifies transaction logs processing.
|
|
False |
Named |
False |
|
UseSqlAuthentication |
Defines that Veeam Agent for Microsoft Windows will use SQL Server authentication to connect to the Microsoft SQL Server. If you specify this parameter, use the Credentials parameter to provide the account credentials. |
|
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 VBRSQLProcessingOptions object that contains settings for processing Microsoft SQL database transaction logs.
Examples
Modifying SQL Processing Settings for Veeam Agent Backup Job (Windows)
This example shows how to modify the existing SQL processing settings for a Veeam Agent job that backs up Windows computers. The job will run with the following options:
- Veeam Backup & Replication will back up the transaction logs every 30 minutes.
- Veeam Backup & Replication will keep the transaction logs backups until the image-level backup is deleted.
|
$sql = New-VBRSQLProcessingOptions -TransactionAction BackupPeriodically -LogBackupPeriod 25 -LogRetainAction KeepOnlyLastDays -LogRetainPeriod 7 Set-VBRSQLProcessingOptions -Options $sql -TransactionAction BackupPeriodically -LogBackupPeriod 30 -LogRetainAction WaitForBackupDeletion |
Perform the following steps:
- Run the
New-VBRSQLProcessingOptionsDefines settings for processing Microsoft SQL database transaction logs. cmdlet. Specify theTransactionAction,LogBackupPeriod,LogRetainActionandLogRetainPeriodparameter values. Save the result to the$sqlvariable. - Run the
Set-VBRSQLProcessingOptionscmdlet. Specify the following settings:- Set the
$sqlvariable as theOptionsparameter value. - Set the
BackupPeriodicallyoption for theTransactionActionparameter. - Specify the
LogBackupPeriodparameter value. - Set the
WaitForBackupDeletionoption for theLogRetainActionparameter.
- Set the
Related Commands
New-VBRSQLProcessingOptionsDefines settings for processing Microsoft SQL database transaction logs.