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:

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 :).


5 Replies to “Lync 2013 – Automated Backup Script”

  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.


  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??

  3. Pingback: Skype for Business 2015 – Automated Backup Script |

Leave a Reply

Your e-mail address will not be published. Required fields are marked *


This site uses Akismet to reduce spam. Learn how your comment data is processed.