Microsoft SQL Server Transaction Log Settings
|
IMPORTANT |
|
If the Microsoft OLE DB Driver 19 is installed on the SQL server host, consider the following:
|
If you back up Microsoft SQL Server, you can specify how Veeam Agent for Microsoft Windows must process database transaction logs:
- At the Guest Processing step of the wizard, make sure that the Enable application-aware processing toggle is on.
- Click Customize.
- In the Customize Guest Processing Settings window, select the check box next to the protection group or individual computer and click Application Settings on the toolbar.
- In the Processing Settings window, on the General tab, make sure that Require successful processing is selected in the Applications section, and Process transaction logs with this job is selected in the VSS settings section.
- Open the SQL tab.
- Under Transaction log processing, to specify a user account that Veeam Agent will use to connect to the Microsoft SQL Server, from the Specify a Windows account with the sysadmin role on the SQL Server drop-down list, select a user account that has access permissions on the database. This account must be a Microsoft Windows user account or a Group Managed Service Account (gMSA) with roles and permissions as specified in section Permissions for Guest Processing.
Keep in mind that you cannot use Microsoft SQL Server accounts (for example, the SA account) to connect to the database.
By default, the Use guest credentials option is selected. With this option selected, Veeam Agent will connect to the Microsoft SQL Server under the account that you have specified for the protected computer in the protection group settings.
If you have not set up credentials beforehand, click the Manage credentials link or click Add on the right to add credentials.
- Specify how transaction logs must be processed. You can select one of the following options:
- Select Truncate logs to truncate transaction logs after successful backup. Veeam Agent will wait for the backup to complete successfully and then truncate transaction logs. If the backup policy fails, the logs will remain untouched until the next backup policy session.
- Select Do not truncate logs to preserve transaction logs. When the backup policy completes, Veeam Agent will not truncate transaction logs.
We recommend that you enable this option only for databases with log truncation managed by a database administrator and databases that use the Simple recovery model. If you enable this option for databases that use the Full or Bulk-logged recovery model, transaction logs may grow large and consume all disk space. In this case, the database administrator must take care of transaction logs.
- Select Back up logs periodically to back up transaction logs with Veeam Agent. Veeam Agent will periodically copy transaction logs to the backup location and store them together with the image-level backup. During the backup policy session, transaction logs will be truncated.
For more information, see the Microsoft SQL Server and Oracle Logs Backup section in the Veeam Agent for Microsoft Windows User Guide.
If you have selected to back up transaction logs with Veeam Agent for Microsoft Windows, you must specify settings for transaction logs backup:
- In the Back up logs every field, specify the frequency for transaction logs backup in minutes. By default, transaction logs are backed up every 15 minutes. The maximum log backup interval is 480 minutes.
- In the Retain log backups section, specify retention policy for transaction logs stored in the backup location.
- Select Until the corresponding image-level backup is deleted to apply the same retention policy for image-level backups and transaction log backups.
- Select Keep only last to keep transaction logs for a specific number of days. By default, transaction logs are kept for 15 days. If you select this option, you must make sure that retention for transaction logs is not greater than retention for the image-level backup. For more information, see the Retention for Database Log Backups section in the Veeam Agent for Microsoft Windows User Guide.
