Log shipping is the process of automating the backup of
transaction log files on a primary (production) database server, and then restoring them onto a standby server. This technique is supported by
Microsoft SQL Server
Microsoft SQL Server is a proprietary relational database management system developed by Microsoft using Structured Query Language (SQL, often pronounced "sequel"). As a database server, it is a software product with the primary function of ...
,
[ How to Perform SQL Server Log Shipping](_blank)
, "What is Log Shipping". Retrieved on 2008-12-16. 4D Server,
MySQL
MySQL () is an Open-source software, open-source relational database management system (RDBMS). Its name is a combination of "My", the name of co-founder Michael Widenius's daughter My, and "SQL", the acronym for Structured Query Language. A rel ...
, and
PostgreSQL
PostgreSQL ( ) also known as Postgres, is a free and open-source software, free and open-source relational database management system (RDBMS) emphasizing extensibility and SQL compliance. PostgreSQL features transaction processing, transactions ...
. Similar to
replication, the primary purpose of log shipping is to increase database availability by maintaining a backup server that can replace a production server quickly. Other databases such as
Adaptive Server Enterprise and
Oracle Database
Oracle Database (commonly referred to as Oracle DBMS, Oracle Autonomous Database, or simply as Oracle) is a proprietary multi-model database management system produced and marketed by Oracle Corporation.
It is a database commonly used for ru ...
support the technique but require the
Database Administrator
A database administrator (DBA) manages computer databases. The role may include capacity planning, installation, configuration, database design, migration, performance monitoring, security, troubleshooting, as well as backup and data re ...
to write code or scripts to perform the work.
Although the actual
failover mechanism in log shipping is manual, this implementation is often chosen due to its low cost in human and server resources, and ease of implementation. In comparison, SQL server
clusters enable automatic failover, but at the expense of much higher storage costs. Compared to database replication, log shipping does not provide as much in terms of reporting capabilities, but backs up system tables along with data tables, and locks the standby server from users' modifications.
A replicated server can be modified (e.g.
views) and is therefore unsuitable for failover purposes.
References
External links
Log Shipping MS SQL Server implementation
Hot Standby PostgreSQL implementation
Databases
Data synchronization
Fault-tolerant computer systems
{{Software-type-stub