Log Shipping
Log shipping is process of automatically backing up the transaction logs on a primary database server and then restore logs on to the standby server.
SQL DBA Learning Hub – Real-World Database Tutorials
Log shipping is process of automatically backing up the transaction logs on a primary database server and then restore logs on to the standby server.
Log shipping is the process of automatically backing up the transaction logs on a primary database server. Then those logs are restored on to the standby server.
This technique provides the disaster recovery solution for a single primary database. It also provides it for one or more secondary databases. Each database resides on a separate instance of SQL server.
During the interval between restore jobs, we can access secondary databases for read only purpose.

The instance of SQL Server, which is your production server is called as the primary server.
The database on the primary server which you want to backup to another server is called as the primary database.
All the administrative activities are performed from the primary database with the help of SQL Server management studio.
The worm standby copy of the primary database is called as secondary database.
The secondary database can be in below two states
Monitor Server tracks all the details of this process. It includes below things
Monitor server is an optional.
Note – We cannot make any changes in the monitor server configuration without breaking or removing log shipping configuration.
There are two operating modes and they are based on the state in which the secondary database will be
TUF stands for “Transaction Undo File”.
This file contains information about any changes. These changes are related to incomplete transactions at the time the backup was done.
It is required if a database is loaded in read state. In this state further transaction log backups may be applied.
It is created while performing log shipping to a server in standby mode.
If TUF file is corrupted or lost, log shipping will not work, and we need to setup it again.
The WRK files are produced when the transaction log backups are copied from the backup location to a secondary server.
Once the copy operation completed successfully file automatically renamed to “.trn” file.
It ensures that the files are not picked up by restore job until it successfully copied.