View a markdown version of this page

Prepare SQL Server - AWS Backup

Prepare SQL Server

Protect standalone SQL Server databases on Windows hosts, whether on-premises or on Amazon EC2. You register the Windows host, and AWS Backup discovers the databases beneath it. System databases are filtered out and are not protectable.

Supported versions

  • SQL Server: 2017, 2019, 2022, 2025 (under Microsoft Standard or Extended support).

  • Windows Server: 2019, 2022, 2025.

AWS Backup does not support SQL on Linux, SQL on bare metal, Failover Cluster Instances (FCI), or Always On availability groups. You can register hosts that participate in an availability group, and AWS Backup protects their local (non-AG) databases normally. AWS Backup discovers AG-joined databases but does not return them, so they do not appear as protectable resources and require no action from you.

Install the agent

You must pre-install a backup agent on each SQL Server host. The agent's Windows service must run as a domain account that is a local administrator and holds the sysadmin role in SQL Server. The account also needs the Log on as a service user right on the host. We recommend a group managed service account (GMSA) so that password rotation is handled for you. If the account loses the sysadmin role, all backup and restore operations for that host fail. To download and install the agent, see Install a backup agent.

Registration and credentials

Register the host by hostname, IP address, or FQDN (we recommend the FQDN). You do not provide or store database credentials. The agent authenticates through its Windows service account.

You can update the host address without re-baselining, as long as it still resolves to the same agent host.

Ports

For the ports to open between the appliance, your SQL Server hosts, and AWS, see Network requirements and ports.

You do not need inbound internet connectivity.

Recovery models

The SQL Server recovery model determines which backup types are available:

  • Full and Bulk Logged support full, differential, and transaction-log backups, which enables point-in-time recovery (PITR). To enable log backups, set LogBackupFrequencyInMinutes in the MssqlDatabase target configuration and assign the database to a backup rule with continuous backups turned on.

  • Simple supports only full and differential backups (SQL Server truncates the log automatically), so it does not support log backups or PITR.

AWS Backup detects the recovery model at discovery and picks up changes at the next sync. After a change from Full to Simple, the log backup job's status code changes to LOG_BACKUP_NOT_CAPTURING. After a change from Simple to Full, log capture starts after the next scheduled or on-demand full backup. For details, see Recovery models.