Topology information

The topology is the heart of the Lync installation. In the topology, there is information about sites, pools, servers, file stores, different databases, domains, services, and roles.

Without this piece of information, we will not be able to restore anything, and we will have to recreate the entire installation from scratch.

Creating a backup of your topology is an easy and quick task.

Getting ready

There are two ways to back up or restore your topology. The supported way according to Microsoft is to do it through the Topology Builder.

The Topology builder is installed together with the Lync administrative tools and must be run by a user with administrative privileges on the system, typically a member of the CSAdministrator group.

How to do it…

The following are five easy steps to back up the Topology:

  1. Launch Topology Builder.
  2. Once it launches, make sure that Download Topology from existing deployment is selected as follows:
    How to do it…
  3. Click on OK, and select the path and filename when you save the file.

The file will be a .tbxml file type, and we must use Topology Builder to restore the installation.

  1. Close down Topology Builder.
  2. Move the file to a safe location.

    Tip

    When editing a topology by adding, removing, or changing objects, we can make a copy of this file before we start editing the topology. This way, we will have a short way to restore the system (or compare before and after changes) if any of the changes broke something.

    If possible, it could be wise to map a drive to a central file server and adjust the commands in this chapter to store files in a fileshare covered by a regular file backup plan.

The following are the steps to restore the topology:

  1. Open Topology Builder.
  2. Once it launches, select the Open Topology from a local file option and then click on OK, as shown in the following screenshot:
    How to do it…
  3. When we click on OK, we have to then browse to the file location and select the file.
  4. Go through the entire deployment and verify everything before thinking of publishing it further.
  5. When we're satisfied with how everything looks, we can go ahead and publish the topology, as shown in the following screenshot. Before we do so, all SQL server databases and instances must be configured and ready to receive data. The same goes for the file server (we will get a warning message about this when we publish from the file; read it and make sure that all the bullet points are checked).
    How to do it…
  6. If all is right, we should now have a successful restore of the Lync Topology.
  7. Wait for the Lync replication to complete.

    Tip

    To verify the replication status, we can run Get-CsManagementStoreReplicationStatus on the server.

    For a quick view of the failed replication, we can run the following command:

    Get-CsManagementStoreReplicationStatus | ft –property uptodate,replicafqdn -auto

  8. Run bootstrapper on any server where changes require such an action. Open the Click here to open to-do list option on the result page of Publish topology wizard, as shown in the following screenshot:
    How to do it…

    Note

    Bootstrapper is the process of installing or removing all the (un)configured components of the Lync Server. It is a simple DOS command. Simply run Bootstrapper.exe from the path it is installed in. The default installation path is C:Program FilesMicrosoft Lync Server 2013Deployment.

    The file should look something like the following screenshot:

    How to do it…
  9. Depending on what we are restoring, run the suggested steps under Install or Update Lync Server System in Lync Server 2013 – Deployment Wizard.

    Note

    If we have made changes to the topology and are trying to revert a change, we would get a warning about this, and we should be absolutely sure that we are doing the right thing before we go on.

There's more...

The preceding method is just one way to create a backup and restore it. It is fairly simple and quite safe. However, it is a manual process, and in my experience, it tends to be forgotten every now and then.

If we want to automate this procedure (taking a backup), we can easily do so with theGet-CsTopology command in a PowerShell script and have this script run as a scheduled task. The trick about this command is that it usually just returns the information in the PowerShell window, and this is no good for us. We need to transform the information into an XML file like the following one:

(Get-CsTopology -AsXml).ToString() > C:BackupTopology-backup.xml

As this file cannot be imported into the Topology Builder due to changes made in Lync 2013, we will also have to rely on PowerShell for the restore procedure:

Publish-CsTopology -FileName "C:BackupTopology-backup.xml"

Remember that all SQL databases, filestores, and machine accounts must be deployed and operative before we do this; otherwise, the publication will fail.

To finalize the restoration, we will have to run one more command:

Enable-CsTopology
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.148.108.112