r/SQLServer • u/Few_Web_2340 • Nov 01 '25
Question Create Always On availability group without transaction log backup (only full backup)
Hi,
I'd like to restore backups and join databases in Always On availability group. I have only full backups without transaction logs backups. When I try restore full backup simultaneously on primary and secondary replicas (on secondary using RESTORE WITH NORECOVERY) and join the restored database to the availability group, I get error, that it is required log restore too. So I have to again backup database from primary replica (full and log backup) and restore on secondary replica and then join. This is 2 TB database, so it take time and I try to reduce time. Is it possible to restore only full backup without log backup to join databases to the availability group?
View all comments
Show parent comment
3
u/SeventyFix Nov 01 '25
Correct. If you restore the full backup on the secondary, which takes time, and while the restore is ongoing, a transaction log backup occurs on the primary - which is highly likely - you will get a fail-to-join message.
Restore your full backup on the secondary, leaving the DB in a restoring state. Then take a differential backup on the primary and restore it to the secondary, leaving the DB in a restoring state. Then restore the transaction log backup(s) to the secondary: those taken between your differential and the present time. It can help to turn off transaction log backups on the primary while you restore these t-log backups to the secondary, just make sure that you have tons of log space on the primary. Once all of the t-log backups have been restored to the secondary, join the secondary DB to the AG.
AND don't forget to turn on the transaction log backup job on the primary replica when you're done!