Help Center> Cloud Backup and Recovery> Getting Started> Creating a Cloud Server Backup
Updated on 2024-07-15 GMT+08:00

Creating a Cloud Server Backup

Operation Process

Table 1 Operation process of creating a cloud server backup

Step

Description

Making preparations

Register with Huawei Cloud, complete real-name authentication, top up your account, and create an IMA user.

Purchasing a server backup vault

Purchase a server backup vault to store server backups.

Associating servers

Associate your servers with a vault to back up and replicate data.

Creating a cloud server backup

Create cloud server backups to protect data.

Making Preparations

Registering with Huawei Cloud

If you already have a Huawei Cloud account, skip this part. If you do not have a Huawei Cloud account, perform the following steps to create one:

  1. Log in to the Huawei Cloud official website, and click Sign Up in the upper right corner.
  2. On the displayed page, register an account as prompted.

    After the registration is complete, you will be redirected to your personal information page.

Topping Up Your Account

Ensure that your account has sufficient balance.

To view detailed CBR pricing, see Product Pricing Details.

To top up an account, see Topping Up an Account.

Creating an IAM User

If you want to allow multiple users to manage your resources without sharing your password or private key, you can create IAM users and grant permissions to the users. These users can use specified links and their own accounts to access the public cloud and help you manage resources efficiently. You can also configure account security policies to ensure the security of these accounts.

If you have registered with the public cloud but have not created an IAM user, you can create one on the IAM console. For example, to create a CBR administrator, perform the following steps:

  1. Enter your username and password to log in to the management console.
  2. Hover the mouse over the username in the upper right corner and choose Identity and Access Management from the drop-down list.
  3. In the navigation pane on the left, choose Users.
  4. On the Users page, click Create User.
  5. Enter user information on the Create User page.
    • Username: Enter a username, for example, cbr_admin.
    • Email Address: Email address of the IAM user. This parameter is mandatory if the access type is specified as Set by user.
    • (Optional) Mobile Number: Mobile number of the IAM user.
    • (Optional) Description: Enter the description of the user, for example, CBR administrator.
  6. Select Management console access for Access Type and Set now for Password. Enter a password and click Next.

    A CBR administrator can log in to the management console and manage users. You are advised to select Set now for Password Type when you create a CBR administrator for your domain. If you create a CBR administrator for other users, you are advised to select Set by user for Password Type instead so that the users can set their own password.

  7. (Optional) Add the user to the admin user group and click Create.

    User group admin has all the operation permissions. If you want to grant fine-grained permissions to IAM users, see Creating a User and Granting CBR Permissions.

    The user is displayed in the user list. You can click the IAM user login link to log in to the console.

Purchasing a Server Backup Vault

This section describes how to purchase a server backup vault.

New resources cannot be associated with vaults in AZ2 of the CN North-Beijing1 region to perform backups. Resources already associated are not affected, and backups can still be performed.

  1. Log in to the CBR console.

    1. Log in to the management console.
    2. Click in the upper left corner and select a region.
    3. Click and choose Storage > Cloud Backup and Recovery. Select a backup type from the left navigation pane.

  2. In the upper right corner of the page, click Buy Server Backup Vault.
  3. Select a billing mode.

    • Yearly/monthly is a prepaid billing mode. You are billed based on the subscription duration you specify. This mode is ideal when the resource use duration is predictable. A longer subscription often means a lower cost.
    • Pay-per-use is a postpaid billing mode. You are billed based on your resource usage and you can increase or delete resources anytime. Fees are deducted from your account balance.

  4. Select a protection type.

    • Backup: A server backup vault stores server backups.
    • Replication: A server replication vault stores replicas of server backups. If you select Replication, you do not need to select a server.

    For example, if you want to back up a server, select Backup for the vault protection type. If you want to replicate backups of a server from one region to another, select Replication for the vault in this other region.

  5. Determine whether to enable application-consistent backup.

    • If enabled, the vault can be used to store database server backups. For example, you can back up ECSs running MySQL or SAP HANA databases, because application-consistent backup ensures that the backed-up data is transactionally consistent. If an application-consistent backup task fails, CBR automatically performs a non-database server backup task instead. This non-database server backup will be stored in the database server backup vault.
    • If disabled, only non-database server backup is performed on associated servers, which is usually used for ECSs not running databases.

  6. Determine whether to enable backup locking.

    If enabled, backups in the vault will not be deleted maliciously or by mistake, improving data reliability.

    Backup locking cannot be disabled after it is enabled.

  7. Select a backup data redundancy policy.

    • Single-AZ: Backup data is stored in a single AZ, with lower costs.
    • Multi-AZ: Backup data is stored in multiple AZs to achieve higher reliability.

    The backup data redundancy policy cannot be changed after a vault is purchased. Plan and select a policy that best suits your service needs.

  8. In the server list, select the servers or disks you want to back up. After the servers or disks are selected, they are added to the list of selected servers. See Figure 1. You can also select specific disks on a server and associate them with the vault.

    To avoid data inconsistency after restoration, you are advised to back up the entire server.

    If you want to back up only some of the disks to reduce costs, ensure that data on the backed up disks does not depend on the disks that are not backed up. Or, data inconsistency may occur.

    For example, the data of an Oracle database is scattered across different disks. If only some of the disks are backed up, restoration restores only the data of the disks that have been backed up, with data on the rest of the disks unchanged. As a result, the data may be inconsistent and the Oracle database may fail to start.

    Figure 1 Selecting a server

    • The selected servers must have not been associated with any vault and must be in the Running or Stopped state.
    • You can also associate servers with the vault you are creating later if you skip this step.

  9. Specify the vault capacity. The capacity ranges from 10 GB to 10485760 GB. Properly plan the vault capacity, which must be at least the same as the size of the servers you want to back up. Also, if automatic association is enabled and a backup policy is applied to the vault, more capacity is required.

    As the vault's used space grows, you can expand the vault capacity if it becomes insufficient.

  10. Configure auto backup.

    • If you select Configure, a backup policy can be applied to this vault. Servers associated with this vault will be automatically backed up based on the policy. You can select an existing backup policy or create a new one.
    • If you select Skip, servers associated with this vault will not be automatically backed up until you apply a backup policy to the vault.

  11. If you have subscribed to Enterprise Project, add the vault to an existing enterprise project.

    EPS provides a unified method to manage cloud resources by project, allowing you to manage resources, users, and user groups in your projects. The default enterprise project is default.

    If the CBR FullAccess permissions have been assigned to IAM users, enterprise projects will not be displayed for you to choose from when you create a vault. Go to the Enterprise Project Management console and assign the CBR FullAccess permissions to the target user group.

  12. (Optional) To enable automatic association, see associating a resource with the vault.
  13. (Optional) Add tags to the vault. For details, see managing vault tags.
  14. Specify a name for the vault.

    A name must contain 1 to 64 characters including digits, letters, underscores (_), or hyphens (-), for example, vault-f61e.

    You can also use the default name vault_xxxx.

  15. Specify the required duration if you select yearly/monthly billing. The validity period ranges from 1 month to 5 years.

    Determine whether to enable auto renewal. If you select Auto Renewal:

    • Your subscription will be renewed each month for monthly billing.
    • Your subscription will be renewed each year for yearly billing.

  16. Complete the payment as prompted.
  17. Go back to the Cloud Server Backups page. You can see the created vault in the vault list.

    You can associate servers with the vault and perform backup for the servers. For details, see Vault Management.

Associating Servers

If you have associated servers when purchasing a vault, skip this step.

If no resource is associated, see associating a resource with the vault.

Creating a Cloud Server Backup

This section describes how to quickly create a cloud server backup.

The backup process for BMSs is the same as that for ECSs.

If you do not need an ECS for the moment, you can back up the ECS and then delete it. When you want an ECS later, you can create an image from the ECS backup and use the image to create ECSs.

Backing up a server does not impact the server performance.

Peak hours of the backup service are from 22:00 to 08:00, during which there may be delays. So you are advised to evaluate your service types and schedule backups in discrete time periods.

Prerequisites

  • Only servers in the Running or Stopped state can be backed up.
  • At least one server backup vault is available.

Procedure

  1. On the Cloud Server Backups page, click the Vaults tab and find the vault to which the server is associated.
  2. Perform backup in either of the following ways:

    • Choose More > Perform Backup in the Operation column. In the server list, select the server you want to back up. After a server is selected, it is added to the list of selected servers. See Figure 2.
      Figure 2 Selecting the server to be backed up

    • Click the vault name to go to the vault details page. On the Associated Servers tab page, locate the target server. Click Perform Backup in the Operation column of the server. See Figure 3.
      Figure 3 Performing backup

  3. Set Name and Description for the backup. Table 2 describes the parameters.

    Table 2 Parameter description

    Parameter

    Description

    Example Value

    Name

    Name of the backup you are creating.

    A name must contain 1 to 64 characters including digits, letters, underscores (_), or hyphens (-).

    NOTE:

    You can also use the default name manualbk_xxxx.

    If multiple servers are to be backed up, the system automatically adds suffixes to their backup names, for example, backup-0001 and backup-0002.

    manualbk_d819

    Description

    Description of the backup.

    It cannot exceed 255 characters.

    --

  4. Choose whether to enable full backup. If full backup is enabled, CBR performs a full backup on every associated server, which requires a larger capacity compared to an incremental backup. See Figure 4.

    Figure 4 Enabling full backup

  5. Click OK. CBR automatically creates a backup for the server.

    On the Backups tab page, if the status of the backup is Available, the backup task is successful.

    A server can be restarted if the backup progress exceeds 10%. However, to ensure data integrity, restart it after the backup is complete.

Related Information