Help Center> Bare Metal Server> Best Practices> Backup> Creating a Backup Policy

Creating a Backup Policy

  1. Log in to the HUAWEI CLOUD management console.
  2. Choose Service List > Storage > Cloud Server Backup Service.

    The CSBS console is displayed.

  3. Click the Policies tab.
  4. Click Create Policy and configure the following parameters:

    Table 1 Parameter description

    Parameter

    Description

    Remarks

    Name

    Backup policy name.

    It is a string of 1 to 255 characters that can contain only digits, letters, underscores (_), and hyphens (-).

    backup_policy

    Enable

    Whether to enable the backup policy.

    • Enable:
    • Disable:

    Only after the backup policy is enabled, the system automatically backs up servers associated with the backup policy and deletes expired backups.

    Execution Time

    Execution time

    A maximum of 24 backup times can be set in a day. The backup interval must not be shorter than one hour. If backup jobs are executed in two consecutive days, the interval between the execution times of the last backup of the former day and the first backup of the latter day must not be shorter than one hour.

    00:00, 02:00

    It is recommended that backup jobs be executed during off-peak hours or when there are no services running.

    Backup Period

    Dates for executing the backup task.

    • Weekly

      Specifies on which days of each week the backup task will be executed. You can select multiple days.

    • Daily

      Specifies the interval (every 1 to 30 days) for executing the backup task.

    Every 1 day

    If you select Daily, the first backup time is supposed to be on the day when the backup policy was created. If the creation time of the backup policy is later than the latest execution time, the initial backup will be performed in the next backup cycle.

    It is recommended that backup jobs be executed during off-peak hours or when there are no services running.

    Retention Rule

    Rule that specifies how backups will be retained.

    • Time Period

      You can choose to retain replicas for one month, three months, six months, or one year, or for any desired number (1 to 99999) of days.

    • Backup Quantity

      Specifies the maximum allowed number of backups for a single ECS. The value ranges from 1 to 99999.

    • Permanent
      NOTE:
      • When the number of backups to be retained has exceeded the value of Backup Quantity, the system automatically deletes the earliest backups. When the retention time of a backup has exceeded the value of Time Period, the system automatically deletes all expired backups. The system will automatically clear backups every other day at 00:00. Each automatic or manual job scheduling also triggers clearing. After a backup is deleted, the other backups can still be used for restoration.
      • This parameter applies only to backups automatically scheduled by a backup policy. Those backups generated by a manually executed backup policy are not affected by this parameter and are not automatically deleted. You can manually delete them from the backup list.
      • A maximum of 10 backups are retained for failed periodic backup jobs. They are retained for one month and can be manually deleted.

    Three months

    More frequent backup creates more backups or retains backups for a longer time, protecting data with a higher level but occupying more storage space. Set an appropriate backup period as required.

  5. Click OK to complete the policy creation.

    The created backup policy is displayed in the backup policy list.