Fix a broken Log shipping

Chaitanya Kiran 841 Reputation points
2026-09-18T00:15:26.51+00:00

Good Morning,

In our environment, we have log shipping backup configured every 15 minutes. In the middle, manual log backup was taken and this breaks log chain. How to fix this?

SQL Server Database Engine
0 comments No comments

1 answer

Sort by: Newest
  1. Deepesh Dhake 1,165 Reputation points
    2026-09-18T12:30:01.0433333+00:00

    Manual log backup doesn't break the LSN chain. It just left a gap in log shipping's restore sequence on the secondary (the next scheduled .trn fails as "too recent").

    Fix: Copy the manual .trn to the secondary's restore folder, restore it WITH NORECOVERY (or STANDBY) in LSN order, then let the restore job resume. Verify with RESTORE HEADERONLY that its FirstLSN/LastLSN slot between the last restored file and the next scheduled one.

    If the .trn is lost: reinitialize the secondary from a fresh full backup WITH NORECOVERY.

    Prevention: take ad-hoc log backups WITH COPY_ONLY.

    Was this answer helpful?

    0 comments No comments

Your answer

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