r/SQLServer • u/SuddenlyCaralho • Jun 19 '26
Question Can I initialize SQL Server Log Shipping using an old full backup, even if the transaction logs have already been truncated since that backup?
Can I initialize SQL Server Log Shipping using an old full backup, even if the transaction logs have already been truncated since that backup?
For example, let's say I have a full backup taken on Sunday, but I don't restore it on the secondary server until Friday. During the week, regular transaction log backups have been taken, which truncate the transaction log.
Will I still be able to synchronize Log Shipping by restoring the old full backup and then applying all the transaction log backups taken since Sunday? Or does the fact that the active transaction log has already been truncated make this impossible?
•
u/AutoModerator Jun 19 '26
After your question has been solved /u/SuddenlyCaralho, please reply to the helpful user's comment with the phrase "Solution verified".
This will not only award a point to the contributor for their assistance but also update the post's flair to "Solved".
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
7
u/NotMyUsualLogin Jun 19 '26
Your terminology is what may be tripping you up.
Backing up transaction logs never “truncates” anything - it simply marks the previously used parts of the log as reusable.
As long as you have a complete, and uninterrupted, chain of backed up transaction logs made from the point in time you made the backup, then those can be used to restore to the other server.
3
u/NormalFormal Jun 19 '26
So long as you have an unbroken chain of log backups that at some point in the chain references that full backup or differential that itself references that full backup.
2
u/Ill_Drag6021 1 Jun 19 '26
Yes, you should be able to.
2
u/Lost_Term_8080 Jun 19 '26
log backups and database backups are totally separate backups. log backups don't care when a full backup is made, they always go to the previous log backup, so yes with an old full backup you can restore a very long uninterrupted chain of logs indefinitely
1
u/CoffeeAndSQL Jun 22 '26
what matters is not when the backup was taken, but whether the backup and restore chain is valid.
full -> log -> log -> log
if you initialize Log Shipping and apply the log backups in the same order they were created, everything should be fine.
you need to restore the full backup:
then restore all the log backups that were taken:
and restore the last log backup with STANDBY:
From that point, you can start Log Shipping.
Do you have the translog backups created during the week? If so, that should be enough.
-1
u/CPDRAGMEISH Jun 19 '26 edited Jun 20 '26
IT''SG OK
In the case you have all log backpus created from that full backup. Before.