Follow sqlserver-dba.com

Subscribe to RSS feed  Follow @jackvamvas - Twitter

*Use the Comments section for questions

SQLServer-DBA.com Links

Dba_db2_button

dba-ninja.com

SQL Server DBA Jobs

Taking transaction log backup and full back at the same time

23 June,2023 by Tom Collins

Question: Is it possible to take a SQL Server database transaction log backup and full backup at the same time ? Are there any conflicts ?

Answer: Yes , taking a transaction log backup and a  full back up at the same time doesn't cause a onflict . Although there a few points to consider.

1) A SQL Server  full backup does not truncate data from the transaction log.

2) A typical transaction log backup has some cleanup activiyty . In the situation of a simultaneous transaction log \ full backup scenarion - log will not be cleaned until full backup completes. The truncation occurs at the first log backup after the full backup . 

3) Although it sounds unusual - it can also potentially help you if a transaction log backup is taken - in the situation where the full backup fails. 

4) Database backup does not cause blocking at a transactional level , but it also applies to not blocking a transaction log file 

5) When you check the Backup history for a single SQL Server database  , you'll notice references to the checkpoint_lsn and database_backup_lsn . Use these references to investigate the checkpoint times 

6) In case you're concerned about the Log  Backup Chain breaking - read through Reasons for Transaction Log Backup Chain breaking   to understand some of the scenarios where the Log Backup Chain can occur . Take the appropriate steps to maintain backups to satisfy the Application RPO


Author: Tom Collins (http://www.sqlserver-dba.com)


Share:

Verify your Comment

Previewing your Comment

This is only a preview. Your comment has not yet been posted.

Working...
Your comment could not be posted. Error type:
Your comment has been posted. Post another comment

The letters and numbers you entered did not match the image. Please try again.

As a final step before posting your comment, enter the letters and numbers you see in the image below. This prevents automated programs from posting comments.

Having trouble reading this image? View an alternate.

Working...

Post a comment on Taking transaction log backup and full back at the same time


sqlserver-dba.com | SQL Server Performance Tuning | SQL Server DBA:Everything | FAQ | Contact|Copyright & Disclaimer