Skip to content

2020

SQL Log shipping restore

After last post we copy all backup files from the source to the destination. If all files is on the destination server we can now restore them into a database to complete the log shipping. I will not write about the functions that is the same in both files such as Import-MyModule. See last blog post if you have not read it.

SQL Log Shipping Copy

This is a two-part blog post. The second part will be published within a week. The script was created a while ago and has some minor updates.

Problem

The need was found to have two database servers very similar, without a license for SQL Log shipping. We could use existing backups, as we did a log backup each hour, and copy them to another server for restoration. The process turned out to be more complex than anticipated, especially with SQL clusters.