question

ChaitanyaKiran-2787 avatar image
0 Votes"
ChaitanyaKiran-2787 asked ChaitanyaKiran-2787 commented

Log shipping log backups

Good Morning

In Log shipping, we set up automated log backups. So, my doubt is whether these log backups truncate log file?

sql-server-general
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

AmeliaGu-msft avatar image
0 Votes"
AmeliaGu-msft answered ChaitanyaKiran-2787 commented

Hi ChaitanyaKiran-2787,

Log Shipping Backup does just like regular log backup. It will delete inactive virtual log files (VLFs) from the logical transaction log of a SQL Server database, freeing space in the logical log for reuse by the Physical transaction log.
Best Regards,
Amelia


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.


· 3
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

In full/bulk-logged recovery model, transaction log backup truncates the log, correct? So Log shipping log backups also do the same thing?

0 Votes 0 ·
AmeliaGu-msft avatar image AmeliaGu-msft ChaitanyaKiran-2787 ·

Hi ChaitanyaKiran-2787,
Thanks for your reply.

In full/bulk-logged recovery model, transaction log backup truncates the log, correct? So Log shipping log backups also do the same thing?

Yes, you are right. But note that it will not shrink the log.
Best Regards,
Amelia

0 Votes 0 ·

Thanks a lot Amelia! God bless you!

0 Votes 0 ·
OlafHelper-2800 avatar image
1 Vote"
OlafHelper-2800 answered

log backups truncate log file?

Log backup don't truncate anything, it just free's VLF = Virtual log files.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.