Cisco Meeting Server – Automatic Backups

This post details the process of setting up a bash script to automate the backup of Cisco Meeting Server files onto a *nix based server, its heavily influenced by this post by Jason Neurohr and his PowerShell version, all credit goes his way!

Running the script in a cron schedule will enable automatic backups of your CMS servers, backing up the tarball from the ‘backup snapshot’ CLI command along with the certificates and license file in the root of the CMS SFTP server.

The last line of the script will remove any backups older than 180 days, modify/remove this to suit.


  1. Connect to your CMS server via SSH and add a new user account for performing automatic backups, store the password safely, we won’t be using it again.
  2. Connect to your SFTP server via SSH and install putty tools either from source or via the local package manager e.g. yum install putty putty-tools
  3. Generate a new private/public key pair on your SFTP server for the account leaving the passphrase empty

  4. Run the following command on the new key pair to extract the public key

  5. Select all the text from ssh-rsa (inclusive) to ‘==’ (inclusive). Save this key into a local editor (notepad++) and save it as the – note to keep it all on 1 line.
  6. Upload the file to the root of your CMS server using an SFTP client, such as WinSCP
  7. Add the script to your SFTP server
  8. Edit the script and update the configuration and binary locations to match your environment
  9. Manually run the script to cache the host key

  10. Add an entry into cron to run the script on a schedule

Full Script