All Products
Search
Document Center

Cloud Backup:Create a backup plan for an OSS bucket

Last Updated:Oct 13, 2023

This topic describes how to use Cloud Backup to back up data from an Object Storage Service (OSS) bucket. After the data is backed up, you can restore the data at the earliest opportunity if the data is lost or damaged.

Prerequisites

An OSS bucket whose storage class is Standard is created. For more information, see Create buckets.

Precautions

Before you use Cloud Backup to protect OSS objects, take note of the following information:

  • Cloud Backup cannot back up or restore symbolic links, object access control lists (ACLs), or objects in Archive buckets.

  • You are charged for OSS API operations that are called by Cloud Backup during the backup of OSS objects. The charges are included into your OSS bills. For more information, see Billing of OSS.

  • If you delete an existing backup, the data integrity of subsequent backups is not affected.

Procedure

To create a backup plan for an OSS bucket, perform the following steps:

  1. Log on to the Cloud Backup console.

  2. In the left-side navigation pane, choose Backup > OSS Backup.

  3. In the top navigation bar, select the region where the OSS bucket resides.

  4. On the Backup Plans tab, click Backup Bucket.

  5. In the Create Backup Plan panel, configure the parameters and click OK.

    Note

    You can use each backup plan free of charge for 30 days, which starts from the day when the backup plan is created. For example, if you create a backup plan on February 14, 2020, you can use the backup plan free of charge until March 15, 2020.

    This topic describes how to configure a backup plan in paid mode. You can follow a similar procedure to configure a backup plan in free mode.

    1. Click Switch to Paid Plan.

    2. Configure the basic parameters described in the following table.

      Important
      • If the selected region supports backup policies, you can set a backup plan only by associating it with the backup policy. Cloud Backup periodically backs up OSS objects based on the backup policy.

      • To view the regions that support backup policies, click Policy Center in the left-side navigation pane of the console. For more information about how to create a backup policy, see Create a backup policy.

      Parameter

      Description

      Source OSS Bucket

      The name of the OSS bucket that you want to back up. Select an OSS bucket from the drop-down list.

      Backup Vault

      Backup Vault

      The backup vault to which you want to store the backup data. Valid values:

      • Create Vault: If you select this option, specify a name for the backup vault in the Vault Name field. If you do not configure this parameter, a random name is specified.

      • Select Vault: If you select this option, select a backup vault from the Vault Name drop-down list.

      To maximize the redundancy of your backup data, Cloud Backup uses ZRS-enabled backup vaults by default in regions that support ZRS-enabled backup vaults. If only LRS-enabled backup vaults are available in the region where the backup vaults are located, Cloud Backup uses LRS-enabled backup vaults. You do not need to manually select a backup vault type.

      Vault Name

      The name of the backup vault.

      Vault Resource Group

      This parameter is required only if you set the Backup Vault parameter to Create Vault. This parameter specifies the resource group to which the backup vault belongs.

      You can use resource groups to manage resources owned by your Alibaba Cloud account. Resource groups help you simplify the resource and permission management of your Alibaba Cloud account. For more information, see Create a resource group.

      Backup Vault Encryption Method

      This parameter is required only if you set the Backup Vault parameter to Create Vault. This parameter specifies the method that is used to encrypt the data in the backup vault.

      • Cloud Backup-managed (default): You can use the default encryption method of Cloud Backup.

      • KMS: You can use Key Management Service (KMS) to encrypt the data that is stored in the backup vault. If you select this option, you must specify the KMS KeyId parameter.

      Important
      • If you enable KMS-based encryption, you cannot modify a KMS key.

      • Before you can use the KMS key to encrypt the data in the backup vault, you must create a key ID in the KMS console. For more information, see Create a CMK.

      Basic Settings

      Plan Name

      The name of the backup plan. If you do not configure this parameter, a random name is specified.

      Source Path

      The prefix in the names of the objects that you want to back up from the OSS bucket. By default, no prefix is specified and all objects in the root directory of the OSS bucket are backed up.

      Time Settings

      Start Time

      The time at which the backup plan starts. The time is accurate to seconds.

      Backup Interval

      The interval at which incremental backup is performed. Default value: 1 day. Unit: days or weeks.

      Retention Policy

      The retention policy of the backup data. Valid values:

      • Limited (default): The backup data is retained for a specified period of time. If you select Limited, you must set the Retention Period parameter.

      • Permanent: The backup data is permanently retained.

      Important

      After you create a backup vault and store backup data, you are charged for the usage of the backup vault. For more information, see Billing methods and billable items.

      Retention Period

      This parameter is required only if you set the Retention Policy parameter to Limited. This parameter specifies the period of time for which the backup data is retained. Default value: 2 years. Unit: days, weeks, months, or years.

      Keep At Least One Backup Version

      We recommend that you turn on the switch. If you turn on the switch, the latest backup version generated by the backup plan is not deleted due to the expiration of the retention period or accidental operations. This prevents the risk that no backup version is available for restoration due to reasons such as improper backup plan settings. For more information, see Keep at least one backup version.

      Performance Optimization

      Use OSS Inventory

      Specifies whether to enable the OSS inventory feature to back up data from the OSS bucket. Default value: No. If you need to back up a large amount of data from an OSS bucket, we recommend that you enable this feature. For more information, see Use an OSS inventory list to create a backup plan for a large amount of OSS data.

    After the backup plan is created, Cloud Backup backs up OSS objects from the specified start time at the specified interval.

Related operations

The following table describes the operations that you can perform in the Actions column on the Backup Plans tab.

Operation

Description

Execute Immediately

Immediately runs a backup plan.

Edit

Modifies the parameters of an OSS backup plan that does not meet your business requirements.

Backup History

Views all the backup records of the file system or the backup records in the last three months.

Suspend Plan

Suspends a running backup plan.

Resume Plan

Resumes a suspended backup plan.

Delete Plan

Deletes a running backup plan. After you delete the backup plan, Cloud Backup no longer runs backup jobs for the backup plan but the backup data is retained.

Alert Settings

If the backup job fails or the client is disconnected from the server, Cloud Backup sends an alert notification by default. For more information, see Configure alert notifications.

What to do next

Create an OSS restore job