Lync 2013 – Automated Backup Script

This script will backup Lync 2013 core data and settings off all servers in the topology as per Technet article: http://technet.microsoft.com/en-us/library/hh202170.aspx

The script does the following:

  1. Backup the Central Management Store
  2. Backup the Location Information Service Data
  3. Backup the user data on each Front End pool
  4. Backup the Response Group configuration on each Front End pool
  5. Backup the Voice Configuration

It will create a new folder with a date stamp for each backup.  It will also clean up backups older than x days.  To use the script:

  1. Create a scheduled task on one of your Lync Front End servers to run the backup script, see here.
  2. Configure the Backup Path and Backup Retention values.

Note I have only tested this on Lync 2013 with two standard edition (pool pair) servers.  I have not tested on enterprise pools.  You will also need to do a separate SQL backup of Monitoring, Archiving and Persistent Chat databases as well as a file system backup of all File Stores.  Use at your own risk.

Update 06-11-2013 – I have fixed the delete old backup directories as I noticed that was not working.  Also tested on Lync 2013 Enterprise and seems to work OK :).

 

Author: Chris Hayward

Share This Post On

4 Comments

  1. Hi Chris,

    This looks like a great piece or work however, I am getting a unexpected token error in the expression for line 18 and 21?

    Any ideas mate.

    Thanks

    Post a Reply
    • Hi Matt,

      Have you created the backup path folder? C:LyncBackupsBackups ?

      I don’t think the script creates it.

      Thanks

      Post a Reply
  2. great script but mune keeps failing because i dont have response groups. any way to get around it and allow the script to finish??

    Post a Reply

Trackbacks/Pingbacks

  1. Skype for Business 2015 – Automated Backup Script | ChrisHayward.co.uk - […] A few years ago I created a Lync 2013 backup script that would backup data from all servers in…

Submit a Comment

Your email address will not be published. Required fields are marked *