Logo
HOW TO
Windows XP
Windows Vista
Windows 7
Windows Azure
Windows Server
Windows Phone
 
 
Windows Server

Backup and Restore of Microsoft Lync Server 2010 : Backup Processes (part 1) - Backing Up Lync Server Databases

4/12/2013 3:19:13 PM

1. Backup and Restore Strategy

Simply backing up a server is not a viable strategy in and of itself nor is redundancy a suitable substitution for a good backup strategy. A good backup strategy considers uptime and restoration Service Level Agreements (SLA) and the impact of an extended outage.

As in previous versions, there are multiple facets to backing up Lync Server. Obviously, the SQL databases must be backed up. Fortunately, this process is fairly straightforward. There is nothing unique about backing up a Lync Server database compared to another SQL database. However, the Central Management Server (CMS) database must be backed up, too. In contrast, the local SQL express instances on each server role do not need to be backed up because they contain no unique information.

The next consideration is backing up the Lync Server configuration. The familiar LCSCmd process is gone, but it is replaced with the more powerful Lync Server cmdlets. Finally, one must consider a traditional full backup of each of the individual servers. However, in some environments, traditional backups may not be a requirement.

For most, environments in Table 1 outlines the best practices related to backup strategy.

Table 1. Best Practices for Backup Strategies
TypeFrequency
SQL databaseNightly
CMSEvery time a change is made, or at least monthly
Server backupWeekly

2. Backup Processes

This section includes the steps necessary to back up your Lync Server environment. As mentioned previously, backing up the environment is a multistep process. This section covers each step in detail. Of course, these steps are adequate for most evenironments. Environments with special requirements might require a more exotic solution to back up and restore.

2.1 Backing Up Lync Server Databases

The good news is there is nothing unique about the Lync Server databases stored in SQL Server. They can be backed up and restored like any other database. Although this section does not cover the SQL database process in depth, it summarizes the process for CS administrators who might not be familiar with the process.

Note

Keep in mind that each pool has a unique database and must be backed up separately.


As in previous versions, data is stored in the RTC database. Backups can be done in the SQL Management Studio GUI, scripted using TSQL, or by using a SQL-specific backup agent such as Microsoft Data Protection Manager 2010. Because there are many different enterprise backup products, this section reviews the first two options. Users with an enterprise backup platform should follow the instrutions for SQL backup from their platform vendors.

Backing Up the RTC Database

For a given front end pool, the only database that needs to be backed up is the RTC database. If you choose to deploy Monitoring or Archiving services, those databases need to be backed up in the same manner. To back up the RTC database using the SQL Management Studio GUI, first log in to your SQL server and follow the steps that follow:

1.
Open the SQL Management Studio tool and connect to the appropriate SQL instance where the RTC database is stored.

2.
Expand Databases and find the RTC database.

3.
Right-click the RTC database and select Tasks, and then select Back Up.

4.
In the window that displays, ensure the RTC database is selected and the backup type is Full. Ensure the appropriate destination is selected, too. A proper configuration of this screen is shown in Figure 1.

Figure 1. SQL Database Backup General Options

5.
In the left column, select the Options item. Most of the items can be left at their default settings; however, it is recommended you enable the Verify backup when finished box, as shown in Figure 2. Because the RTC database is not very large, this process does not require much additional time.



Figure 2. SQL Database Backup Other Options

6.
Click OK to begin the backup.

7.
A pop-up should display with the message, “The backup of database “rtc’ completed successfully.” Click OK to continue.

Create TSQL Script to Back Up the RTC Database

There are two ways to create the TSQL script for backing up the RTC database. If you are familiar with TSQL, it’s simple to write the script and set it as a job.

Tip

If you are not familiar with TSQL, there is a way to have the SQL Management studio write the script for you. Follow steps 1–5 in the preceding section. However, instead of clicking OK, click the Script button at the top of the window and choose Script Action to New Query Window as shown in Figure 3. Simply run the query to create the backup.

Figure 3. Creating a TSQL Script for Database Backup


For the process outlined previously, the script is included in the following:

BACKUP DATABASE [rtc] TO DISK = N'C:\Program Files\Microsoft SQL
Server\MSSQL10.MSSQLSERVER\MSSQL\Backup\rtc.bak' WITH NOFORMAT, NOINIT, NAME
= N'rtc-Full Database Backup', SKIP, NOREWIND, NOUNLOAD, STATS = 10
GO
declare @backupSetId as int
select @backupSetId = position from msdb..backupset where
database_name=N'rtc' and backup_set_id=(select max(backup_set_id) from
msdb..backupset where database_name=N'rtc' )
if @backupSetId is null begin raiserror(N'Verify failed. Backup information
for database ''rtc'' not found.', 16, 1) end
RESTORE VERIFYONLY FROM DISK = N'C:\Program Files\Microsoft SQL
Server\MSSQL10.MSSQLSERVER\MSSQL\Backup\rtc.bak' WITH FILE = @backupSetId,
NOUNLOAD, NOREWIND
GO		  
Other -----------------
- SQL server 2008 R2 : Creating and Managing Stored Procedures - Using Input Parameters
- SQL server 2008 R2 : Creating and Managing Stored Procedures - Modifying Stored Procedures
- Microsoft Dynamics Ax 2009 : RunBase Framework Extension (part 4) - Adding a Query
- Microsoft Dynamics Ax 2009 : RunBase Framework Extension (part 3) - Adding Property Methods, Adding Constructors
- Microsoft Dynamics Ax 2009 : RunBase Framework Extension (part 2) - Bike-Tuning Service Offers Example
- Microsoft Dynamics Ax 2009 : RunBase Framework Extension (part 1) - Property Method Pattern, Pack-Unpack Pattern
- Nginx HTTP Server : Basic Nginx Configuration - Testing your server
- Nginx HTTP Server : Basic Nginx Configuration - A configuration for your profile
- Windows Server : Network Access Policy and Server and Domain Isolation (part 4) - Planning NAP DHCP Enforcement, Domain and Server Isolation
- Windows Server : Network Access Policy and Server and Domain Isolation (part 3) - Planning NAP VPN Enforcement, Planning NAP 802.1x Enforcement
 
 
REVIEW
- First look: Apple Watch

- 10 Amazing Tools You Should Be Using with Dropbox

- 3 Tips for Maintaining Your Cell Phone Battery (part 1)

- 3 Tips for Maintaining Your Cell Phone Battery (part 2)
 
VIDEO TUTORIAL
- How to create your first Swimlane Diagram or Cross-Functional Flowchart Diagram by using Microsoft Visio 2010 (Part 1)

- How to create your first Swimlane Diagram or Cross-Functional Flowchart Diagram by using Microsoft Visio 2010 (Part 2)

- How to create your first Swimlane Diagram or Cross-Functional Flowchart Diagram by using Microsoft Visio 2010 (Part 3)
 
Popular tags
Microsoft Access Microsoft Excel Microsoft OneNote Microsoft PowerPoint Microsoft Project Microsoft Visio Microsoft Word Active Directory Biztalk Exchange Server Microsoft LynC Server Microsoft Dynamic Sharepoint Sql Server Windows Server 2008 Windows Server 2012 Windows 7 Windows 8 Adobe Indesign Adobe Flash Professional Dreamweaver Adobe Illustrator Adobe After Effects Adobe Photoshop Adobe Fireworks Adobe Flash Catalyst Corel Painter X CorelDRAW X5 CorelDraw 10 QuarkXPress 8 windows Phone 7 windows Phone 8 BlackBerry Android Ipad Iphone iOS
Popular keywords
HOW TO Swimlane in Visio Visio sort key Pen and Touch Creating groups in Windows Server Raid in Windows Server Exchange 2010 maintenance Exchange server mail enabled groups Debugging Tools Collaborating
Top 10
- Microsoft Excel : How to Use the VLookUp Function
- Fix and Tweak Graphics and Video (part 3) : How to Fix : My Screen Is Sluggish - Adjust Hardware Acceleration
- Fix and Tweak Graphics and Video (part 2) : How to Fix : Text on My Screen Is Too Small
- Fix and Tweak Graphics and Video (part 1) : How to Fix : Adjust the Resolution
- Windows Phone 8 Apps : Camera (part 4) - Adjusting Video Settings, Using the Video Light
- Windows Phone 8 Apps : Camera (part 3) - Using the Front Camera, Activating Video Mode
- Windows Phone 8 Apps : Camera (part 2) - Controlling the Camera’s Flash, Changing the Camera’s Behavior with Lenses
- Windows Phone 8 Apps : Camera (part 1) - Adjusting Photo Settings
- MDT's Client Wizard : Package Properties
- MDT's Client Wizard : Driver Properties
 
Windows XP
Windows Vista
Windows 7
Windows Azure
Windows Server
Windows Phone
2015 Camaro