Overview

Backup management integrates multiple disaster recovery technologies such as incremental backup and full backup that are suitable for multiple business scenarios. You can implement local backup and remote backup based on your business needs.

Backup Service is a separate feature module. To use this service, purchase both the Base License and the Plus License of Backup Service. The Plus License cannot be used independently.

Typical Backup Scenarios

Backup Service can be applied to the following three typical scenarios: local backup, remote backup, and Public Cloud backup.
Note: If you have the Tenant Management Plus license at the same time, the project members (project managers, project admins, and general project members) can perform local backup for VM instances, elastic baremetal instances, and data volumes in the project.
  • Local Backup

    A local ImageStore image storage can act as the Local Backup Server to store scheduled backup data of the local VM instances, elastic baremetal instances, data volumes, and management node databases. Meanwhile, the seamless switchover between the primary local backup server and the secondary local backup server is supported, which effectively ensures your business continuity.

    If your local data is mistakenly deleted, or data in the local primary storage is damaged, you can recover the backup data from the local backup server, as shown in Local Backup Scenario-1

    Figure 1. Local Backup Scenario-1


    If you encounter a disaster in your local data center, you can rely totally on your local backup server to rebuild your data center and recover your business, as shown in Local Backup Scenario-2.

    Figure 2. Local Backup Scenario-2


  • Remote Backup

    A storage server in a remote data center can act as the Remote Backup Server to store the scheduled backup data of the local VM instances, elastic baremetal instances, volumes, and databases. The backup data needs to be synchronized to the remote backup server from the local backup server.

    If your local data is mistakenly deleted, or data in the local primary storage is damaged, you can recover the backup data from the remote backup server, as shown in Remote Backup Scenario-1

    Figure 3. Remote Backup Scenario-1


    If you encounter a disaster in your data center, you can rely totally on your remote backup server to rebuild your data center and recover your business, as shown in Remote Backup Scenario-2.

    Figure 4. Remote Backup Scenario-2


  • Public Cloud Backup
    The storage server in the Public Cloud can act as the Public Cloud Backup Server to store the scheduled backup data of the local VM instances, volumes, and databases. The backup data can be synchronized to the Public Cloud backup server from the local backup server.
    Note: The Public Cloud backup feature does not apply to elastic baremetal instances.

    If your local data is mistakenly deleted, or data in the local primary storage is damaged, you can recover the backup data from the Public Cloud backup server, as shown in Public Cloud Backup Scenario-1.

    Figure 5. Public Cloud Backup Scenario-1


    If you encounter a disaster in your data center, you can rely totally on your Public Cloud backup server to rebuild your data center and recover your business, as shown in Public Cloud Backup Scenario-2.

    Figure 6. Public Cloud Backup Scenario-2


  • ZStack Cloud allows you to integrate 3rd-party backup services via CBT interfaces. For details, contact the official technical support.

Preparations

  • Before you can use Backup Service, you need to install ZStack Cloud as the admin and deploy resources necessary for VM instances, elastic baremetal instances, or data volumes.
  • In addition, you need to purchase the Plus License of Backup Service as the admin.

Quick Start

Backup management module integrates multiple disaster recovery scenarios such as local backup, remote backup, and Public Cloud backup. You can choose different backup methods that are suitable to your business needs.

Local Backup

Local backup allows you to backup and recover the data of the local VM instances, elastic baremetal instances, data volumes, and management node databases.
  • Backup:
    • Backup the data of the local VM instances/elastic baremetal instances/data volumes/databases to a specified local backup server as scheduled.
    • If you specify two local backup servers, the failover mechanism is supported.
    • For backup jobs of local VM instances/elastic baremetal instances/data volumes, you can configure incremental backup and full backup according to your business needs.
  • Recover:
    • If your local data is mistakenly deleted, or data in the local primary storage is damaged, you can recover the backup data from the local backup server.
    • If you encounter a disaster in your local data center, you can rely totally on your local backup server to rebuild your data center and recover your business.
Local backup practice covers the following two parts:
  • Backup Practice:
    1. Add one or more local backup servers to the Cloud. To add a local backup server, see Local Backup Server.
    2. Create backup jobs of local VM instances/elastic baremetal instances/data volumes/databases. To create a backup job, see Backup Job.
    3. Manage local backup data. For more information, see Local Backup Data.
  • Recover Practice:
    1. Recover the backup data of local VM instances/elastic baremetal instances/data volumes/databases from the local backup server. To recover local backup data, see Local Backup Data.
    2. Check the recovered resources.

For detailed information of the local backup practice, see Local Backup Practice.

Remote Backup

Remote backup allows you to backup and recover the data of the local VM instances, elastic baremetal instances, data volumes, and management node databases to/from the remote backup server.
  • Backup:
    • Backup the data of the local VM instances/elastic baremetal instances/data volumes/databases to a specified remote backup server as scheduled.
    • The backup data needs to be synchronized to the remote backup server from the local backup server.
    • For backup jobs of local VM instances/elastic baremetal instances/data volumes, you can configure incremental backup and full backup according to your business needs.
  • Recover:
    • If your local data is mistakenly deleted, or data in the local primary storage is damaged, you can recover the backup data from the remote backup server.
    • If you encounter a disaster in your local data center, you can rely totally on your remote backup server to rebuild your data center and recover your business.
    • Before recovering the data of VM instances/elastic baremetal instances/data volumes, you need to synchronize the data from the remote backup server to local.
    • You can directly recover the backup data of databases to local.
Remote backup practice covers the following two parts:
  • Backup Practice:
    1. Add a remote backup server to the Cloud. To add a remote backup server, see Remote Backup Server.
    2. Add one or more local backup servers to the Cloud. To add a local backup server, see Local Backup Server.
    3. Create backup jobs of local VM instances/volumes/databases. To create a backup job, see Backup Job.
    4. Manage remote backup data. Form more information, see Remote Backup Data.
  • Recover Practice:
    1. Recover the backup data of local VM instances/elastic baremetal instances/data volumes/databases from the remote backup server. To recover the remote backup data, see Remote Backup Data.
    2. Check the recovered resources.

For detailed information of the remote backup practice, see Remote Backup Practice.

Public Cloud Backup

Public Cloud backup allows you to backup and recover the data of the local VM instances, elastic baremetal instances, data volumes, and management node databases to/from the Public Cloud backup server.
  • Backup:
    • Backup the data of the local VM instances/elastic baremetal instances/data volumes/databases to a specified Public Cloud backup server as scheduled.
    • The backup data needs to be synchronized to the Public Cloud backup server from the local backup server.
    • For backup jobs of local VM instances/elastic baremetal instances/data volumes, you can configure incremental backup and full backup according to your business needs.
  • Recover:
    • If your local data is mistakenly deleted, or data in the local primary storage is damaged, you can recover the backup data from the Public Cloud backup server.
    • If you encounter a disaster in your local data center, you can rely totally on your Public Cloud backup server to rebuild your data center and recover your business.
    • Before recovering the data of VM instances/elastic baremetal instances/data volumes, you need to synchronize the data from the Public Cloud backup server to local.
    • You can directly recover the backup data of databases to local.
Public Cloud backup practice covers the following two parts:
  • Backup Practice:
    1. Add a Public Cloud backup server to the Cloud. To add a Public Cloud backup server, see Remote Backup Server.
    2. Add one or more local backup servers to the Cloud. To add a local backup server, see Local Backup Server.
    3. Create backup jobs of local VM instances/volumes/databases. To create a backup job, see Backup Job.
    4. Manage Public Cloud backup data. For more information, see Remote Backup Data.
  • Recover Practice:
    1. Recover the backup data of local VM instances/volumes/databases from the Public Cloud backup server. To recover Public Cloud backup data, see Remote Backup Data.
    2. Check the recovered resources.

For detailed information of Public Cloud backup practice, see Public Cloud Backup Practice.

Backup Job

You can create backup jobs to back up VM instances, volumes, and databases on your local data center to specified local storage servers and sync the backup data to specified remote backup servers or backup servers on the public cloud.

The following describes how to create backup jobs for local VM instances and volumes and the management node database.

Overview

The backup job overview visually displays the backup job overview, resource overview, and backup job statistics of core resources on the Cloud.

On the main menu of ZStack Cloud, choose Platform O&M > Backup Management > Backup Service > Backup Job. On the Backup Job page, the Overview tab is displayed by default.

Figure 7. Backup Job Overview


Job Overview

Job overview displays backup job number and state on a card.

  • Total jobs: The total number of backup jobs on the Cloud, as well as the number of VM instance, elastic baremetal instance, data volume, and database backup jobs.
  • State: The state of backup jobs. Green indicates enabled, while red indicates disabled.

Resource Overview

Resource overview displays the backup and protection information about available VM instances/elastic baremetal instances/datavolumes on the Cloud.

  • VM Instance:
    • Backup Job: The number of VM instances that have backup jobs on the Cloud.
    • CDP Task: The number of VM instances that have CDP tasks on the Cloud.
    • No Task: The number of VM instances that have no backup jobs or CDP tasks on the Cloud.
  • Elastic Baremetal Instance:
    • Backup Job: The number of elastic baremetal instances that have backup jobs in the Cloud.
    • No Task: The number of elastic baremetal instances that have no backup jobs in the Cloud.
  • Data Volume:
    • Backup Job: The number of volumes that have backup jobs on the Cloud.
    • Other: The number of volumes attached by VM instances with CDP tasks or VM instances/elastic baremetal instances with backup jobs on the Cloud.
    • No Task: The number of volumes that have no backup jobs or CDP tasks on the Cloud.

Backup Job Statistics

Backup job statistics displays the execution of backup jobs in a line chart with time period as the horizontal axis and job number as the vertical axis.

You can set a time filter to the view the execution of backup jobs within the selected time period (by year/month/day).
  • Blue: The number of executed backup jobs within the selected time period.
  • Green: The number of succeeded backup jobs within the selected time period.
  • Yellow: The number of partially succeeded backup jobs within the selected time period. You can view the specific backup job result in the job details.
  • Red: The number of failed backup jobs within the selected time period.
  • Grey: The number of backup jobs that are scheduled to implement within the selected time period.
Note:
  • The time filter applies to both the line chart (backup job statistics) and list (backup record).
  • Allows you to view the execution of a backup job on the current date in hover.

Backup Record

Backup record displays the execution record of all backup jobs within the current time period, including execution time, name, backup resource, resources, backup mode, backup capacity, task result and time consumed. You can view the job details of a backup job.

Figure 8. Backup Job Details


Additional Information

  • The backup job overview displays static data that will be updated every time you enter the page.
  • Allows you to set an event alarm for a backup job, which triggers an alarm when a backup job fails.

Create a Backup Job

On the main menu of ZStack Cloud, choose Platform O&M > Backup Management > Backup Service > Backup Job. Then the Backup Job page appears. On the page, choose a resource type to be backed up and click Create Backup Job. Then, the Create Backup Job page appears.

You can create the following types of backup jobs:
  • Backup jobs for VM instances/elastic baremetal instances/data volumes
  • Backup jobs for the management node database

Create Backup Job for VM Instance/Elastic Baremetal Instance/Data Volume

Follow these four steps to create a backup job for VM instances/elastic baremetal instances/volumes:
  1. Set basic information.
    • Name: Enter a name for the backup job.

      The name must be 1 to 128 characters in length and can contain Chinese characters, letters, digits, spaces, hyphens (-), underscores (_), periods (.), parenthesis (), colons (:), and plus signs (+) and cannot begin or end with spaces.

    • Description: Optional. Enter a description for the backup job.
    • Local Backup Server: Specify one or more local backup servers.
      Note:
      • You can specify up to two local backup servers for a backup job.
      • Before you can specify a local backup server, you need to add the server to ZStack Cloud Private Cloud. For more information, see Add a Local Backup Server.
      • If you specify two local backup servers, by default, the first server added to the Cloud is the primary backup server and the second is the secondary backup server.
      • If you specify two local backup servers, these two servers apply the fail-over mechanism.
        • When the primary backup server works as expected, data is backed up on the primary backup server.
        • If the primary backup server is disabled, removed, or disconnected, data is backed up on the secondary backup server.
        • When the primary backup server resumes working as expected, data backup is auto-switched to the primary backup server.
    • Sync to Remote Backup Server: Choose whether to sync local backup data to a remote backup server. By default, the checkbox is not selected.
      Note:
      • Before you can sync backup data to a remote backup server, you need to add a remote backup server to the Cloud. Note that you can add only one remote backup server to the Cloud. For more information, see Add a Remote Backup Server.
      • You can sync VM instance/data volume backup data to a server that is in another data canter or from a public cloud.
      • You can sync elastic baremetal instance backup data to a server that is in another data center.
    • Remote Backup Server: Select a remote backup server if you want to sync data to a remote server.
    • Set QoS: Optional. You can set network QoS and disk QoS for the backup job.
      • Downstream Bandwidth: Set the maximum downstream bandwidth. Unit: Kbps, Mbps, and Gbps. Valid values: 8 Kbps to 30 Gbps. If you do not specify the downstream bandwidth, this bandwidth is unlimited.
      • Upstream Bandwidth: Set the maximum upstream bandwidth. Unit: Kbps, Mbps, and Gbps. Valid values: 8 Kbps to 30 Gbps. If you do not specify the upstream bandwidth, this bandwidth is unlimited.
      • Disk Read Speed: Set the maximum read speed. Unit: MB/s and GB/s. Valid values: 1MB/s to 100GB/s. If you do not specify the disk read speed, this speed is unlimited.
      • Disk Write Speed: Set the maximum write speed. Unit: MB/s and GB/s. Valid values: 1MB/s to 100GB/s. If you do not specify the disk write speed, this speed is unlimited.
      Note: We recommend that you set a QoS based on your physical network environments and the concurrent number of implemented backup jobs.
    Figure 9. Set Basic Information


  2. Select backup resource.

    Select VM instances/elastic baremetal instances/data volumes that you need to back up.

    • VM Instance/Elastic Baremetal Instance/Data Volume: Select the resources that you need to back up.
      Note:
      • VM Instance:
        • You can only back up running VM instances.
        • You cannot back up a VM instance with a CDP task.
        • You cannot create backup jobs for VM instances that use Vhost or ZBS (Vhost protocol) primary storage.
        • You can select multiple VM instances that do not exceed the authorized quota of the backup service.
        • If the selected VM instance has backup data, creating a backup job for it does not occupy any additional quota of the backup service.
      • Elastic Baremetal Instance:
        • You can only back up running elastic baremetal instances.
        • You can only back up elastic baremetal instances that use block storage volume as system volumes.
        • You can select multiple elastic baremetal instances that do not exceed the authorized quota of the backup service.
        • If the selected elastic baremetal instance has backup data, creating a backup job for it does not occupy any additional quota of the backup service.
      • Data Volume:
        • You can only back up data volumes attached to running VM/elastic baremetal instances.
        • You cannot back up data volumes attached to VM instances with CDP tasks.
    • Back up Volume: You can back up all volumes that are attached to the selected VM/elastic baremetal instances. By default, this switch is turned on.
      Note: You cannot back up shared volumes that are attached to a VM/elastic baremetal instance.
    Figure 10. Select Backup Resource


  3. Set backup policy.
    You can create a backup job in one of the following three backup modes:
    • Incremental Backup + Default Full Backup:
      • You only need to customize the incremental backup policy, and the full backup policy is set by default by system.
      • The Cloud performs incremental backup based on the custom incremental backup policy.
      • After the incremental backup is executed 63 times or a customized number of times, the Cloud will implement a full backup, which will delete the incremental backup records without affecting the data security.
    • Incremental Backup + Custom Full Backup:
      • You need to customize the incremental backup policy and the full backup policy.
      • The Cloud performs incremental backup and full backup based on the custom incremental backup policy and full backup policy.
      • After the incremental backup is executed 63 times or a customized number of times, the Cloud will implement a full backup, which will delete the incremental backup records without affecting the data security.
    • Full Backup Policy:
      • You need to customize the full backup policy.
      • The Cloud performs full backup based on the custom full backup policy.
    On the displayed page, set the following parameters:
    • Backup Mode: Select a backup mode for a backup job, including Incremental Backup + Default Full Backup, Incremental Backup + Custom Full Backup.
      • Incremental Backup + Default Full Backup:
        • Incremental Backup Policy: Customize an incremental backup policy.
          • Backup Cycle: Select a backup cycle. Options: Backup by Month, Backup by Week, Backup by Day, Backup by Hour, and Backup by Minute.
            If you select Backup by Month, Backup by Week, or Backup by Day, you can set the backup execution time and schedule the effective time of the backup job to the accuracy of a second.
            • Execution Time:
              • If you select Backup by Month and set the execution time to 00:00:00 of the first day of each month, the incremental backup job is executed at 00:00:00 of the first day of each month.
                Note: If you set the execution time to the 31th day of each month, the incremental backup job is executed only in the month that has 31 days.
              • If you select Backup by Week and set the execution time to 00:00:00 of Sunday and Tuesday of each week, the incremental backup job is executed at 00:00:00 of Sunday and Tuesday of each week.
              • If you select Backup by Day and set the execution time to 00:30:00, the incremental backup job is executed at 00:30:00 of each day.
            • Schedule Effective Time: Choose whether to schedule the time when the backup job takes effect.

              If you specify data backup by month, week, or day, you can schedule the time when the backup job takes effect. After the backup job takes effect, data backup is executed based on the specified cycle and time.

          If you select Backup by Hour or Backup by Minute, you can set a finer-grained incremental backup cycle.
          • Start Time to Implement:
            • If you choose to back up data every 6 hours and set the start time to 2020-12-30 00:00:00, incremental backup is implemented starting from 00:00:00, Dec 30, 2020 at an interval of 6 hours.
            • If you choose to back up data every 30 minutes and the start time to 2020-12-30 00:00:00, incremental backup is implemented starting from 00:00:00, Dec 30, 2020 at an interval of 30 minutes.
            Note: The minimum backup interval is 15 minutes.
      • Incremental Backup + Custom Full Backup:
          • Incremental Backup Policy: Customize an incremental backup policy.
            • Backup Cycle: Select a backup cycle. Options: Backup by Month, Backup by Week, Backup by Day, Backup by Hour, and Backup by Minute.
              If you select Backup by Month, Backup by Week, or Backup by Day, you can set the backup execution time and schedule the effective time of the backup job to the accuracy of a second.
              • Execution Time:
                • If you select Backup by Month and set the execution time to 00:00:00 of the first day of each month, the incremental backup job is executed at 00:00:00 of the first day of each month.
                  Note: If you set the execution time to the 31th day of each month, the incremental backup job is executed only in the month that has 31 days.
                • If you select Backup by Week and set the execution time to 00:00:00 of Sunday and Tuesday of each week, the incremental backup job is executed at 00:00:00 of Sunday and Tuesday of each week.
                • If you select Backup by Day and set the execution time to 00:30:00, the incremental backup job is executed at 00:30:00 of each day.
              • Schedule Effective Time: Choose whether to schedule the time when the backup job takes effect.

                If you specify data backup by month, week, or day, you can schedule the time when the backup job takes effect. After the backup job takes effect, data backup is executed based on the specified cycle and time.

            If you select Backup by Hour or Backup by Minute, you can set a finer-grained incremental backup cycle.
            • Start Time to Implement:
              • If you choose to back up data every 6 hours and set the start time to 2020-12-30 00:00:00, incremental backup is implemented starting from 00:00:00, Dec 30, 2020 at an interval of 6 hours.
              • If you choose to back up data every 30 minutes and the start time to 2020-12-30 00:00:00, incremental backup is implemented starting from 00:00:00, Dec 30, 2020 at an interval of 30 minutes.
              Note: The minimum backup interval is 15 minutes.
        • Full Backup Policy: Customize a full backup policy.
          • Backup Cycle: Select a backup cycle. Options: Backup by Month and Backup by Week.
            If you select Backup by Month or Backup by Week, you can set the backup execution time and schedule the effective time of the backup job to the accuracy of a second.
            • Execution Time: Set the time when the backup job is implemented.
              • If you select Backup by Month and set the execution time to 00:00:00 of the first day of each month, the full backup job is executed at 00:00:00 of the first day of each month.
                Note: If you set the execution time to the 31th day of each month, the full backup job is executed only in the month that has 31 days.
              • If you select Backup by Week and set the execution time to 00:00:00 of Sunday and Tuesday of each week, the full backup job is executed at 00:00:00 of Sunday and Tuesday of each week.
            • Schedule Effective Time: Choose whether to schedule the time when the backup job takes effect.

              You can schedule the time at which the backup job takes effect. After the backup job takes effect, data backup is executed based on the specified cycle and time.

      • Full Backup Policy:
        • Full Backup Policy: Customize a full backup policy.
          • Backup Cycle: Select a backup cycle. Options: Backup by Month and Backup by Week.
            If you select Backup by Month or Backup by Week, you can set the backup execution time and schedule the effective time of the backup job to the accuracy of a second.
            • Execution Time: Set the time when the backup job is implemented.
              • If you select Backup by Month and set the execution time to 00:00:00 of the first day of each month, the full backup job is executed at 00:00:00 of the first day of each month.
                Note: If you set the execution time to the 31th day of each month, the full backup job is executed only in the month that has 31 days.
              • If you select Backup by Week and set the execution time to 00:00:00 of Sunday and Tuesday of each week, the full backup job is executed at 00:00:00 of Sunday and Tuesday of each week.
            • Schedule Effective Time: Choose whether to schedule the time when the backup job takes effect.

              You can schedule the time at which the backup job takes effect. After the backup job takes effect, data backup is executed based on the specified cycle and time.

    • Backup Immediately: Choose whether to back up data immediately after the backup job is created. By default, this option is not selected.
    • Local Retention Policy: Set the policy how the local backup data is reserved. The data can be reserved by count or by time (day/week/month).
      • If by count, a minimum of 1 local backup can be reserved.
      • If by time, a minimum of 1 day of local backup can be reserved.
    • Remote Retention Policy: Set the policy how the remote backup data is reserved. The data can be reserved permanently, by count, or by time (day/week/month).
      • If permanently, the remote backup data will not be cleared automatically.
      • If by count, a minimum of 1 remote backup can be reserved.
      • If by time, a minimum of 1 day of remote backup can be reserved.
    Figure 11. Set Backup Policy


  4. Preview.

    Preview the backup job. You can click the Edit icon to modify the job.

    Figure 12. Preview


Create Backup Job for Management Node Database

On the main menu of ZStack Cloud, choose Platform O&M > Backup Management > Backup Service > Backup Job. Then the Backup Job page appears. On the page, choose Database > Create Backup Job. Then the Create Backup Job page appears.

On the displayed page, set the following parameters:
  • Name: Enter a name for the backup job.
  • Description: Optional. Enter a description for the backup job.
  • Backup Resource: The management node database is displayed
  • Local Backup Server: Specify one or more local backup servers.
    Note:
    • You can specify up to two local backup servers for a backup job.
    • Before you can specify a local backup server, you need to add the server to ZStack Cloud Private Cloud. For more information, see Add a Local Backup Server.
    • If you specify two local backup servers, by default, the first server added to the Cloud is the primary backup server and the second is the secondary backup server.
    • If you specify two local backup servers, these two servers apply the fail-over mechanism.
      • When the primary backup server works as expected, data is backed up on the primary backup server.
      • If the primary backup server is disabled, removed, or disconnected, data is backed up on the secondary backup server.
      • When the primary backup server resumes working as expected, data backup is auto-switched to the primary backup server.
  • Sync to Remote Backup Server: Choose whether to sync local backup data to a remote backup server. By default, the checkbox is not selected.
    Note:
    • Before you can sync backup data to a remote backup server, you need to add a remote backup server to the Cloud. Note that you can add only one remote backup server to the Cloud. For more information, see Add a Remote Backup Server.
    • You can sync VM instance/data volume backup data to a server that is in another data canter or from a public cloud.
    • You can sync elastic baremetal instance backup data to a server that is in another data center.
  • Remote Backup Server: Select a remote backup server if you want to sync data to a remote server.
  • Backup Policy: Set the backup policy for the backup job.
    • Backup Cycle: Select a backup cycle. Options: Backup by Week, Backup by Day, and Backup by Hour.
      If you select Backup by Week, Backup by Day, you can set the backup execution time of the full backup job to the accuracy of a second.
      • Execution Time: Set the time when the backup job is implemented.
        • If you select Backup by Week and set the execution time to 00:00:00 of Sunday and Tuesday of each week, the full backup job is executed at 00:00:00 of Sunday and Tuesday of each week.
        • If you select Backup by Day and set the execution time to 00:30:00, the full backup job is executed at 00:30:00 of each day.

      If you select Backup by Hour, you can set finer-grained full backup job cycle to the accuracy of a second.

      • Interval:
        • Backup by the hour, with an interval of 2 hours. The full backup job is executed at an interval of 2 hours.
        Note:
        • The minimum interval between backup jobs is 1 hour.
        • If you select Backup by Hour, you can back up on the hour from the moment the backup task is created.
  • Data Retention Policy: Specify how the local backup data and remote backup data is reserved.
    • Local Retention Policy: Set the retention policy for local backup data. Options: by count and by time (day/week/month).
      • If by count, a minimum of 1 local backup can be reserved.
      • If by time, a minimum of 1 day of local backup can be reserved.
    • Remote Retention Policy: Set the retention policy for remote backup data. Options: permanent, by count, and by time (day/week/month).
      • If permanent, the remote backup data will not be cleared automatically.
      • If by count, a minimum of 1 remote backup can be reserved.
      • If by time, a minimum of 1 day of remote backup can be reserved.
Figure 13. Create Backup Job for Management Node Database


Notes

  • By default, the value of incrementalBackup.maxNum is 64. This value indicates that the Cloud will implement a full backup after the incremental backup is executed 63 times. You can also use zstack-cli to modify the value:
    [root@localhost ~]# zstack-cli
    admin>>> LogInByAccount accountName=admin password=password  //Log into the system.The default username and password combination is admin/password.
    admin >>>UpdateGlobalConfig category=volumeBackup name=incrementalBackup.maxNum value=10  //Update the maximum times of incremental backup.
    {
        "inventory": {
            "category": "volumeBackup",
            "defaultValue": "64",
            "description": "the maximum numbers of continuous incremental backup",
            "name": "incrementalBackup.maxNum",
            "value": "10"
        },
        "success": true
    }
  • After you set a data retention policy, only records are deleted for data outside the retention policy, which does not affect data security.
  • If a full backup and incremental backup are triggered at the same time, the two backups are executed in queue.
  • You can check the incremental backup data and full backup data on the Local Backup Data page. If you have selected Sync to Remote Backup Server, you can check the backup data on the remote backup server.

Manage a Backup Job

On the main menu of ZStack Cloud, choose Platform O&M > Backup Management > Backup Service > Backup Job. Then the Backup Job page appears.

The following table lists the actions that you can perform on a backup job for VM instances and volumes.
Action Description
Edit Backup Job Edit the name and description of a backup job.
Enable Backup Job Enable a backup job.
Disable Backup Job Disable a backup job. If you disable a backup job, data backup will not be implemented for the associated resources. In addition, you cannot create new backup jobs for the resources.
Set Backup Policy Update the backup policy of the backup job. You can edit the backup mode, backup retention policy, incremental backup policy, and full backup policy.
Note: New backup policies do not affect backup jobs that have been triggered.
Set Backup Server Configure local backup servers and remote backup servers for the backup job.
Backup Now Implementing a backup job right now will generate a new backup in the backup chain.
Note:
  • If the backup mode of the backup job is Incremental Backup + Default Full Backup, the manual backup is implemented in the mode the same as the next backup. Full backup is not supported.
  • If the backup mode of the backup job is Incremental Backup + Custom Full Backup, you can choose whether to implement full backup. If you do not choose to implement full backup, the manual backup is implemented in the mode the same as the next backup. Full backup is not supported.
  • If the backup mode of the backup job is Full Backup Policy, a full backup will be implemented. By default, the Full Backup switch is enabled and cannot be disabled.
  • After you successfully perform manual execution, you can view the ongoing backup job on the Auto-Scheduling Task tab.
  • If the manual execution fails, you can view the task record on the Cloud Operation Logs tab or the Overview tab on the Backup Job page.
Delete Backup Job Delete a backup job. If you delete a backup job, data backup is terminated for the associated resources. You can create new backup jobs for the resources.
Note:
  • If you have already created a backup job for a resource, you cannot create another backup job for the resource.
  • After you delete a backup job for a resource, you can create a new backup job for the resource.
The following table lists the actions that you can perform on a backup job for the database.
Action Description
Edit Backup Job Edit the name and description of a backup job.
Enable Backup Job Enable a backup job.
Disable Backup Job Disable a backup job. If you disable a backup job, data backup will not be implemented for the associated resources. In addition, you cannot create new backup jobs for the resources.
Backup Now Implementing a backup job right now will generate a new backup in the backup chain.
Delete Backup Job Delete a backup job. If you delete a backup job, data backup is terminated for the associated resources. You can create new backup jobs for the resources.
Note:
  • If you have already created a backup job for a resource, you cannot create another backup job for the resource.
  • After you delete a backup job for a resource, you can create a new backup job for the resource.

Local Backup Data

The local backup data is the data of local VM instances, elastic baremetal instances, data volumes, and databases backed up in the local backup server. You can manage the local backup data on the Local Backup Data page.
  • You can restore the backup data to your local server or synchronize the data to a remote backup server.
  • When you restore a database, refreshing the browser will make the UI display improperly without affecting the restoring process.
  • With the Backup Service, you can back up or restore the data stored in the management node database. Note that the operation logs and monitoring information cannot be backed up or restored.
The following lists the actions that you can perform on the local backup data:
  • View the local backup data.
  • Restore the local backup data.
  • Synchronize the local backup data to a remote backup server.
  • Delete the local backup data.
  • Scan the database backup.
  • Export the backup data of the local database.

View the Local Backup Data

On the main menu of ZStack Cloud, choose Platform O&M > Backup Management > Backup Service > Local Backup Data. On the Local Backup Data page, you can manage the local backup data.

Figure 14. Local Backup Data


  • This page includes three tab pages: VM Instance, Elastic Baremetal Instance, Data Volume, and Database. Each tab page displays the backup data generated based on the backup jobs.
  • The backup data is displayed as a folder by resource or database.
  • Under each resource or database folder, the backup data of the resource or database is arranged in order based on the latest creation date.

Restore the Local Backup Data

You can restore the local backup data of the local VM instances, volumes, or databases to your local server.

  • Restore a local VM instance

    On the Local Backup Data page, select the backup data of a VM instance and choose Restore from the Actions column. Then, the Recover Backup Data page is displayed.

    On the displayed page, set the following parameters:
    • Recovery Policy: Select a recovery policy.
      The following two policies are available:
      • New Resource:
        If you choose this policy, set the following parameters:
        • Name: Set a name for the VM instance.
        • Description: Optional. Enter a description for the VM instance.
        • Instance Offering: Select an instance offering for the VM instance.
        • Network Configuration: Select a network for the VM instance.
        • Recover Volume Data: Choose whether to recover the volume data.
          Note: If the selected backup data is the whole backup data of the VM instance, you can restore the VM instance with its volumes to the local server. This helps ensure the data consistency.
        • Advanced Settings:
          • Primary Storage: Optional. Specify a primary storage for the root volumes of the VM instance.
            Note:
            When you restore the backup data of a VM instance that uses a SharedBlock primary storage, you need to choose a provisioning method, including thin provisioning and thick provisioning.
            • Thin provisioning: Allocates storage spaces to VM instances according to the actual usage to achieve higher storage utilization.
            • Thick provisioning: Pre-allocates the required storage space, providing sufficient storage capacity to VM instances and ensures the storage performance.
          • Host: Optional. Specify a host on which the VM instance is started.
        Figure 15. New Resource


      • Overwrite Original Resource:
        If you choose this policy, set the following parameters:
        • Name: The name of the original resource is displayed.
        • Description: The description (if any) of the original resource is displayed.
        • Recover Volume Data: Choose whether to recover the volume data.
        Figure 16. Overwrite Original Resource


        Note:
        • Before you can overwrite the original resource, stop the VM instance first.
        • If the selected backup data is the whole backup data of the VM instance, you can restore the VM instance with its volumes to the local server. This helps ensure the data consistency.
  • Restore an elastic baremetal instance

    On the Local Backup Data page, select the backup data of an elastic baremetal instance and choose Restore from the Actions column. Then, the Recover Backup Data page is displayed.

    On the displayed page, set the following parameters:
    • Recovery Policy: Select a recovery policy.
      The following two policies are available:
      • New Resource:
        If you choose this policy, set the following parameters:
        • Name: Set a name for the elastic baremetal instance.
        • Description: Optional. Enter a description for the elastic baremetal instance.
        • Elastic Baremetal Cluster: Select a cluster where the instance resides. If left blank, the system automatically assign a cluster,
        • Creation Mode: Select an instance creation mode. Supports Add By Baremetal Node and Add By Baremetal Offering.
        • Baremetal Node/Baremetal Offering: According to the selected creation mode, select a baremetal node or offering to create the instance.
        • Power Off to Release Baremetal Node: If enabled, when the elastic baremetal instances is stopped, the baremetal node will be automatically released and then can be used by another elastic baremetal instance to avoid idle resources.
        • Primary Storage: Select a primary storage for the instance.
        • Recover Volume Data: Choose whether to recover the volume data.
          Note: If the selected backup data is the whole backup data of the elastic baremetal instance, you can restore the instance with its volumes to the local server. This helps ensure the data consistency.
        • Advanced Settings:
          • Gateway Node Allocation Policy: Select a gateway node allocation policy.
          • First Assigned Gateway Node: Optional. Select a gateway node for the first startup of the elastic baremetal instance. If you do not specify a gateway node, the gateway node selected based on the gateway node allocation policy is used. This option takes effect only on the first start-up of the elastic baremetal instance. Afterwards, gateway nodes are assigned based on the gateway node allocation policy.
        Figure 17. New Resource


      • Overwrite Original Resource:
        If you choose this policy, set the following parameters:
        • Name: The name of the original resource is displayed.
        • Description: The description (if any) of the original resource is displayed.
        • Recover Volume Data: Choose whether to recover the volume data.
        Note:
        • Before you can overwrite the original resource, stop the elastic baremetal instance first.
        • If the selected backup data is the whole backup data of the instance, you can restore the VM instance with its volumes to the local server. This helps ensure the data consistency.
  • Restore a volume

    On the Local Backup Data page, select the backup data of a volume and choose Restore from the Actions column. Then, the Recover Backup Data page is displayed.

    On the displayed page, set the following parameters:
    • Recovery Policy: Select a recovery policy.
      The following two policies are available:
      • New Resource:
        If you choose this policy, set the following parameters:
        • Name: Set a name for the volume.
        • Description: Optional. Enter a description for the volume.
        • VM Instance: Select a VM instance to which the volume is to be attached.
          Note:
          When you restore the backup data of a volume that uses a SharedBlock primary storage, you need to choose a provisioning method, including thin provisioning and thick provisioning.
          • Thin provisioning: Allocates storage spaces to volumes according to the actual usage to achieve higher storage utilization.
          • Thick provisioning: Pre-allocates the required storage space, providing sufficient storage capacity to volumes and ensures the storage performance.
        • Primary Storage: The primary storage used by the VM instance is displayed.
        • VirtIO SCSI: Choose whether to create VirtIO SCSI data volumes. By default, this checkbox is not selected.
          Note: If you are using a LocalStorage primary storage, we recommend that you do not use VirtIO SCSI data volumes.
        Figure 18. New Resource


      • Overwrite Original Resource:
        If you choose this policy, you do not need to make any settings.
        • Name: The name of the original resource is displayed.
        • Description: The description (if any) of the original resource is displayed.
        Figure 19. Overwrite Original Resource


  • Restore a database
    • Assume that the original ZStack Cloud Private Cloud exists and you want to restore the database from the local backup data to overwrite the original one.
      1. Make sure that the global setting Database Recovery from Backup Data is enabled.

        On the main menu of ZStack Cloud, choose Settings > Global Setting > Advanced > Platform O&M > Backup Management and set Database Recovery from Backup Data to true. This allows you to restore a database from the backup data.

      2. On the Database tab page, select the specified backup data and choose Restore from the Actions column.
      3. In the displayed Recover Database dialog box, enter the root password. The initial password is zstack.mysql.password.
        Figure 20. Recover Database


        Note:
        • Restoring the database restarts the management node, during which time the management interface cannot be used.
        • This process usually takes a few minutes without affecting your business resources.
        • If you deleted a resource (such as a VM instance or volume) after the backup point, the deleted resource will become invalid and its data cannot be restored. You can clean up the invalid data manually.
      4. The system restores the database.
        Figure 21. Restoring Database


      5. The database is restored successfully. You can click Relogin to log in to the Cloud again.
        Figure 22. Database Restored Successfully


        Note: After the database is restored, all resources of the Cloud are back to the original state before the backup. You can click Scan Backup Data in the local backup server page to obtain the actual backup data information.
    • Assume that the original ZStack Cloud Private Cloud does not exist and you want to restore the database from the local backup data to build a new Cloud.
      1. Log in to the system. Then, the Welcome to use our Cloud page is displayed. Choose Restore Backup Data > Restore.
        Figure 23. Restore Backup Data


      2. Prepare the server.
        On the Prepare Server page, set the following parameters:
        • Backup Server IP: Enter the IP address of the local backup server.
        • URL: Enter the URL of the storage mounted to the local backup server. For example, /mnt/xxx_ds.
          Note: The backup data of the database is stored in the storage of the URL.
        • SSH Port: Enter the SSH port. Default: 22.
        • User Name: Enter the user name. Default: root.
        • Password: Enter the password.
        Figure 24. Prepare Server


      3. Prepare backup data.
        On the Prepare Backup Data page, set the following parameters:
        • Database Backup Data: Select the backup data of the database to restore.
        Figure 25. Prepare Backup Data


        Note:
        • The system will detect the number of the licensed hosts (CPU cores). You need to select the appropriate database backup data to restore. You can also update the license to increase the licensed quota to avoid the management node start failure due to insufficient licensed quota.
      4. In the displayed Recover Database dialog box, enter the root password. The initial password is zstack.mysql.password.
        Figure 26. Restore Database


        Note:
        • Restoring the database restarts the management node, during which time the management interface cannot be used.
        • This process usually takes a few minutes without affecting your business resources.
        • If you deleted a resource (such as a VM instance or volume) after the backup point, the deleted resource will become invalid and its data cannot be restored. You can clean up the invalid data manually.
      5. The system restores the database.
        Figure 27. Restoring Database


      6. The database is restored successfully. You can click Relogin to log in to the Cloud again.
        Figure 28. Database Restored Successfully


        Note: After the database is restored, all resources of the Cloud are back to the original state before the backup. You can click Scan Backup Data in the local backup server page to obtain the actual backup data information.
      Note:
      • If the management node fails to start due to insufficient licensed quota, a pop up window will be displayed, prompting you to increase the licensed quota and then restore the database.
      • Here are some notices on the business recovery in a newly-built data center:
        • If the network topology and storage architecture of the new data center are the same as those of the original one, the business will be recovered after all hardware resources (such as hosts and primary storages) are successfully reconnected.
        • If the network topology and storage architecture of the new data center are different from those of the original one, you can recover your business by adding a new host and rebuilding a network topology.

Synchronize Local Backup Data to a Remote Server

You can synchronize the backup data of local VM instances, volumes, and databases to a remote backup server.
Note: Before you can synchronize data to a remote server, add a remote backup server to ZStack Cloud Private Cloud. Note that you can add only one remote backup server. For information about how to add a remote backup server, see Remote Backup Server.

Delete Local Backup Data

You can delete the local backup data of local VM instances, volumes, and databases.
Note: By default, only the local backup data is deleted. To delete the backup data in the remote backup server, select Delete Also Data on Remote Backup Server.

Scan Database Backup

You can scan the local backup server to obtain the database backup data on the local backup server.
Note: For a newly added local backup server, you can manually scan the database backup to ensure that the records of the local backup data of the database in the local backup server are consistent with the local records.

Export Backup Data of a Local Database

On the Local Backup Data page, select a backup data and choose Export from the Actions column. Then, you can export the backup data of the database.
Figure 29. Database Backup Exported Successfully


Local Backup Server

On the main menu of ZStack Cloud, choose Platform O&M > Backup Management > Backup Server > Local Backup Server. On the Local Backup Server page, click Add Local Backup Server. Then, the Add Local Backup Server page is displayed.

You can add a local backup server by using one of the following methods:
  • Use an existing image storage.
  • Add a new server.

Use an Existing Image Storage

On the displayed page, set the following parameters:
  • Zone: By default, the current zone is displayed.
  • Addition Method: Select Existing Image Storage.
  • Image Storage: Add an image storage. Only ImageStore image storage are supported.
    Note: Make sure that the image storage uses an operating system consistent with that of the management node.
  • Backup Network: Enter the backup network CIDR.
    Note:
    • If you deployed a network dedicated to local backup, you can add the network to the Cloud directly.
    • In local backup scenarios, this backup network is used for VM, volume, and database backing up and recovery, CDP task creation, and CDP data recovery.
    • Using a dedicated network can avoid network congestions and improve the transmission efficiency.
  • Backup Data: Optional. Choose whether to scan the existing backup data.
    Note: Deleted backup data cannot be restored by this operation.
Figure 30. Add Existing Image Storage


Add a New Server

On the displayed page, set the following parameters:
  • Zone: By default, the current zone is displayed.
  • Addition Method: Select Add Server to add a new server.
  • Name: Enter a name for the local backup server.

    The name must be 1 to 128 characters in length and can contain Chinese characters, letters, digits, spaces, hyphens (-), underscores (_), periods (.), parenthesis (), colons (:), and plus signs (+) and cannot begin or end with spaces.

  • Description: Optional. Enter a description for the local backup server.
  • Backup Server IP: Enter the IP address of the local backup server.
    Note:
    • You need to prepare a new storage server in the local data center as a local backup server.
    • Make sure that the backup server uses an operating system consistent with that of the management node.
  • Mount Path: Enter the path to which the storage is mounted, for example, /mnt/xxx_ds.
  • SSH Port: Enter the SSH port. Default: 22.
  • User Name: Enter the user name. Default: root.
  • Password: Enter the password.
  • Backup Network: Enter the backup network CIDR.
    Note:
    • If you deployed a network dedicated to local backup, you can add the network to the Cloud directly.
    • In local backup scenarios, this backup network is used for VM, volume, and database backing up and recovery, CDP task creation, and CDP data recovery.
    • Using a dedicated network can avoid network congestions and improve the transmission efficiency.
  • Backup Data: Choose whether to scan the existing backup data.
    Note: Deleted backup data cannot be restored by this operation.
Figure 31. Add Server


Manage a Local Backup Server

On the main menu of ZStack Cloud, choose Platform O&M > Backup Management > Backup Server > Local Backup Server. Then, the Local Backup Server page is displayed.

The following table lists the actions that you can perform on a local backup server.
Action Description
Add Local Backup Server Use an existing image storage (ImageStore only) as the local backup server or add a new server as the local backup server.
Enable Local Backup Server Enable a disabled local backup server.
Disable Local Backup Server Disable an enabled local backup server.
Note:
  • If you specify only one local backup server for a backup job, disabling the local backup server will make the backup job fail.
  • If you specify more than one local backup server for a backup job, when you disable the active one, the backup job will be implemented on the standby one.
Reconnect Local Backup Server Reconnecting a local backup server will update the records of the backup data on the local backup server.
Scan Backup Data Scan the existing backup data in the local backup server and display the backup data records on the Cloud platform.
Note: Deleted backup data cannot be restored by the scan action.
Cleanup Data Clean up the invalid backup data and expired temporary data that have been completely deleted from the local backup server to free up the storage space.
Update Password Change the password of a local backup server.
Delete Local Backup Server Delete a local backup server.
Note: Deleting a local backup server will stop the backup jobs and CDP tasks on the server. Please exercise caution.

Remote Backup Server

On the main menu of ZStack Cloud, choose Platform O&M > Backup Management > Backup Server > Remote Backup Server. On the Remote Backup Server page, click Add Remote Backup Server. Then, the Add Remote Backup Server page is displayed.

You can add a remote backup server by using one of the following methods:
  • Add a remote backup server.
  • Add an Alibaba Cloud backup server.

Add a remote backup server

On the displayed page, set the following parameters:
  • Name: Enter a name for the remote backup server. The name must be 1 to 128 characters in length and can contain Chinese characters, letters, digits, spaces, hyphens (-), underscores (_), periods (.), parenthesis (), colons (:), and plus signs (+) and cannot begin or end with spaces.
  • Description: Optional. Enter a description for the remote backup server.
  • Type: select Remote Backup here.
  • Zone: Select the zone to which the remote backup server is mounted.
  • Backup Server IP: Enter the IP address of the remote backup server.
    Note:
    • You need to prepare a new storage server in the remote data center as a remote backup server.
    • Make sure that the backup server uses an operating system consistent with that of the management node of ZStack Cloud.
  • Mount Path: Enter the path to which the storage is mounted, for example, /mnt/remote_ds.
  • SSH Port: Enter the SSH port. Default: 22.
  • User Name: Enter the user name. Default: root.
  • Password: Enter the password.
Figure 32. Add Remote Backup Server


Add an Alibaba Cloud backup server

On the displayed page, set the following parameters:
  • Name: Enter a name for the Alibaba Cloud backup server.

    The name must be 1 to 128 characters in length and can contain Chinese characters, letters, digits, spaces, hyphens (-), underscores (_), periods (.), parenthesis (), colons (:), and plus signs (+) and cannot begin or end with spaces.

  • Description: Optional. Enter a description for the remote backup server.
  • Type: select Alibaba Cloud Backup here.
  • Zone: Select the zone to which the Alibaba Cloud backup server is mounted.
  • Backup Server IP: Enter the IP address of the Alibaba Cloud backup server.
    Note:
    You need to prepare a new storage server in the Alibaba Cloud as a remote backup server. Method:
    1. Download the standard backup service image from the official website of ZStack Cloud.
    2. Create an ECS instance based on the standard image. Note that a public IP address is required.
    3. Purchase the NAS storage in the Alibaba Cloud console.
    4. Mount the NAS storage to the ECS instance.
    5. Enter the public IP address of the ECS instance as the IP address of the Alibaba Cloud backup server.
  • Mount Path: Enter the path to which the NAS storage is mounted, for example, /mnt/remote_ds.
  • SSH Port: Enter the SSH port. Default: 22.
  • User Name: Enter the user name. Default: root.
  • Password: Enter the password.
Figure 33. Add Alibaba Cloud Backup Server


Remote Backup Data

The remote backup data is the data of the local VM instances, elastic baremetal instances, volumes, and databases backed up in the remote backup server. You can manage the remote backup data on the Backup Data tab page of the Remote Backup Server details page.

The following lists the actions that you can perform on the remote backup data:
  • View the remote backup data.
  • Synchronize the remote backup data to a local server.
  • Delete the remote backup data.
  • Restore the remote backup data.
  • Scan the database backup.
  • Export the backup data of the remote database.

View the Remote Backup Data

On the main menu of ZStack Cloud, choose Platform O&M > Backup Management > Backup Server > Remote Backup Server. Then, the Remote Backup Server page is displayed. Click on the name of a remote backup server to expand its details page. On the Backup Data tab page, you can manage the remote backup data.

Synchronize the Remote Backup Data to a Local Server

You can synchronize the remote backup data of the local VM instances, elastic baremetal instances, data volumes, and databases to a local server.
Note:
  • If you added only one local backup server, the remote backup data will be synchronized to this local backup server.
  • If you added multiple local backup servers, you need specify a local backup server and then synchronize the remote backup data to the local server.

Delete Remote Backup Data

You can delete the remote backup data of local VM instances, elastic baremetal instances, data volumes, and databases.
Note: Deleting the remote backup data also deletes the local records of the remote backup data. The actual data is not affected.

Restore the Remote Backup Data

You can restore the remote backup data of the local VM instances, elastic baremetal instances, data volumes, or databases to your local server.
  • Before you can restore the remote backup data to a local server, synchronize the remote data of the local VM instances, elastic baremetal instances, and data volumes to the local backup server.
  • The remote backup data of the database is directly restored to the local server.
  • Restore a local VM instance
    1. On the Backup Data tab page of the Remote Backup Server details page, select the remote backup data of a VM instance and choose Sync to Local from the Actions column.
    2. Click on the backup data to expand its details page and choose Restore from the Actions column. Then, the Recover Backup Data page is displayed.
    3. On the Recover Backup Data page, set the following parameters:
      • Recovery Policy: Select a recovery policy.
        The following two policies are available:
        • New Resource:
          If you choose this policy, set the following parameters:
          • Name: Set a name for the VM instance.
          • Description: Optional. Enter a description for the VM instance.
          • Instance Offering: Select an instance offering for the VM instance.
          • Network Configuration: Select a network for the VM instance.
          • Recover Volume Data: Choose whether to recover the volume data.
            Note: If the selected backup data is the whole backup data of the VM instance, you can restore the VM instance with its volumes to the local server. This helps ensure the data consistency.
          • Advanced Settings:
            • Primary Storage: Optional. Specify a primary storage for the root volumes of the VM instance.
              Note:
              When you restore the backup data of a VM instance that uses a SharedBlock primary storage, you need to choose a provisioning method, including thin provisioning and thick provisioning.
              • Thin provisioning: Allocates storage spaces to VM instances according to the actual usage to achieve higher storage utilization.
              • Thick provisioning: Pre-allocates the required storage space, providing sufficient storage capacity to VM instances and ensures the storage performance.
            • Host: Optional. Specify a host on which the VM instance is started.
          Figure 34. New Resource


        • Overwrite Original Resource:
          If you choose this policy, set the following parameters:
          • Name: The name of the original resource is displayed.
          • Description: The description (if any) of the original resource is displayed.
          • Recover Volume Data: Choose whether to recover the volume data.
          Figure 35. Overwrite Original Resource


          Note:
          • Before you can overwrite the original resource, stop the VM instance first.
          • If the selected backup data is the whole backup data of the VM instance, you can restore the VM instance with its volumes to the local server. This helps ensure the data consistency.
  • Restore an elastic baremetal instance
    1. On the Backup Data tab page of the Remote Backup Server details page, select the remote backup data of an elastic baremetal instance, and choose Sync to Local from the Actions column.
    2. Click on the backup data to expand its details page, and choose Restore from the Actions column. Then, the Recover Backup Data page is displayed. On the displayed page, set the following parameters:
      • Recovery Policy: Select a recovery policy.
        The following two policies are available:
        • New Resource:
          If you choose this policy, set the following parameters:
          • Name: Set a name for the elastic baremetal instance.
          • Description: Optional. Enter a description for the elastic baremetal instance.
          • Elastic Baremetal Cluster: Select a cluster where the instance resides. If left blank, the system automatically assign a cluster,
          • Creation Mode: Select an instance creation mode. Supports Add By Baremetal Node and Add By Baremetal Offering.
          • Baremetal Node/Baremetal Offering: According to the selected creation mode, select a baremetal node or offering to create the instance.
          • Power Off to Release Baremetal Node: If enabled, when the elastic baremetal instances is stopped, the baremetal node will be automatically released and then can be used by another elastic baremetal instance to avoid idle resources.
          • Primary Storage: Select a primary storage for the instance.
          • Recover Volume Data: Choose whether to recover the volume data.
            Note: If the selected backup data is the whole backup data of the elastic baremetal instance, you can restore the instance with its volumes to the local server. This helps ensure the data consistency.
          • Advanced Settings:
            • Gateway Node Allocation Policy: Select a gateway node allocation policy.
            • First Assigned Gateway Node: Optional. Select a gateway node for the first startup of the elastic baremetal instance. If you do not specify a gateway node, the gateway node selected based on the gateway node allocation policy is used. This option takes effect only on the first start-up of the elastic baremetal instance. Afterwards, gateway nodes are assigned based on the gateway node allocation policy.
          Figure 36. New Resource


        • Overwrite Original Resource:
          If you choose this policy, set the following parameters:
          • Name: The name of the original resource is displayed.
          • Description: The description (if any) of the original resource is displayed.
          • Recover Volume Data: Choose whether to recover the volume data.
          Note:
          • Before you can overwrite the original resource, stop the elastic baremetal instance first.
          • If the selected backup data is the whole backup data of the instance, you can restore the VM instance with its volumes to the local server. This helps ensure the data consistency.
  • Restore a volume
    1. On the Backup Data tab page of the Remote Backup Server details page, select the remote backup data of a data volume, and choose Sync to Local from the Actions column.
    2. Click on the backup data to expand its details page, and choose Restore from the Actions column. Then, the Recover Backup Data page is displayed. On the displayed page, set the following parameters:
      • Recovery Policy: Select a recovery policy.
        The following two policies are available:
        • New Resource:
          If you choose this policy, set the following parameters:
          • Name: Set a name for the volume.
          • Description: Optional. Enter a description for the volume.
          • VM Instance: Select a VM instance to which the volume is to be attached.
            Note:
            When you restore the backup data of a volume that uses a SharedBlock primary storage, you need to choose a provisioning method, including thin provisioning and thick provisioning.
            • Thin provisioning: Allocates storage spaces to volumes according to the actual usage to achieve higher storage utilization.
            • Thick provisioning: Pre-allocates the required storage space, providing sufficient storage capacity to volumes and ensures the storage performance.
          • Primary Storage: The primary storage used by the VM instance is displayed.
          • VirtIO SCSI: Choose whether to create VirtIO SCSI data volumes. By default, this checkbox is not selected.
            Note: If you are using a LocalStorage primary storage, we recommend that you do not use VirtIO SCSI data volumes.
          Figure 37. New Resource


        • Overwrite Original Resource:
          If you choose this policy, you do not need to make any settings.
          • Name: The name of the original resource is displayed.
          • Description: The description (if any) of the original resource is displayed.
          Figure 38. Overwrite Original Resource


  • Restore a database
    • Assume that the original ZStack Cloud Private Cloud exists and you want to restore the database from the remote backup data to overwrite the original one.
      1. Make sure that the global setting Database Recovery from Backup Data is enabled.

        On the main menu of ZStack Cloud, choose Settings > Global Setting > Advanced > Platform O&M > Backup Management and set Database Recovery from Backup Data to true. This allows you to restore a database from the backup data.

      2. On the Backup Data tab page of the Remote Backup Server details page, select the remote backup data of a database, and choose Restore from the Actions column. In the displayed Recover Database dialog box, enter the root password. The initial password is zstack.mysql.password.
        Figure 39. Recover Database


        Note:
        • Restoring the database restarts the management node, during which time the management interface cannot be used.
        • This process usually takes a few minutes without affecting your business resources.
        • If you deleted a resource (such as a VM instance or volume) after the backup point, the deleted resource will become invalid and its data cannot be restored. You can clean up the invalid data manually.
      3. The system restores the database.
        Figure 40. Restoring Database


      4. The database is restored successfully. You can click Relogin to log in to the Cloud again.
        Figure 41. Database Restored Successfully


        Note: After the database is restored, all resources of the Cloud are back to the original state before the backup. You can click Scan Backup Data in the local backup server page to obtain the actual backup data information.
    • Assume that the original ZStack Cloud Private Cloud does not exist and you want to restore the database from the remote backup data to build a new Cloud.
      1. Log in to the system. Then, the Welcome to use our Cloud page is displayed. Choose Restore Backup Data > Restore.
        Figure 42. Restore Backup Data


      2. Prepare the server.
        On the Prepare Server page, set the following parameters:
        • Backup Server IP: Enter the IP address of the remote backup server.
          Note: Make sure that the backup data of the database in the remote backup server is intact.
        • URL: Enter the URL of the storage mounted to the remote backup server. For example, /mnt/remote_ds.
          Note: The backup data of the database is stored in the storage of the URL.
        • SSH Port: Enter the SSH port. Default: 22.
        • User Name: Enter the user name. Default: root.
        • Password: Enter the password.
        Figure 43. Prepare Server


      3. Prepare backup data.
        On the Prepare Backup Data page, set the following parameters:
        • Database Backup Data: Select the backup data of the database to restore.
        Figure 44. Prepare Backup Data


        Note:
        • The system will detect the number of the licensed hosts (CPU cores). You need to select the appropriate database backup data to restore. You can also update the license to increase the licensed quota to avoid the management node start failure due to insufficient licensed quota.
      4. In the displayed Recover Database dialog box, enter the root password. The initial password is zstack.mysql.password.
        Figure 45. Restore Database


        Note:
        • Restoring the database restarts the management node, during which time the management interface cannot be used.
        • This process usually takes a few minutes without affecting your business resources.
        • If you deleted a resource (such as a VM instance or volume) after the backup point, the deleted resource will become invalid and its data cannot be restored. You can clean up the invalid data manually.
      5. The system restores the database.
        Figure 46. Restoring Database


      6. The database is restored successfully. You can click Relogin to log in to the Cloud again.
        Figure 47. Database Restored Successfully


        Note: After the database is restored, all resources of the Cloud are back to the original state before the backup. You can click Scan Backup Data in the local backup server page to obtain the actual backup data information.
      Note:
      • If the management node fails to start due to insufficient licensed quota, a pop up window will be displayed, prompting you to increase the licensed quota and then restore the database.
      • Here are some notices on the business recovery in a newly-built data center:
        • If the network topology and storage architecture of the new data center are the same as those of the original one, the business will be recovered after all hardware resources (such as hosts and primary storages) are successfully reconnected.
        • If the network topology and storage architecture of the new data center are different from those of the original one, you can recover your business by adding a new host and rebuilding a network topology.

Scan Database Backup

You can scan the remote backup server to obtain the database backup data on the remote backup server.
Note: For a newly added remote backup server, you can manually scan the database backup to ensure that the records of the remote backup data of the database in the remote backup server are consistent with the local records.

Typical Practices

This chapter includes scenarios of local backup practice, remote backup practice, and Public Cloud backup practice.

Local Backup Practice

About this task

Assume that you have deployed the latest ZStack Cloud environment on local and purchased both the Base License and the Plus License of Backup Service. Now, you plan to add a local backup server to backup VM instances with non-shared volumes. Assume that the data is backed up to a local backup server, and the service VM instance is mistakenly expunged, causing Web service interruption (http://192.168.1.1) and data loss. After you have recovered the data from the local backup server, the service and data are both back to normal.

The following table lists an example of a local backup server configurations.
Local Backup Server Configuration
Backup Server IP 192.168.0.1
Mount Path /local_ds
SSH Port 22
User Name root
Password password
Backup Network 192.168.0.0/24
Follow these steps to run your local backup practice:
  1. Add a local backup server.
  2. Create a backup job.
  3. Check the local backup data and the service state.
  4. Expunge the VM instance by mistake.
  5. Recover the backup data of VM instance and volume to local.
  6. Validate whether the service is recovered.

Procedure

  1. Add a local backup server.

    On the main menu of ZStack Cloud, choose Platform O&M > Backup Management > Backup Server > Local Backup Sever. On the Local Backup Sever page, click Add Local Backup Sever. Then, the Add Local Backup Sever page is displayed.

    On the displayed page, set the following parameters:
    • Zone: By default, the current zone is displayed.
    • Addition Method: In this scenario, select Add Server.
    • Name: Enter a name for the local backup server.
    • Description: Optional. Enter a description for the local backup server.
    • Backup Server IP: Enter the IP address of the local backup server. In this scenario, enter 192.168.0.1.
      Note: Make sure that the backup server uses an operating system consistent with that of the management node.
    • Mount Path: Enter the path to which the storage is mounted. In this scenario, enter /local_ds.
    • SSH Port: Enter the SSH port. Default: 22.
    • User Name: Enter the user name. Default: root.
    • Password: Enter the password of the corresponding user. In this scenario, enter password.
    • Backup Network: Optional. Set the backup network. In this scenario, enter 192.168.0.0/24.
    • Backup Data: Choose whether to scan the existing backup data. In this scenario, unselect the checkbox.
    Figure 48. Add Local Backup Server


  2. Create a backup job.

    On the main menu of ZStack Cloud, choose Platform O&M > Backup Management > Backup Service > Backup Job. Then the Backup Job page appears. On the page, choose VM Instance > Create Backup Job. Then, the Create Backup Job page is displayed.

    To create a backup job, follow these four steps:

    1. Set basic information.
      • Name: Enter a name for the backup job.
      • Description: Optional. Enter a description for the backup job.
      • Local Backup Server: Specify one or two local backup servers. In this scenario, select a local backup server that you added in step1.
      • Sync to Remote Backup Server: Choose whether to sync local backup data to a remote backup server. In this scenario, we do not enable this option.
      • Set QoS: Optional. You can set network QoS and disk QoS for the backup job. In this scenario, we do not set QoS for the backup job.
      Figure 49. Set Basic Information


    2. Select backup resource.
      • VM Instance: Select one or more VM instances that you need to back up. In this scenario, select your service VM instance.
      • Back up Attached Volume: You can back up all volumes that are attached to the selected VM instances. In this scenario, enable this option.
      Figure 50. Select Backup Resource


    3. Set backup policy.
      • Backup Mode: Select a backup mode for a backup job. In this scenario, select Incremental Backup + Default Full Backup.
      • Incremental Backup Policy: Customize an incremental backup policy.
        • Backup Cycle: Select Backup by Week and Mon in this scenario.
        • Execution Time: Set 00:00:00 in this scenario.
        • Schedule Effective Time: Choose whether to schedule the time when the backup job takes effect. In this scenario, we do not enable this option.
      • Backup Immediately: Choose whether to back up data immediately after the backup job is created. In this scenario, select the checkbox.
      • Local Retention Policy: Set the policy how the local backup data is reserved. In this scenario, retain only the latest 5 backups generated.
      Figure 51. Set Backup Policy


    4. Preview.

      Preview the backup job. You can modify the configuration of the backup job by clicking the Edit icon.

      Figure 52. Preview


  3. Check the local backup data and the service state.
    1. Check the local backup data of the VM instance.

      On the main menu of ZStack Cloud, choose Platform O&M > Backup Management > Backup Service > Local Backup Data. Then, the Local Backup Data page is displayed. You can check the service VM instance backup data.

      Figure 53. VM Instance Backup Data


    2. Check the service state.

      Use a browser to access to the Web service URL and confirm that the VM instance can normally provide Web service and the data is normal.

      Figure 54. Web Service


  4. Expunge the VM instance by mistake.

    Assume that you mistakenly expunge the service VM instance causing Web service interruption.

    Figure 55. Web Service Interruption


  5. Recover the backup data of VM instance and volume to local.

    On the main menu of ZStack Cloud, choose Platform O&M > Backup Management > Backup Service > Local Backup Data. On the Local Backup Data page, locate the backup data of the mistakenly expunged VM instance and click Actions > Restore. Then, the Recover Backup Data page is displayed.

    On the displayed page, set the following parameters:
    • Recover Policy: In this scenario, select New Resource.
    • Name: Enter a name for the new resource.
    • Description: Optional. Enter a description for the new resource.
    • Instance Offering: Select an existing instance offering.
    • Network Configuration: Configure the network resources and network services for the VM instance.
      • Network: Select an L3 network for the VM instance. In this scenario, select flat network.
      • Make Default: Set one of the networks as the default network of the VM instance.
      • Specify IP: Optional. Choose whether to specify an IP address to the VM instance. In this scenario, specify 192.168.1.1.
      • Specify MAC Address: Optional. Choose whether to customize a MAC address for the VM instance.
      • Security Group: Optional. Associate an existing security group with the VM instance.
    • Recover Volume Data: Optional. Choose whether to recover the data of the volume that attached to the VM instance. In this scenario, enable this option.
    • Advanced Settings: Optional. Configure advanced policies for recovering backup data. In this scenario, we do not specify advanced settings.
    Figure 56. Recover Backup Data


  6. Validate whether the service is recovered.

    Use a browser to access to the Web service URL and confirm that the VM instance can normally provide Web service and the data is normal.

    Figure 57. Web Service


What to do next

So far, we have introduced the typical practice of the local backup scenario.

Remote Backup Practice

About this task

Assume that you have deployed the latest ZStack Cloud environment on local and purchased both the Base License and the Plus License of Backup Service. Now, you plan to add a local backup server and a remote backup server to backup a service VM instance with non-shared volumes. The data is backed up to the local backup server and synced to the remote backup server in Zone-1. Assume that you have mistakenly expunged a service VM instance causing Web service interruption (http://192.168.1.1) and data loss. In addition, the local backup server is destroyed, so you have to recover backup data from the remote backup server. After data is recovered, both the service and data are back to normal.

Figure 58. Remote Backup Scenario Typology


The following tables list the examples of a local backup server and remote backup server configurations.
Local Backup Server Configuration
Backup Server IP 192.168.0.1
Mount Path /local_ds
SSH Port 22
User Name root
Password password
Backup Network 192.168.0.0/24
Remote Backup Server Configuration
Backup Server IP 172.20.0.1
Mount Path /remote_ds
SSH Port 22
User Name root
Password password
Follow these steps to run your remote backup practice:
  1. Add backup servers.
  2. Create a backup job.
  3. Check the state of local backup data, remote backup data, and the service.
  4. Expunge the VM instance by mistake.
  5. Recover VM instance/volume backup data.
  6. Validate whether the service is recovered.

Procedure

  1. Add backup servers.
    1. Add a local backup server.

      On the main menu of ZStack Cloud, choose Platform O&M > Backup Management > Backup Server > Local Backup Sever. On the Local Backup Sever page, click Add Local Backup Sever. Then, the Add Local Backup Sever page is displayed.

      On the displayed page, set the following parameters:
      • Zone: By default, the current zone is displayed.
      • Addition Method: In this scenario, select Add Server.
      • Name: Enter a name for the local backup server.
      • Description: Optional. Enter a description for the local backup server.
      • Backup Server IP: Enter the IP address of the local backup server. In this scenario, enter 192.168.0.1.
        Note: Make sure that the backup server uses an operating system consistent with that of the management node.
      • Mount Path: Enter the path to which the storage is mounted. In this scenario, enter /local_ds.
      • SSH Port: Enter the SSH port. Default: 22.
      • User Name: Enter the user name. Default: root.
      • Password: Enter the password of the corresponding user. In this scenario, enter password.
      • Backup Network: Optional. Set the backup network. In this scenario, enter 192.168.0.0/24.
      • Backup Data: Choose whether to scan the existing backup data. In this scenario, unselect the checkbox.
      Figure 59. Add Local Backup Server


    2. Add a remote backup server.

      On the main menu of ZStack Cloud, choose Platform O&M > Backup Management > Backup Server > Remote Backup Sever. On the Remote Backup Sever page, click Add Remote Backup Sever. Then, the Add Remote Backup Sever page is displayed.

      On the displayed page, set the following parameters:
      • Name: Enter a name for the remote backup server.
      • Description: Optional. Enter a description for the remote backup server.
      • Type: Select Remote Backup in this scenario.
      • Zone: Select the zone to which the remote backup server is mounted. In this scenario, select ZONE-1.
      • Backup Server IP: Enter the IP address of the remote backup server. In this scenario, enter 172.20.0.1.
        Note: Make sure that the backup server uses an operating system consistent with that of the management node of ZStack Cloud.
      • Mount Path: Enter the path to which the storage is mounted. In this scenario, enter /remote_ds.
      • SSH Port: Enter the SSH port. Default: 22.
      • User Name: Enter the user name. Default: root.
      • Password: Enter the password. In this scenario, enter password.
      Figure 60. Add Remote Backup Server


  2. Create a backup job.

    On the main menu of ZStack Cloud, choose Platform O&M > Backup Management > Backup Service > Backup Job. Then the Backup Job page appears. On the page, choose VM Instance > Create Backup Job. Then, the Create Backup Job page is displayed.

    To create a backup job, follow these four steps:

    1. Set basic information.
      • Name: Enter a name for the backup job.
      • Description: Optional. Enter a description for the backup job.
      • Local Backup Server: Specify one or two local backup servers. In this scenario, select a local backup server that you added in step1.
      • Sync to Remote Backup Server: Choose whether to sync local backup data to a remote backup server. In this scenario, enable this option.
      • Remote Backup Server: Select the remote backup server that you added in step 1.
      • Set QoS: Optional. You can set network QoS and disk QoS for the backup job. In this scenario, we do not set QoS for the backup job.
      Figure 61. Set Basic Information


    2. Select backup resource.
      • VM Instance: Select one or more VM instances that you need to back up. In this scenario, select your service VM instance.
      • Back up Attached Volume: You can back up all volumes that are attached to the selected VM instances. In this scenario, enable this option.
      Figure 62. Select Backup Resource


    3. Set backup policy.
      • Backup Mode: Select a backup mode for a backup job. In this scenario, select Incremental Backup + Default Full Backup.
      • Incremental Backup Policy: Customize an incremental backup policy.
        • Backup Cycle: Select Backup by Week and Mon in this scenario.
        • Execution Time: Set 00:00:00 in this scenario.
        • Schedule Effective Time: Choose whether to schedule the time when the backup job takes effect. In this scenario, we do not enable this option.
      • Backup Immediately: Choose whether to back up data immediately after the backup job is created. In this scenario, select the checkbox.
      • Local Retention Policy: Set the policy how the local backup data is reserved. In this scenario, retain only the latest 5 backups generated.
      • Remote Retention Policy: Set the policy how the remote backup data is reserved. In this scenario, retain only the latest 5 backups generated.
      Figure 63. Set Backup Policy


    4. Preview.

      Preview the backup job. You can modify the configuration of the backup job by clicking the Edit icon.

      Figure 64. Preview


  3. Check the state of local backup data, remote backup data, and the service.
    1. Check the local backup data of the VM instance.

      On the main menu of ZStack Cloud, choose Platform O&M > Backup Management > Backup Service > Local Backup Data. Then, the Local Backup Data page is displayed. You can check the service VM instance backup data.

      Figure 65. VM Instance Backup Data


    2. Check the remote backup data of the VM instance.

      On the main menu of ZStack Cloud, choose Platform O&M > Backup Management > Backup Server > Remote Backup Server. On the Remote Backup Server page, click the name of the remote backup server and enter its details page. On the details page, click Backup Data. Then, the Backup Data tab is displayed. You can check the service VM instance backup data.

      Figure 66. Remote Backup Server Backup Data


    3. Check the service state.

      Use a browser to access to the Web service URL and confirm that the VM instance can normally provide Web service and the data is normal.

      Figure 67. Web Service


  4. Expunge the VM instance by mistake.

    Assume that you mistakenly expunge the service VM instance causing Web service interruption.

    Figure 68. Web Service Interruption


  5. Recover VM instance/volume backup data.
    1. Synchronize backup data from remote backup server to local backup server.

      On the main menu of ZStack Cloud, choose Platform O&M > Backup Management > Backup Server > Remote Backup Server. On the Remote Backup Server page, click the name of the remote backup server and enter its details page. On the details page, click Backup Data. Then, the Backup Data tab is displayed. On the displayed tab, locate the backup data and click Actions > Sync to Local. On the Select Local Backup Server drawer, select a local backup server.

      Figure 69. Sync to Local


  6. Recover the backup data of VM instance and volume to local.

    On the main menu of ZStack Cloud, choose Platform O&M > Backup Management > Backup Service > Local Backup Data. On the Local Backup Data page, locate the backup data of the mistakenly expunged VM instance and click Actions > Restore. Then, the Recover Backup Data page is displayed.

    On the displayed page, set the following parameters:
    • Recover Policy: In this scenario, select New Resource.
    • Name: Enter a name for the new resource.
    • Description: Optional. Enter a description for the new resource.
    • Instance Offering: Select an existing instance offering.
    • Network Configuration: Configure the network resources and network services for the VM instance.
      • Network: Select an L3 network for the VM instance. In this scenario, select flat network.
      • Make Default: Set one of the networks as the default network of the VM instance.
      • Specify IP: Optional. Choose whether to specify an IP address to the VM instance. In this scenario, specify 192.168.1.1.
      • Specify MAC Address: Optional. Choose whether to customize a MAC address for the VM instance.
      • Security Group: Optional. Associate an existing security group with the VM instance.
    • Recover Volume Data: Optional. Choose whether to recover the data of the volume that attached to the VM instance. In this scenario, enable this option.
    • Advanced Settings: Optional. Configure advanced policies for recovering backup data. In this scenario, we do not specify advanced settings.
    Figure 70. Recover Backup Data


  7. Validate whether the service is recovered.

    Use a browser to access to the Web service URL and confirm that the VM instance can normally provide Web service and the data is normal.

    Figure 71. Web Service


What to do next

So far, we have introduced the typical practice of the remote backup scenario.

Public Cloud Backup Practice

About this task

Assume that you have deployed the latest ZStack Cloud environment on local, purchased both the Base License and the Plus License of Backup Service, and owned an ECS instance on Alibaba Cloud. Now, you plan to add a local backup server and an ECS instance as the Public Cloud backup server. The data is backed up to the local backup server and synced to the Public Cloud backup server in Zone-1. Assume that the VM instance data is mistakenly changed causing Web service data error (http://192.168.1.1). In addition, the local backup server is destroyed, so you have to recover data from the Public Cloud backup server. After data is recovered, both the service and data are back to normal.

Figure 72. Public Cloud Backup Scenario


The following tables list the examples of a local backup server and Public Cloud backup server configurations.
Local Backup Server Configuration
Backup Server IP 192.168.0.1
Mount Path /local_ds
SSH Port 22
User Name root
Password password
Backup Network 192.168.0.0/24
Public Cloud Backup Server Configuration
Backup Server IP 172.20.0.1
Mount Path /public_ds
SSH Port 22
User Name root
Password password
Follow these steps to run your Public Cloud backup practice:
  1. Configure an Alibaba Cloud ECS instance as the Public Cloud backup server.
  2. Add backup servers.
  3. Create a backup job.
  4. Check the state of local backup data, Public Cloud backup data, and the service.
  5. Mistakenly change the original data.
  6. Recover VM instance backup data.
  7. Validate whether the service is recovered.

Procedure

  1. Configure an Alibaba Cloud ECS instance as a Public Cloud backup server.
    1. Download a standard backup service image (DR image) from the official website.
      • Software: ZStack-DS-5.5.30.qcow2
      • Download address: Click here
    2. Create an ECS instance based on the DR image.
      Prepare an Alibaba Cloud VPC. Create an ECS instance with a public network IP based on the vSwitch in the VPC.
    3. Purchase an NAS storage on Alibaba Cloud Console.
      On Alibaba Cloud Console, choose Product and Services > > File Storage NAS and click Buy Now. Set Region, Zone, Storage Type, Protocol Type, and other information. Then, purchase the NAS storage.
    4. Attach the NAS storage to the VM instance manually.
      Log on to the console of the ECS instance and run following commands to attach the NAS storage:
      [root@localhost ~]# mkdir /cloud_bs
      #Create a mount directory
      
      [root@localhost ~]# mount -t nfs4 xxxxxxxxxx-snp66.cn-shanghai.nas.aliyuncs.com:/ /zstack_bs
      #Query the mount path of the NAS on Alibaba Cloud Console. For example, xxxxxxxxxx-snp66.cn-shanghai.nas.aliyuncs.com
      #Attach the NAS storage to /cloud_bs
      
      [root@localhost ~]# df -h
      Filesystem                                       Size  Used Avail Use% Mounted on
      /dev/vda1                                         40G  3.7G   34G  10% /
      devtmpfs                                         488M     0  488M   0% /dev
      tmpfs                                            497M     0  497M   0% /dev/shm
      tmpfs                                            497M   50M  447M  11% /run
      tmpfs                                            497M     0  497M   0% /sys/fs/cgroup
      tmpfs                                            100M     0  100M   0% /run/user/0
      xxxxxxxxxx-snp66.cn-shanghai.nas.aliyuncs.com:/  1.0P  292G  1.0P   1% /cloud_bs
  2. Add backup servers.
    1. Add a local backup server.

      On the main menu of ZStack Cloud, choose Platform O&M > Backup Management > Backup Server > Local Backup Sever. On the Local Backup Sever page, click Add Local Backup Sever. Then, the Add Local Backup Sever page is displayed.

      On the displayed page, set the following parameters:
      • Zone: By default, the current zone is displayed.
      • Addition Method: In this scenario, select Add Server.
      • Name: Enter a name for the local backup server.
      • Description: Optional. Enter a description for the local backup server.
      • Backup Server IP: Enter the IP address of the local backup server. In this scenario, enter 192.168.0.1.
        Note: Make sure that the backup server uses an operating system consistent with that of the management node.
      • Mount Path: Enter the path to which the storage is mounted. In this scenario, enter /local_ds.
      • SSH Port: Enter the SSH port. Default: 22.
      • User Name: Enter the user name. Default: root.
      • Password: Enter the password of the corresponding user. In this scenario, enter password.
      • Backup Network: Optional. Set the backup network. In this scenario, enter 192.168.0.0/24.
      • Backup Data: Choose whether to scan the existing backup data. In this scenario, unselect the checkbox.
      Figure 73. Add Local Backup Server


    2. Add a Public Cloud backup server.

      On the main menu of ZStack Cloud, choose Platform O&M > Backup Management > Backup Server > Remote Backup Sever. On the Remote Backup Sever page, click Add Remote Backup Sever. Then, the Add Remote Backup Sever page is displayed.

      On the displayed page, set the following parameters:
      • Name: Enter a name for the remote backup server.
      • Description: Optional. Enter a description for the remote backup server.
      • Type: Select Alibaba Cloud Backup in this scenario.
      • Zone: Select the zone to which the Alibaba Cloud backup server is mounted. In this scenario, select ZONE-1.
      • Backup Server IP: Enter the IP address of the Alibaba Cloud backup server. In this scenario, enter 172.20.0.1.
      • Mount Path: Enter the path to which the Alibaba Cloud backup server is mounted. In this scenario, enter /public_ds.
      • SSH Port: Enter the SSH port. Default: 22.
      • User Name: Enter the user name. Default: root.
      • Password: Enter the password. In this scenario, enter password.
      Figure 74. Add Alibaba Cloud Backup Server


  3. Create a backup job.

    On the main menu of ZStack Cloud, choose Platform O&M > Backup Management > Backup Service > Backup Job. Then the Backup Job page appears. On the page, choose VM Instance > Create Backup Job. Then, the Create Backup Job page is displayed.

    To create a backup job, follow these four steps:

    1. Set basic information.
      • Name: Enter a name for the backup job.
      • Description: Optional. Enter a description for the backup job.
      • Local Backup Server: Specify one or two local backup servers. In this scenario, select a local backup server that you added in step1.
      • Sync to Remote Backup Server: Choose whether to sync local backup data to a remote backup server. In this scenario, enable this option.
      • Remote Backup Server: Select the Alibaba Cloud backup server that you added in step 1.
      • Set QoS: Optional. You can set network QoS and disk QoS for the backup job. In this scenario, we do not set QoS for the backup job.
      Figure 75. Set Basic Information


    2. Select backup resource.
      • Backup Resource: Select the type of resource that you need to back up. In this scenario, select VM Instance.
      • VM Instance: Select one or more VM instances that you need to back up. In this scenario, select your service VM instance.
      • Back up Attached Volume: You can back up all volumes that are attached to the selected VM instances. In this scenario, disable this option.
      Figure 76. Select Backup Resource


    3. Set backup policy.
      • Backup Mode: Select a backup mode for a backup job. In this scenario, select Incremental Backup + Default Full Backup.
      • Incremental Backup Policy: Customize an incremental backup policy.
        • Backup Cycle: Select Backup by Week and Mon in this scenario.
        • Execution Time: Set 00:00:00 in this scenario.
        • Schedule Effective Time: Choose whether to schedule the time when the backup job takes effect. In this scenario, we do not enable this option.
      • Backup Immediately: Choose whether to back up data immediately after the backup job is created. In this scenario, select the checkbox.
      • Local Retention Policy: Set the policy how the local backup data is reserved. In this scenario, retain only the latest 5 backups generated.
      • Remote Retention Policy: Set the policy how the remote backup data is reserved. In this scenario, retain only the latest 5 backups generated.
      Figure 77. Set Backup Policy


    4. Preview.

      Preview the backup job. You can modify the configuration of the backup job by clicking the Edit icon.

      Figure 78. Preview


  4. Check the state of local backup data, Public Cloud backup data, and the service.
    1. Check the local backup data of the VM instance.

      On the main menu of ZStack Cloud, choose Platform O&M > Backup Management > Backup Service > Local Backup Data. Then, the Local Backup Data page is displayed. You can check the service VM instance backup data.

      Figure 79. VM Instance Backup Data


    2. Check the Public Cloud backup data of the VM instance.

      On the main menu of ZStack Cloud, choose Platform O&M > Backup Management > Backup Server > Remote Backup Server. On the Remote Backup Server page, click the name of the Alibaba Cloud backup server and enter its details page. On the details page, click Backup Data. Then, the Backup Data tab is displayed. You can check the service VM instance backup data.

      Figure 80. Public Cloud Backup Server Backup Data


    3. Check the service state.

      Use a browser to access to the Web service URL and confirm that the VM instance can normally provide Web service and the data is normal.

      Figure 81. Web Service


  5. Mistakenly change the original data.

    Assume that you have changed the Web data of the service VM instance by mistake and delete the backup data in local backup server, which resulting in abnormal Web display.

    Figure 82. Error Data


  6. Recover VM instance backup data.
    1. Synchronize backup data from Alibaba Cloud backup server to local backup server.

      On the main menu of ZStack Cloud, choose Platform O&M > Backup Management > Backup Server > Remote Backup Server. On the Remote Backup Server page, click the name of the Alibaba Cloud backup server and enter its details page. On the details page, click Backup Data. Then, the Backup Data tab is displayed. On the displayed tab, locate the backup data and click Actions > Sync to Local. On the Select Local Backup Server drawer, select a local backup server.

    2. Stop service VM instance.

      On the main menu of ZStack Cloud, choose Resource Center > Resource Pool > VM Instance. On the VM Instance page, locate the service VM instance and click Actions > Power > Stop.

    3. Recover VM instance backup data.

      On the main menu of ZStack Cloud, choose Platform O&M > Backup Management > Backup Service > Local Backup Data. On the Local Backup Data page, locate the backup data of the service VM instance and click Actions > Restore. Then, the Recover Backup Data page is displayed.

      On the displayed page, set the following parameters:
      • Recovery Policy: In this scenario, select Overwrite Original Resource.
      • Name: By default, the original VM instance name is displayed.
      • Description: By default, the original VM instance description is displayed.
      Figure 83. Recover Backup Data


  7. Validate whether the service is recovered.

    Use a browser to access to the Web service URL and confirm that the VM instance can normally provide Web service and the data is normal.

    Figure 84. Web Service


What to do next

So far, we have introduced the typical practice of the Public Cloud backup scenario.

Backup Service Tutorial | 5.5.30 | ZStack Cloud · ZCF | ZStack Resource Center