Log Shipping

Log shipping is the process of automating the backup of database and transaction log files on a production SQL server, and then restoring them onto a standby server. But this is not all. 

Benefits of log shipping, let’s take a more comprehensive look:

Log Shipping works with Full and Bulk Logged recovery model.

Yes it is possible to configure Log Shipping from lower to upper version. But it is not possible vice versa.

This setting enables us to setup a monitor on the Log shipping through which we can monitor the log shipping process.

There are 4 jobs created between Primary Server and Secondary Server, they are Backup Job, Copy Job, Restore Job and Alert Job

SQL Server Log Shipping System Tables

SQL Server will issue a series of steps to synchronize the information between primary/secondary server and the monitor server. This can be implemented by running the below undocumented log shipping stored procedures:

Yes, it’s possible in log shipping, while configuring log shipping we have the option to choose standby or no recovery mode, there we select STANDBY option to make the secondary database readonly.

We can reduce the load on our primary database by using a secondary server for read-only query processing. To do this, the secondary database must be in STANDBY mode.

There are two options for configuration when we place the secondary database in standby mode:

TUF stands for Transaction Undo file.

A .TUF file is a Microsoft SQL Server Transaction Undo file. The TUF file basically contains the information with respect to any modifications that were made as part of incomplete transactions at the time the backup were performed. A transaction undo (.TUF) file is required if a database is loaded in read-only state.

A WRK :  This Extension Is Given To A File Which is  Being Copied From Primary Backup Location to Secondary and Once Copy Process has been completed these file are renamed with .trn file. 

The log shipping will not work. We have to setup the Log Shipping again.

No, it will not be created on the secondary server.

Yes, it will be created automatically on the secondary database.

Yes, it will be created automatically on the Secondary database if the file is added to the Primary database.

No, Log Shipping will hang. We have to manually restore the Log backup with MOVE option on the secondary database to rectify the issue.

No.

Yes, we can configure Log Shipping on the server residing in different domains.

We can execute the below Log Shipping System Stored Procedure to monitor log shipping and get detailed information about log shipping.

Yes, we can setup multiple secondary databases in Log Shipping.

Yes, we can shrink the log file, but we shouldn’t use WITH TRUNCATE option. If we use this option obviously log shipping will be disturbed.

Yes it’s possible. We can take full backup of log shipped database and this won’t affect the log shipping.

No, we won’t be able to execute BACKUP command against a log shipped database in secondary server