All Products
Search
Document Center

Object Storage Service:Configure scheduled backup

Last Updated:Jan 02, 2024

You can use Cloud Backup in combination with Object Storage Service (OSS) to periodically back up objects in OSS buckets. This way, you can use backups to restore objects if the objects become corrupted or are deleted, modified, or overwritten by mistake. Cloud Backup allows you to configure flexible backup policies to back up data to the cloud. You can view your backups and use them to restore data at any time.

Prerequisites

  • Cloud Backup is activated. You can go to the Cloud Backup product page to activate Cloud Backup.

  • Cloud Backup is authorized to read data from OSS.

    If Cloud Backup is not authorized to read data from OSS, perform the following steps to complete the authorization: Log on to the Cloud Backup console, click OSS Backup in the left-side navigation pane, and then follow the on-screen instructions to authorize Cloud Backup to read data from OSS.

Billing rules

When you use the scheduled backup feature, you are charged the following fees:

  • API operation calling fees

    • Before each backup job starts, Cloud Backup calls the ListObject operation to obtain the list of objects that you want to back up. A ListObject request can list up to 1,000 objects.

    • After the object list is obtained, Cloud Backup calls the HeadObject operation to obtain the metadata of the objects that you want to back up. A HeadObject request can obtain the metadata of one object.

    • Cloud Backup calls the GetObject operation to back up objects. A GetObject request can back up one object.

    • Cloud Backup calls the ListObject operation to query the backup progress and verify the objects that are backed up. A ListObject request can verify up to 1,000 objects.

    For more information about the billing rules for OSS API requests, see API operation calling fees.

  • If you back up an Infrequent Access (IA) object, you are additionally charged data retrieval fees. For more information, see Data processing fees.

  • You are charged for the storage of backups in Cloud Backup vaults. For more information, see Billing methods and billable items.

Limits

  • Scheduled backup is not supported for IA, Archive, Cold Archive, and Deep Cold Archive buckets.

  • Scheduled backup does not support symbolic links, object access control lists (ACLs), and objects of the Archive, Cold Archive, and Deep Cold Archive storage classes.

  • Scheduled backup is supported in the following regions: China (Hangzhou), China (Shanghai), China (Shenzhen), China (Beijing), China (Zhangjiakou), China (Hohhot), China (Chengdu), China (Hong Kong), Germany (Frankfurt), US (Virginia), Japan (Tokyo), Singapore, Australia (Sydney), Indonesia (Jakarta), Malaysia (Kuala Lumpur), India (Mumbai), and US (Silicon Valley).

Use the OSS console

Configure scheduled backup for an existing bucket

  1. Log on to the OSS console.

  2. In the left-side navigation pane, click Buckets. On the Buckets page, find and click the desired bucket.

  3. In the left-side navigation tree, choose Data Management > Scheduled Backup.

  4. In the Scheduled Backup panel, create a backup plan.

    Create a free backup plan

    Cloud Backup provides a 30-day free trial of scheduled backup.

    Important

    A free backup plan does not allow you to change the Source Path and Backup Interval parameters. Each free backup plan uses an independent backup vault, and the vault cannot be changed even if you pay for the plan after the free trial expires. If you want to back up all your data to the same backup vault, do not use a free backup plan.

    1. In the Create Backup Plan panel, retain the default settings.

    2. Click OK.

    Create a paid backup plan

    You can configure a paid backup plan to specify the backup interval, the objects that you want to back up, and the number of days for which you want to retain backups.

    1. In the Create Backup Plan panel, click Switch to Paid Plan in the Source OSS Bucket section.

    2. In the dialog box that appears, click OK.

    3. In the Create Backup Plan panel, configure the parameters. The following table describes the parameters.

    4. Parameter

      Description

      Source Path

      Specify the prefix in the names of the objects that you want to back up from the bucket. If you do not specify this parameter, all objects in the bucket are backed up.

      Backup Policy

      Click Create Policy. For more information, see Manage backup policies.

      Use OSS Inventory

      Specify whether to enable the OSS inventory feature to back up data from the OSS bucket. If you need to back up a large amount of data, you can use the OSS inventory feature to accelerate incremental backup. For more information about how to use scheduled backup with the inventory feature, see Use an OSS inventory list to create a backup plan for a large amount of OSS data.

    5. Click OK.

      Cloud Backup runs backup jobs based on the backup plan.

Configure scheduled backup when you create a bucket

  1. Log on to the OSS console.

  2. In the left-side navigation pane, click Buckets. On the Buckets page, click Create Bucket.

  3. In the Create Bucket panel, configure the parameters.

    Turn on Scheduled Backup. For information about how to configure other parameters, see Create buckets.

  4. Click OK.

    After the bucket is created, a backup plan is automatically created to back up data once a day and retain the backups for one week. The backup plan has a free trial period of 30 days.

    To view or change a backup plan, choose Data Management > Scheduled Backup.

What to do next

You can create restore jobs to use backups to restore data in OSS. For more information, see Create an OSS restore job.