

# SQL Server database backups

You can use AWS Backup to protect self-managed SQL Server databases that run on Windows hosts, whether those hosts are on-premises VMware virtual machines or Amazon EC2 instances. You manage registration, backup plans, and restores through the same AWS Backup console, AWS CLI, API, and policy framework that you use for AWS native resources. A backup agent installed on each host runs native SQL Server backups and streams them to a backup appliance, which stores recovery points in a local vault and can copy snapshot recovery points to AWS Backup vaults.

## Supported versions and operating systems
<a name="backup-onprem-sqlserver-versions"></a>

AWS Backup protects standalone SQL Server instances on Windows hosts. The following versions are supported:
+ SQL Server 2017, 2019, 2022, and 2025 (editions under Microsoft Standard or Extended support)
+ Windows Server 2019, 2022, and 2025

SQL Server on Linux, SQL Server on physical or bare-metal hardware, Failover Cluster Instances (FCI), and Availability Groups over FCI are not supported.

## How SQL Server backups work
<a name="backup-onprem-sqlserver-how"></a>

AWS Backup uses the SQL Server Virtual Device Interface (VDI) to run native SQL Server backup commands. VDI produces the same native backup files a database administrator expects:
+ `.BAK` files for full backups
+ `.DIFF` files for differential backups
+ `.TRN` files for transaction log backups

VDI provides broad compatibility, including Transparent Data Encryption (TDE), FILESTREAM, and memory-optimized databases, and it does not require a changed-block-tracking driver or a host reboot. File-based and volume-based VSS methods, database cloning, and Instant Volume Mount (IVM) are not supported.

During backup, AWS Backup does not store or manage TDE keys. For a TDE-enabled database, the TDE certificate must already be present on the target instance before you restore.

## Recovery models
<a name="backup-onprem-sqlserver-recoverymodels"></a>

AWS Backup detects each database's recovery model automatically at discovery. The recovery model determines which backup types are available.


| Recovery model | Supported backups | Point-in-time recovery | 
| --- | --- | --- | 
| Full | Full, differential, and transaction log | Supported | 
| Bulk-Logged | Full, differential, and transaction log | Supported | 
| Simple | Full and differential only | Not supported | 

In the Simple recovery model, SQL Server truncates the transaction log automatically, so transaction log backups and point-in-time recovery aren't available. If you change a database's recovery model, AWS Backup detects the change at the next sync.
+ **Full to Simple.** The log backup job keeps running with the job status code `LOG_BACKUP_NOT_CAPTURING`. The existing log recovery point stays available, and you can restore to points in time within its captured ranges until it expires.
+ **Simple to Full.** No action is needed to turn log backups back on. Log capture starts after the next scheduled or on-demand full backup, and the status code changes to `LOG_BACKUP_CAPTURING`. AWS Backup doesn't force a full backup when it detects the change.

## Backup types and the backup chain
<a name="backup-onprem-sqlserver-backupchain"></a>

SQL Server backups follow a full, differential, and transaction log chain. Every restore begins from a full backup, and differential backups are cumulative.

AWS Backup selects the snapshot backup type automatically. You control selection with two resource-level settings:
+ **Full backup after days** (1 to 31, required). The maximum age of the current full backup before AWS Backup takes a new one.
+ **Full backup after schedule** (optional). A CRON expression in UTC.

Neither setting triggers a backup. Your backup plan controls when backups run; these settings decide whether each run is a full or a differential backup. AWS Backup automatically runs the next scheduled or on-demand backup as a full backup if it's the first backup, the backup chain is broken, or no base full backup exists, and it reports the reason in the job history.

You can set 1 to 8 parallel backup streams for each database. Each stream is handled by a node of the backup appliance. More streams speed up the backup but use more SQL Server resources. We recommend 3 streams.

## Always On Availability Groups
<a name="backup-onprem-sqlserver-ag"></a>

You can register hosts that participate in an Always On Availability Group (AG), and the local (non-AG) databases on those hosts are protected normally. AWS Backup discovers AG-joined databases but does not return them as protectable resources. They do not appear in the console, and no action is required from you.

If you have AG databases, continue using your existing backup tool for those databases. AWS Backup protects only the local, standalone databases on the host. There is no change to AG behavior, role awareness, or failover.

## Copy-only backup mode
<a name="backup-onprem-sqlserver-copyonly"></a>

Copy-only backup mode is a migration aid. When copy-only mode is on, full backups do not reset the differential base or truncate the transaction log, which preserves the backup chain of an existing tool.

While copy-only mode is on, AWS Backup can't capture transaction logs, so point-in-time recovery isn't available. AWS Backup doesn't prevent you from turning on log backups while copy-only mode is on, or the reverse. Instead, the log backup job stays in the `RUNNING` state with the job status code `LOG_BACKUP_NOT_CAPTURING`, and the status message gives the reason. After you turn off copy-only mode, the status code changes to `LOG_BACKUP_CAPTURING` after the next full backup. To check the status code, use the `DescribeBackupJob` API. To be notified when it changes, use Amazon EventBridge or Amazon SNS. For more information, see [Continuous backup support for on-premises and self-managed resource types](point-in-time-recovery.md#point-in-time-recovery-onprem).

## Transaction log backups and point-in-time recovery
<a name="backup-onprem-sqlserver-logbackups"></a>

Transaction log backups let you restore a database to a specific point in time.

**Enablement.** You turn on log backups with the backup plan's continuous-backup toggle, the same control used for Amazon RDS, Amazon Aurora, and Amazon S3 point-in-time recovery. There is no separate enable log backups checkbox, but the log backup frequency must be set. A database must be in the Full or Bulk-Logged recovery model. Log capture starts after the database's first full backup completes.

**Frequency.** Log backup frequency (15 minutes to 24 hours; required for log backups) is a resource-level setting. You set it on the host (the resource provider) and can override it per database. This setting exists because on-premises hosts have finite disk, and the application owner must manage how logs accumulate on the source.

**Single log recovery point.** A database has exactly one log recovery point at any time. It is updated continuously and represents the available log time range. When gaps exist, it can expose multiple restorable ranges. A log recovery point is never directly restorable. You cannot select it as a restore entry point, and a restore request against a log recovery point ARN is rejected.

**First backup captures all logs.** When log capture begins after the first full backup, AWS Backup captures all existing logs on the source, not only logs created from that moment forward. As a result, the log recovery point's time range can extend earlier than the backup creation time. This is expected. The log recovery point is created when the log backup job starts, so you might briefly see no restorable range until logs are captured.

**Log retention.** The point-in-time recovery window comes from the backup plan's continuous-backup rule (1 to 35 days), set independently from snapshot retention. AWS Backup deletes log data that is older than the retention period. An increase to retention applies immediately; a decrease takes effect after the current retention period elapses. You can't change the lifecycle of a log recovery point with the `UpdateRecoveryPointLifecycle` API.

**Log chain breaks.** A log chain break happens when logs are removed outside of AWS Backup, for example when another product backs up the same database, or when a recovery fork occurs. When a log backup run detects a break, the log backup job's status code changes to `LOG_BACKUP_NOT_CAPTURING`, and the status message describes the break. AWS Backup also sends a Log Backup Range Break event. You can't restore to a point in time inside the gap. The log recovery point stays available, and you can still restore to points in time within its captured ranges until it expires. Log capture resumes after the next scheduled or on-demand full backup. AWS Backup doesn't start a backup automatically after a chain break.

**Note**  
**SQL Server engine behavior.** SQL Server uses an LSN-linked log chain. While logs aren't being captured, the transaction log can't be truncated and keeps growing until a log backup runs. A full transaction log can force the database into read-only. We recommend that you monitor log-disk usage and keep a disk buffer.

**Local vault only.** Transaction logs are stored in the local vault only and are not copied to AWS Backup cloud vaults. Point-in-time recovery runs from the local vault. To recover to a point in time from a cloud snapshot, first copy that snapshot back to a local vault.

## Not supported
<a name="backup-onprem-sqlserver-notsupported"></a>

The following SQL Server capabilities are not supported:
+ SQL Server on Linux, on physical or bare-metal hardware, FCI, and AG over FCI
+ Protection of AG-joined databases (local databases on AG hosts are protected)
+ Protection of system databases (`master`, `msdb`, `model`)
+ VSS file-based and volume-based backup methods, database cloning, and Instant Volume Mount
+ Destructive (overwrite) restore of user databases, and tail-log capture
+ Copying transaction log backups to a cloud vault
+ Automatic out-of-band full backup on a log-chain break, and automatic backup of newly discovered databases