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 1. 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, 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/volumes on the Cloud.

  • VM Instance:
    • Backup Job: The number of VM instances that have backup jobs on the Cloud.
    • Other: 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.
  • 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 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 2. 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 VM/Volume > Create Backup Job. Then, the Create Backup Job page appears.

You can create the following two types of backup jobs:
  • Backup jobs for local VM instances and volumes
  • Backup jobs for the management node database

Create Backup Job for Local VM Instance and Volume

Follow these four steps to create a backup job for VM instances and 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. A remote backup server can be a server that is in another data center or from a public cloud. By default, the switch is turned off.
      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.
    • 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 1. Set Basic Information


  2. Select backup resource.

    Select local VM instances or volumes that you need to back up.

    • Backup Resource: Select the type of resource that you need to back up. You can select VM Instance or Volume.
      • If you select VM Instance, set the following parameters:
        • VM Instance: Select one or more VM instances that you need to back up.
          Note: You can only back up running VM instances.
        • Back up Attached Volume: You can back up all volumes that are attached to the selected VM instances. By default, this switch is turned on.
          Note: You cannot back up shared volumes that are attached to a VM instance.
      • If you select Volume, set the following parameter:
        Volume: Select one or more volumes that you need to back up.
        Note: You can only back up volumes that are attached to running VM instances.
    Figure 2. Select Backup Resource


  3. Set backup policy.
    You can create a backup job in one of the following two 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.
    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.

    • 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 3. Set Backup Policy


  4. Preview.

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

    Figure 4. 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. A remote backup server can be a server that is in another data center or from a public cloud. By default, the switch is turned off.
    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.
  • 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 Backup Data: 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 Backup Data: 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 5. 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.
Manual Execution 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.
  • 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.
Execute 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.

Archives

Download Document Archives

Back to Top

Download

Already filled the basic info?Click here.

Enter at least 2 characters.
Invalid mobile number.
Enter at least 4 characters.
Invalid email address.
Wrong code. Try again. Send Code Resend Code (60s)

An email with a verification code will be sent to you. Make sure the address you provided is valid and correct.

同意 不同意

I have read and concur with the Site TermsPrivacy PolicyRules and Conventions on User Management of ZStack Cloud

Download

Not filled the basic info yet? Click here.

Invalid email address or mobile number.
同意 不同意

I have read and concur with the Site TermsPrivacy PolicyRules and Conventions on User Management of ZStack Cloud

Email Us

contact@zstack.io
ZStack Training and Certification
Enter at least 2 characters.
Invalid mobile number.
Enter at least 4 characters.
Invalid email address.
Wrong code. Try again. Send Code Resend Code (60s)

同意 不同意

I have read and concur with the Site TermsPrivacy PolicyRules and Conventions on User Management of ZStack Cloud

Email Us

contact@zstack.io
Request Trial
Enter at least 2 characters.
Invalid mobile number.
Enter at least 4 characters.
Invalid email address.
Wrong code. Try again. Send Code Resend Code (60s)

同意 不同意

I have read and concur with the Site TermsPrivacy PolicyRules and Conventions on User Management of ZStack Cloud

Email Us

contact@zstack.io

The download link is sent to your email address.

If you don't see it, check your spam folder, subscription folder, or AD folder. After receiving the email, click the URL to download the documentation.

The download link is sent to your email address.

If you don't see it, check your spam folder, subscription folder, or AD folder.
Or click on the URL below. (For Internet Explorer, right-click the URL and save it.)

Thank you for using ZStack products and services.

Submit successfully.

We'll connect soon.

Thank you for using ZStack products and services.