External Backup & Restore

Prepare a second YMP server on standby, then make a schedule and copy the backup files manually to an external place. When the primary YMP server breaks down, you can restore backup data to the secondary YMP server.

Scenarios

If a natural disaster occurs in the region where the YMP server and SBC server are set up, you can restore data to a preprepared secondary server in a safe region.

External Backup planning

Prerequisite:

Scheduling local backup on the YMP web interface is a required step before you start to export backup files to another place.

  1. Prepare a secondary YMP server and a secondary SBC server in a different region.
    Note: The YMP server should meets the YMP system requirements; The SBC server should meets the SBC system requirements.
  2. Contact Yeastar to examine the two servers and install an inactivated YMP to the YMP server.
  3. Make a plan, and export the backup files from YMP server regularly.
    1. Log in YMP server via SSH.
    2. Check the backup files.
      sudo cd /cloudpbx/backup/system/
    3. Compress the target backup file.
      Note: Replace {backup_name} with your target backup file name.
      sudo /ysdata/server/yscore/script/coldback.sh /home/coldback.tar.gz /cloudpbx/backup/system/{backup_name}
    4. Export the compressed file.
      sudo sz /home/coldback.tar.gz
    5. Choose a path to save the file.

Restore a backup to a secondary server

When the primary YMP server breaks down, perform the following operations:

  1. Place the backup file to the secondary YMP server.
  2. Contact Yeastar and provide the following information, Yeastar support will restore the backup.
    • SSH user name and password of the secondary YMP server
      Note: The user should have sudo permission.
    • Web name and password of the primary YMP server