Backup and Restoration Requirements: Tools and Permissions

 

Topic Last Modified: 2012-10-17

This section identifies the tools you can use to back up and restore Microsoft Lync Server 2010, the permissions you need, and whether you can run commands remotely or locally.

This document focuses on tools that are provided with Lync Server 2010 for backup and restoration.

Back Ups

To back up Lync Server 2010, use the tools identified in the following table.

Note

All the commands you need to back up Lync Server can be scripted and can be run remotely.

Tools for Backing Up Lync Server 2010

To back up this: Use this tool or cmdlet:

Topology configuration data (Xds.mdf)

Export-CsConfiguration

Location information service (E9-1-1) data (Lis.mdf)

Export-CsLisConfiguration

Response Group configuration data (RgsConfig.mdf)

Export-CsRgsConfiguration

Note

The RgsImportExport.ps1 script, which is a Lync Server 2010 Resource Kit tool, adds this cmdlet to Lync Server Management Shell. Install the script by downloading and running OCSReskit.msi, located at https://go.microsoft.com/fwlink/p/?LinkID=203466, and then import the script to Lync Server Management Shell to add the cmdlet.

Persistent user data (Rtc.mdf database)

Conference IDs

Dbimpexp.exe

Note

This tool is available in the root folder of the Lync Server installation media. It is also installed at \Program Files\Common Files\Microsoft Lync Server 2010\Support as part of Core Components.

  • Archiving database (LcsLog.mdf)

  • Monitoring call detail record database (LcsCDR.mdf)

  • Monitoring QoE database (QoEMetrics.mdf)

SQL Server database tool, such as SQL Server Management Studio

All file stores:

  • Lync Server file store

    Note

    Files named Meeting.Active should not be backed up. These files are in use and locked while a meeting takes place.

  • Archiving file store

Standard file system management tool, such as Robocopy

Restoration

To restore Lync Server 2010, use the tools in the following table.

Note

All the commands you need to restore Lync Server can be scripted.

Note

Some of the commands you need to restore Lync Server can be run remotely, but others need to be run locally, as specified in the following table.

Tools for Restoring Lync Server 2010

To do this: Use this tool or cmdlet:

Build a new or clean computer

  • Windows operating system installation software

  • SQL Server installation software

  • Certificates Microsoft Management Console (MMC) snap-in, if restoring certificates with an exportable private key

Restore file store data

Standard file system management tool, such as Robocopy

Recreate empty databases and set permissions for the following:

  • Central Management store

  • Back End Server

  • Monitoring database

  • Archiving database

Install-CsDatabase

Restore the Active Directory pointer to the Central Management store

Note

If you lose the service connection point at any time, you can rerun this cmdlet.

Set-CsConfigurationStoreLocation

Import the topology, policies, and configuration settings to the Central Management store (Xds.mdf)

Import-CsConfiguration

Publish the topology

Topology Builder

-or-

Publish-CsTopology*

Enable the last published topology

Enable-CsTopology

Reinstall Lync Server components

Lync Server 2010 Setup

Note

Located in the Lync Server 2010 installation folder or media at \setup\amd64\Setup.exe.

Restore location information (E9-1-1) data (Lis.mdf)

Import-CsLisConfiguration

Restore persistent user data (Rtc.mdf)

Dbimpexp.exe

Note

This tool is available in the root folder of the Lync Server installation media. It is also installed at \Program Files\Common Files\Microsoft Lync Server 2010\Support as part of Core Components.

Restore Response Group configuration data (RgsConfig.mdf)

  • Get-CsApplicationContact

    Note

    This script is available on the Lync Server Windows PowerShell blog, located at https://go.microsoft.com/fwlink/p/?LinkId=210869.

    Note

    This script must be run locally.

  • Import-CsRgsConfiguration

    Note

    The RgsImportExport.ps1 script, which is a Lync Server 2010 Resource Kit tool, adds this cmdlet to Lync Server Management Shell. This cmdlet is added at the same time the Export-CsRgsConfiguration cmdlet is added.

Restore the following databases:

  • Archiving database (LcsLog.mdf)

  • Monitoring databases: call detail record database (LcsCDR.mdf) and QoE database (QoEMetrics.mdf)

SQL Server database management tools

*For details about using cmdlets instead of Topology Builder to publish and enable the topology, see Publish-CsTopology and Enable-CsTopology in the Lync Server Management Shell documentation.

Required Permissions

Users must be a member of the RTCUniversalServerAdmins group to perform all the commands described in this document. Backup and restoration commands do not support role-based access control (RBAC).