Cisco Meeting Server - Automatic Backups
The below steps can be followed to setup automatic backups of the Cisco Meeting Server (CMS) using a Windows host. For similar steps for Linux, refer to the Acano Knowledge Base article here. The first steps involve creating a CMS user that can be used for SSH & SFTP, and generation of a private/public key pair. Once those steps are done, using PowerShell you can automatically back up your CMS by utilising the Windows Scheduler.
- Download putty.exe, puttygen.exe, psftp.exe, and plink.exe from here.
- Using putty SSH to the CMS and create a new user for performing automatic backups. For this example, backupuser is the username for this purpose.
- Open puttygen.exe, click Generate, you will need to move the mouse cursor around the Key area of the puttygen window.
- Once the generation completes click Save private key.
- In the Key area select all the text from ssh-rsa (inclusive) to ‘==’ (inclusive). E.g.
ssh-rsa AAAAB3NzaC1yc2EAAAABJQAAAQEAq5Se1T6M9oZdDz4ugkTdzWGkijHRGKV6CRbK+9pW8CvZ2kX9/i4ZVHt7i9qCP7dUxEn670XBp1snmZzhlsLpiaLrSyMIVuyt/MtRIdyE6wL+zPW3kQrCDJfrV74uKioC81I1njKv1Fcc2iNxwZih+yzHJUZB+xHyqTOxiCH0M7DOrtEAjN//AXQd0xvWgyF4ZZBZrGnckl02bvswSbPtYlpqktpJgIMko2ghJC4DgN28tOBvDSfWSB3y8T5ovv90m2vOJuKPqLYUMKhF6d847br1dePsKr102qU85bawebDWFFIBR0NsWPXNNDPTDW+o9WP8Tn+lA1/msdZk7PrGXQ==
- Using notepad paste this text onto a single line and save it as backupuser.pub, noting the filename matches the name of the user created earlier.
- Using an SFTP client such as WinSCP, copy the backupuser.pub file to the CMS.
- Using putty SSH to CMS, entering the host address in the format of @ as shown in the below. Before clicking Open, move to the next step.
- Expand the Putty navigation and click Connection > SSH > Auth. Click Browse and select the private key saved earlier (with extension .ppk).
- Click Open.
- Enter a password for the user as prompted.
At this point, it is now possible to SSH to the CMS using the steps above without requiring the user’s password. The example PowerShell script below can now be used in concert with the Windows Task Scheduler to perform automatic backups of the CMS.
Example script:
|
|
Usage:
|
|