Log Backups in AlwaysOn

Vijay Kumar 2,036 Reputation points
2020-10-06T21:08:23.883+00:00

Hi Team,

Is it possible to take Full backup on Primary Replica and Logbackups on Secondary replica in SQL Server 2016 Alwayson?

Developer technologies | Transact-SQL
SQL Server | Other
0 comments No comments
{count} votes

Accepted answer
  1. Cris Zhan-MSFT 6,661 Reputation points
    2020-10-07T06:48:24.88+00:00

    Hi VijayKumar768,

    Yes.
    A consistent log chain is ensured across log backups taken on any of the replicas (primary or secondary), irrespective of their availability mode (synchronous-commit or asynchronous-commit).
    https://www.sqlshack.com/sql-server-always-on-availability-group-log-backup-on-secondary-replicas/

    Under the full recovery model, Full backup does not break the log sequence chain.
    https://www.sqlshack.com/understanding-log-sequence-numbers-for-sql-server-transaction-log-backups-and-full-backups/


    If the answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


1 additional answer

Sort by: Most helpful
  1. David Browne - msft 3,851 Reputation points
    2020-10-06T21:14:06.667+00:00

    Yes. Just not at the same time. See Backup Types Supported on Secondary Replicas, eg

    Concurrent backups, such as executing a transaction log backup on the primary replica while a full database backup is executing on the secondary replica, is currently not supported.

    1 person found this answer helpful.

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.