Updated on 2022-02-22 GMT+08:00

Creating an Application-Consistent Backup

CSBS supports crash-consistent backup and application-consistent backup. Application-consistent backup ensures the consistency of applications between the file/disk data and the backup data. This backup mode suits scenarios such as backing up ECSs with MySQL or SAP HANA databases.

On CSBS Console, application-consistent backups can be created using any of the following methods:

  • Manual backup: When creating a cloud server backup, you can manually perform application-consistent backup at a time.
  • Automatic backup: Enable application-consistent backup in the backup policy to periodically create application-consistent backups.
  • Executing a backup policy: Select a backup policy where application-consistent backup is enabled and manually perform the backup operation.

This section describes how to create an application-consistent backup using the first method. For details about how to use the second and third methods, see Creating a Backup Policy and Executing a Backup Policy at Once respectively.

The following constraints and restrictions apply to the three methods.

Constraints and Limitations

  • Application-consistent backup for clusters, for example, MySQL clusters, is not supported. Application-consistent backup is supported only for a single server.
  • You are advised to perform application-consistent backup in off-peak hours.
  • Application-consistent backup for bare metal servers is supported.

Procedure

  1. Log in to the CSBS management console.

    1. Log in to the management console.
    2. Under Storage > Cloud Server Backup Service.

  2. In the upper right corner of the page, click Create CSBS Backup.
  3. In the server list, select the servers you want to back up. After servers are selected, they are added to the list of selected servers.
  4. In the Configure Backup area, configure a backup scheme for the selected ECSs and then select Back Up Now. For details about the parameters, see Creating a CSBS Backup.
  5. Determine whether to select Enable next to Application-Consistent Backup. If selected, the system will perform application-consistent backups. If you select Continue to back up data after the application-consistent backup fails. at the same time, the system will perform crash-consistent backup if the application-consistent backup job fails. Otherwise, the whole backup operation fails.

    Before using application-consistent backup, change the security group and install the Agent. For details, see Changing a Security Group.

  6. Click Next.
  7. Check the details, confirm the settings, and click Submit.
  8. Return to the CSBS page as prompted. If the execution fails, rectify the fault based on the error details on the creation result page.

    On the Backup tab page, if the value of Backup Status is Available and the value of A next to the backup name is blue, the application-consistent backup job is successfully executed. If A next to the backup name is gray, the application-consistent backup job fails to be executed.