All Products
Search
Document Center

Cloud Backup:Create a restore job for an OSS bucket

Last Updated:Feb 29, 2024

After you back up Object Storage Service (OSS) objects to a backup vault by using Cloud Backup, you can restore the objects based on historical backup points if the objects are lost or damaged. You can restore all objects in the source OSS bucket or objects that meet the specified conditions to the source OSS bucket for free or to a new OSS bucket for free.

Prerequisites

A backup plan is created for the source OSS bucket and data backup is completed. For more information, see Create a backup plan for an OSS bucket and Use an OSS inventory list to create a backup plan for a large amount of OSS data.

Billing

You are not charged for the restore feature.

For more information, see Billing methods and billable items.

Usage notes

  • The backup speed and recovery speed of Cloud Backup are obtained in a test environment. The values are provided for reference only. For more information, see Backup speed and recovery speed.

  • If you need to restore data to a new OSS bucket, you must create a bucket of the Standard storage class in the same region. For more information, see Create buckets.

Procedure

To restore backup data to the source OSS bucket or a different 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 Restore Jobs tab, click Create Restore Job.

  5. In the Create Restore Job panel, specify the Backup Vault and Source Bucket, select a backup that you want to restore, and then click Next.

    image.png

    Note

    We recommend that you evaluate and select an appropriate historical backup.

  6. In the Select Backup Files step, configure the Restore Items parameter and click Next.

    恢复规则

    Important

    To improve the accuracy and efficiency of data recovery, we recommend that you check the object list and select the objects that you want to restore.

    • Include All Files: All objects in the source OSS bucket are restored.

    • Include Files or Exclude Files: Click Enter Paths and enter the paths to the objects that you want to restore. Cloud Backup restores the specified objects from the source OSS bucket based on the restore policy.

      In the text box, enter one path in each line. Each path must start with the source folder.

      • If the specified OSS prefix is a/b/ and you want to include or exclude the folder and file.txt objects, enter the following paths:

        a/b/folder
        a/b/file.txt
      • If no OSS prefix is specified and you want to include or exclude the folder and file.txt objects, enter the following paths:

        folder
        file.txt
  7. In the Configure Destination step, select a bucket from the Destination Bucket drop-down list and enter a bucket prefix in the Destination Path field. If you do not specify the destination path, the backup data is restored to the root directory of the destination OSS bucket.

    task

    Important
    • You can restore data to the source OSS bucket for free or restore data to a new OSS bucket for free. If you need to restore data to a new OSS bucket, you must create a bucket of the Standard storage class in the same region. For more information, see Create buckets.

    • If you specify a bucket prefix, you must first create the prefix in the OSS console.

  8. Click Create.

    After the restore job is created, you can view the progress of the restore job in the Status column on the Restore Jobs tab.

    image.png

What do I do if the Status of the restore job is Failed (The destination path does not exist.)?

The restore job fails because the bucket prefix that you specified in the Destination Path field in the Configure Destination step does not exist. Create a prefix in the OSS console or specify another prefix. Then, re-create the restore job and try again.image.png

References