Chat now with support
Chat with Support

LiteSpeed for SQL Server 8.9.5 - Security and Compliance Guide

Create Log Shipping Plans

The Create LiteSpeed Log Shipping Plan wizard helps you set up a publisher database and one or more subscriber databases.

Scenario

Your company has a web site that customers use to query financial information. It is required that customers do not query the database that receives live updates by applications. You need to create a copy of that database on another server for customers to query it online.

ClosedClick here to see additional information for this scenario.

NOTES:

To create a log shipping plan

  1. Select the Log Shipping pane (CTRL+2).
  2. Right-click the server instance and select Create New Log Shipping Plan Wizard.

  3. Review the following additional information about the Backup Options page:

    UNC path to share folder where backup files are available for subscribers

    Enter the network path or click to navigate to it. You should always complete this field. 

    Note: UNC paths have the following format: \\<computer_name>\<shared_folder_name>.

    Specify local path

    Specify the local path if your SQL Server Service Agent is running on a local system account. If you enter a local path, the local stored procedures and jobs on publisher will use it instead of the UNC path. Otherwise, this field is not required.

    Perform full backup and then restore to initialize subscriber(s)

    Select this option to create a full backup and restore it on the subscribers when creating the plan. If you do not select this checkbox, you must perform a full backup of the publisher and restore it on the subscribers before finishing the wizard.

    Note: Log shipping will not work unless you perform a full backup when setting up the plan.

    Backup interval (min)

    The execution frequency of the backup job. By default, this job runs every 15 minutes.

    Retain backup files for (hrs) The amount of time to store transaction log files in the shared location. The default is 1440 (24 hours).
    Alert threshold (min)

    If no transaction log backups have occurred during this amount of time, LiteSpeed displays an alert on the monitoring tab. See View Log Shipping Activity and History for more information.

    The default alert threshold is 45 minutes.

  4. Click the advanced options link to set advanced backup options.

    NOTE: LiteSpeed defaults typically result in the best performance. You should only modify advanced options after careful planning and testing.

    ClosedClick here for more information

  5. Add one or more subscribers on the Subscribers page.

    Recovery mode

    Loading prevents users from querying the database.

    Read-only allows users to query the database. If you select Read-only, you should select Disconnect users when restoring backup to ensure that LiteSpeed can perform the restore; otherwise, you will have to manually disconnect them.

    Copy interval (min) The execution frequency of the copy job. By default, this job runs every 15 minutes.
    Copy offset (min)

    The amount of time by which you want to offset the start time of a job. Use this option to avoid overlap of backup, copy and restore operations. The default copy offset is 100 (1 minute) and the restore offset is 200 (2 minutes).

    Restore interval (min)

    The execution frequency of the restore job. By default, this job runs every 15 minutes.

    Restore offset (min)

    The amount of time by which you want to offset the start time of a job. Use this option to avoid overlap of backup, copy and restore operations. The default copy offset is 100 (1 minute) and the restore offset is 200 (2 minutes).

    Database load delay (min)

    The amount of time you want the subscriber database to wait before it restores the transaction log backup.

    Using this option you can specify how far you want a subscriber to be behind the publisher.For more information, see About Log Shipping Plans..

    By default, load delay is set to 0 minutes, and backups are restored immediately when the restore job runs.

    Retain backup files for (hrs) The amount of time to store transaction log files on the subscriber. The default is 1440 (24 hours).
    Restore alert threshold (min) If no transaction log restores have occurred during this amount of time, LiteSpeed displays an alert on the monitoring tab. See View Log Shipping Activity and History for more information.The default alert threshold is 30 minutes.

    Tip: The timeline represents the recurring [B]ackup, [C]opy and [R]estore job start times and helps you identify the optimal frequency of the log shipping jobs and avoid overlap of backup, copy and restore operations.

    Destination folder for copied files The folder assigned to contain the destination copied files.
    Network Resilience

    If LiteSpeed fails to write disk backups or reads from disk, it waits and retries the operation. You can enable and disable and control the number of times to retry and the amount of time to wait before retrying.

    • Number of times to retry any given read/write attempt—The default is 4 retries. The maximum allowed setting is 1000 retries.
    • Wait period before each retry attempt (in seconds)—The default period to wait before retry is 15 seconds The maximum allowed setting is 300 seconds.

    For more information, see Network Resilience.

  6. Complete the wizard.

To edit a log shipping plan (for example, to add a new Subscriber)

Right-click the plan in the Server tree and select Edit Log Shipping Plan Wizard...

Note: You cannot edit the encryption password, because doing so would prevent the existing transaction logs from restoring.

To change roles in a existing log shipping plan

  1. Select an existing log shipping plan in tree and activate Monitor tab.
  2. Right-click the publisher or any of subscribers and select Change Role or Select as a New Subscriber menu items.
  3. Select new publisher and define new settings for subscribers in opened Change Role LiteSpeed Log Shipping Wizard.

To delete a log shipping plan 

Right-click the plan in the Server tree and select Delete Log Shipping Plan...

 

Related Topics

Related Documents

The document was helpful.

Select Rating

I easily found the information I needed.

Select Rating