{"id":23,"date":"2011-08-24T21:49:55","date_gmt":"2011-08-24T21:49:55","guid":{"rendered":"http:\/\/www.sqlfreelancer.com\/blog\/?p=23"},"modified":"2014-03-01T02:19:59","modified_gmt":"2014-03-01T02:19:59","slug":"sql-server-log-shipping","status":"publish","type":"post","link":"https:\/\/www.sqlfreelancer.com\/blog\/sql-server-log-shipping\/","title":{"rendered":"SQL Server Log Shipping"},"content":{"rendered":"<p>Backup Database on Primary Server:<\/p>\n<p><a href=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2014\/02\/SQL-Server-Log-Shipping.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-24\" alt=\"SQL Freelancer SQL Server Log Shipping\" src=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2014\/02\/SQL-Server-Log-Shipping.png\" width=\"397\" height=\"357\" srcset=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2014\/02\/SQL-Server-Log-Shipping.png 397w, https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2014\/02\/SQL-Server-Log-Shipping-300x269.png 300w\" sizes=\"auto, (max-width: 397px) 100vw, 397px\" \/><\/a>Restore Database on Secondary Server: (RESTORE WITH STANDBY)<\/p>\n<p><a href=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2014\/02\/SQL-Server-Log-Shipping-1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-25\" alt=\"SQL Freelancer SQL Server Log Shipping\" src=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2014\/02\/SQL-Server-Log-Shipping-1.png\" width=\"405\" height=\"362\" srcset=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2014\/02\/SQL-Server-Log-Shipping-1.png 405w, https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2014\/02\/SQL-Server-Log-Shipping-1-300x268.png 300w\" sizes=\"auto, (max-width: 405px) 100vw, 405px\" \/><\/a>(Picture of Object Explorer once restore is complete)<\/p>\n<p><a href=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2014\/02\/SQL-Server-Log-Shipping-3.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-26\" alt=\"SQL Freelancer SQL Server Log Shipping\" src=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2014\/02\/SQL-Server-Log-Shipping-3.png\" width=\"309\" height=\"321\" srcset=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2014\/02\/SQL-Server-Log-Shipping-3.png 309w, https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2014\/02\/SQL-Server-Log-Shipping-3-288x300.png 288w\" sizes=\"auto, (max-width: 309px) 100vw, 309px\" \/><\/a>Create a shared folder on the primary server (SQL Server Agent service account must have read\/write permissions):<\/p>\n<p><a href=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2014\/02\/SQL-Server-Log-Shipping-4.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-27\" alt=\"SQL Freelancer SQL Server Log Shipping\" src=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2014\/02\/SQL-Server-Log-Shipping-4.png\" width=\"289\" height=\"186\" \/><\/a>Create a shared folder on the secondary server (SQL Server Agent service account must have read\/write permissions):<\/p>\n<p><a href=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2014\/02\/SQL-Server-Log-Shipping-5.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-28\" alt=\"SQL Freelancer SQL Server Log Shipping\" src=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2014\/02\/SQL-Server-Log-Shipping-5.png\" width=\"306\" height=\"182\" srcset=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2014\/02\/SQL-Server-Log-Shipping-5.png 306w, https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2014\/02\/SQL-Server-Log-Shipping-5-300x178.png 300w\" sizes=\"auto, (max-width: 306px) 100vw, 306px\" \/><\/a>Enable Log Shipping at the Publisher:<\/p>\n<p><a href=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2014\/02\/SQL-Server-Log-Shipping-6.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-29\" alt=\"SQL Freelancer SQL Server Log Shipping\" src=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2014\/02\/SQL-Server-Log-Shipping-6.png\" width=\"493\" height=\"391\" srcset=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2014\/02\/SQL-Server-Log-Shipping-6.png 493w, https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2014\/02\/SQL-Server-Log-Shipping-6-300x237.png 300w\" sizes=\"auto, (max-width: 493px) 100vw, 493px\" \/><\/a>Click \u201cEnable this as a primary database in a log shipping configuration\u201d, then click Backup Settings:<\/p>\n<p><a href=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2014\/02\/SQL-Server-Log-Shipping-7.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-30\" alt=\"SQL Freelancer SQL Server Log Shipping\" src=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2014\/02\/SQL-Server-Log-Shipping-7.png\" width=\"553\" height=\"316\" srcset=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2014\/02\/SQL-Server-Log-Shipping-7.png 553w, https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2014\/02\/SQL-Server-Log-Shipping-7-300x171.png 300w\" sizes=\"auto, (max-width: 553px) 100vw, 553px\" \/><\/a><\/p>\n<ol>\n<li>Enter Network Share on Primary Server<\/li>\n<li>Enter Local Folder path on Primary Server<\/li>\n<li>Enter the number of Minutes, Hours, or Days to keep the deleted files and to Alert if no backup occurs<\/li>\n<li>Name the SQL Agent Job and determine a schedule to backup the log files<\/li>\n<\/ol>\n<p><a href=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2014\/02\/SQL-Server-Log-Shipping-8.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-31\" alt=\"SQL Freelancer SQL Server Log Shipping\" src=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2014\/02\/SQL-Server-Log-Shipping-8.png\" width=\"538\" height=\"550\" srcset=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2014\/02\/SQL-Server-Log-Shipping-8.png 538w, https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2014\/02\/SQL-Server-Log-Shipping-8-293x300.png 293w\" sizes=\"auto, (max-width: 538px) 100vw, 538px\" \/><\/a><\/p>\n<p>Click OK<\/p>\n<p>Click Add to add a secondary server:<\/p>\n<p><a href=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2014\/02\/SQL-Server-Log-Shipping-9.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-32\" alt=\"SQL Freelancer SQL Server Log Shipping\" src=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2014\/02\/SQL-Server-Log-Shipping-9.png\" width=\"452\" height=\"225\" srcset=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2014\/02\/SQL-Server-Log-Shipping-9.png 452w, https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2014\/02\/SQL-Server-Log-Shipping-9-300x149.png 300w\" sizes=\"auto, (max-width: 452px) 100vw, 452px\" \/><\/a>Click Connect to connect to the secondary server:<\/p>\n<p><a href=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2014\/02\/SQL-Server-Log-Shipping-10.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-33\" alt=\"SQL Freelancer SQL Server Log Shipping\" src=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2014\/02\/SQL-Server-Log-Shipping-10.png\" width=\"506\" height=\"442\" srcset=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2014\/02\/SQL-Server-Log-Shipping-10.png 506w, https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2014\/02\/SQL-Server-Log-Shipping-10-300x262.png 300w\" sizes=\"auto, (max-width: 506px) 100vw, 506px\" \/><\/a><\/p>\n<p style=\"text-align: left;\" align=\"center\">Select No, since we initialized the database in the beginning by restoring in Standby Mode, otherwise you can choose one of the other options. Hit OK.<\/p>\n<p style=\"text-align: left;\" align=\"center\">Go to next tab, Copy Files.<\/p>\n<ol>\n<li>Enter Local Folder Path on Secondary server<\/li>\n<li>Enter the number of Minutes, Hours, or Days to delete copied files<\/li>\n<li>Name the SQL Agent Job and determine a schedule to copy the log files<\/li>\n<\/ol>\n<p><a href=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2014\/02\/SQL-Server-Log-Shipping-11.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-34\" alt=\"SQL Freelancer SQL Server Log Shipping\" src=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2014\/02\/SQL-Server-Log-Shipping-11.png\" width=\"560\" height=\"492\" srcset=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2014\/02\/SQL-Server-Log-Shipping-11.png 560w, https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2014\/02\/SQL-Server-Log-Shipping-11-300x263.png 300w\" sizes=\"auto, (max-width: 560px) 100vw, 560px\" \/><\/a>Go to next tab, Restore Transaction Log.<\/p>\n<ol>\n<ol>\n<li>Since we put the database in Standby\/Read Only mode select Standby Mode<\/li>\n<li>If you would like to delay restoring the transaction log you can enter a value in the \u201cDelay restoring backups at least\u201d otherwise leave at 0 minutes.<br \/>\nEnter the number of Minutes, Hours, or Days to Alert if no restore occurs<\/li>\n<li>Name the SQL Agent Job and determine a schedule to restore the log files<\/li>\n<\/ol>\n<\/ol>\n<p><a href=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2014\/02\/SQL-Server-Log-Shipping-12.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-35\" alt=\"SQL Freelancer SQL Server Log Shipping\" src=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2014\/02\/SQL-Server-Log-Shipping-12.png\" width=\"529\" height=\"462\" srcset=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2014\/02\/SQL-Server-Log-Shipping-12.png 529w, https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2014\/02\/SQL-Server-Log-Shipping-12-300x262.png 300w\" sizes=\"auto, (max-width: 529px) 100vw, 529px\" \/><\/a><\/p>\n<p>Hit OK<\/p>\n<p>**OPTIONAL** To create a monitor server click \u201cUse monitor server instance\u201d and then click Settings<\/p>\n<p><a href=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2014\/02\/SQL-Server-Log-Shipping-13.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-36\" alt=\"SQL Freelancer SQL Server Log Shipping\" src=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2014\/02\/SQL-Server-Log-Shipping-13.png\" width=\"387\" height=\"119\" srcset=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2014\/02\/SQL-Server-Log-Shipping-13.png 387w, https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2014\/02\/SQL-Server-Log-Shipping-13-300x92.png 300w\" sizes=\"auto, (max-width: 387px) 100vw, 387px\" \/><\/a><\/p>\n<ol>\n<ol>\n<li>Click Connect to connect to a monitor server instance<\/li>\n<li>Select the login method you would like to use to connect to the monitor server.<\/li>\n<li>Enter the number of Minutes, Hours, or Days to delete log file data<\/li>\n<li>Name the SQL Agent Job and determine a schedule to for the alert task<\/li>\n<\/ol>\n<\/ol>\n<p><a href=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2014\/02\/SQL-Server-Log-Shipping-14.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-37\" alt=\"SQL Freelancer SQL Server Log Shipping\" src=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2014\/02\/SQL-Server-Log-Shipping-14.png\" width=\"485\" height=\"447\" srcset=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2014\/02\/SQL-Server-Log-Shipping-14.png 485w, https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2014\/02\/SQL-Server-Log-Shipping-14-300x276.png 300w\" sizes=\"auto, (max-width: 485px) 100vw, 485px\" \/><\/a>Hit OK twice.<\/p>\n<p><a href=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2014\/02\/SQL-Server-Log-Shipping-15.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-38\" alt=\"SQL Freelancer SQL Server Log Shipping\" src=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2014\/02\/SQL-Server-Log-Shipping-15.png\" width=\"463\" height=\"225\" srcset=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2014\/02\/SQL-Server-Log-Shipping-15.png 463w, https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2014\/02\/SQL-Server-Log-Shipping-15-300x145.png 300w\" sizes=\"auto, (max-width: 463px) 100vw, 463px\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Backup Database on Primary Server: Restore Database on Secondary Server: (RESTORE WITH STANDBY) (Picture of Object Explorer once restore is complete) Create a shared folder on the primary server (SQL Server Agent service account must have read\/write permissions): Create a shared folder on the secondary server (SQL Server Agent service account must have read\/write permissions): [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[100,13],"tags":[14,7,99],"class_list":["post-23","post","type-post","status-publish","format-standard","hentry","category-high-availability","category-log-shipping","tag-backuprestore","tag-high-availability","tag-log-shipping"],"_links":{"self":[{"href":"https:\/\/www.sqlfreelancer.com\/blog\/wp-json\/wp\/v2\/posts\/23","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.sqlfreelancer.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.sqlfreelancer.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.sqlfreelancer.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.sqlfreelancer.com\/blog\/wp-json\/wp\/v2\/comments?post=23"}],"version-history":[{"count":3,"href":"https:\/\/www.sqlfreelancer.com\/blog\/wp-json\/wp\/v2\/posts\/23\/revisions"}],"predecessor-version":[{"id":86,"href":"https:\/\/www.sqlfreelancer.com\/blog\/wp-json\/wp\/v2\/posts\/23\/revisions\/86"}],"wp:attachment":[{"href":"https:\/\/www.sqlfreelancer.com\/blog\/wp-json\/wp\/v2\/media?parent=23"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sqlfreelancer.com\/blog\/wp-json\/wp\/v2\/categories?post=23"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sqlfreelancer.com\/blog\/wp-json\/wp\/v2\/tags?post=23"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}