Create an OSS restore job
After you back up OSS data to a cloud backup vault by using Cloud Backup, if files in OSS are lost or damaged, you can restore all files or the files that meet specified conditions based on historical backups. You can restore the files to the source OSS bucket or a new OSS bucket.
Prerequisites
An OSS backup plan is created and a backup is completed. For more information, see Back up OSS files.
Billing
The restore feature itself is free of charge. For more information about billing, see Billing methods and billable items.
Procedure
You can restore data from a backed-up OSS bucket to the source bucket or to another destination bucket.
-
On the OSS File Backup page, select the region in which the target bucket resides, and then click View Details to the right of the target bucket.
NoteIf you use the legacy console (Try New Version is displayed in the upper-right corner), expand the row of the target instance on the Backup Plans tab, click the target backup point to open the details panel, and then click Restore.
-
In Backup History, click Restore in the Actions column of the target backup point.
You can also click the
icon in the upper-right corner of the backup history to switch to the timeline view, and then click a backup point to view its details and select Restore.NoteSelect an appropriate historical backup point. The backup data of different backup points may be different.
-
In the Create Restore Job panel, configure Restore Items, and then click Next.
ImportantWe recommend that you explicitly specify the scope of the files to restore to improve the accuracy and efficiency of the restore operation.
-
Include All Files: Restores all files in the selected bucket.
-
Include Files or Exclude Files: Manually enter a file list in the Enter Paths box. Files in the selected bucket are restored based on the rule.
Enter one path per line. Each path must start with the prefix specified when the backup is performed.
-
If the prefix specified when the backup is performed is a/b/, and you want to include (or exclude) folder and file.txt, enter:
a/b/folder a/b/file.txt -
If no prefix is specified when the backup is performed, and you want to include (or exclude) folder and file.txt, enter:
folder file.txt
-
-
-
Configure Configure Destination, and then click OK.
ImportantTo restore data to a new OSS bucket, you must first create a bucket of the standard access storage class in the same region. For more information, see Create a bucket.
Parameter
Description
Specified Account
Specifies the account to which the restore destination resources belong. This Account is selected by default. You can select an added account that needs to be backed up. Only one account can be selected.
To manage cross-account backups, click Manage cross-account backups.
Recover to OSS Bucket
Select the destination OSS bucket to which the files are restored.
Restore to Bucket Prefix
Select or enter the destination prefix for the restored files. If you do not specify a prefix, the files are restored to the root directory of the bucket. If you enter a prefix that does not exist, it is automatically created during the restore.
Virus Detection During Restoration
After this feature is enabled, Cloud Backup performs a virus scan on all files to be restored and processes the scan results as follows:
-
Files that are detected as safe are restored directly by Cloud Backup.
-
Files that are detected as infected are not restored. We recommend that you go to the Virus Scan page to view risky files and find safe versions to restore.
ImportantVirus scanning of backup points is a paid feature. You are charged based on the number of files scanned (approximately 1.5 CNY per 1,000 files). Plan your budget accordingly to avoid account arrears. For more information about billing, see Billing methods and billable items.
-
-
Switch to the Restore Jobs tab, and view the progress of the restore job in the Status column.
NoteTo cancel an in-progress restore job, click Cancel in the Actions column and confirm the cancellation.
Related topics
-
When you back up a large number of objects, use the OSS manifest feature. This significantly improves backup efficiency and performance. For more information, see Use the OSS manifest feature to back up large volumes of OSS files.
-
The Cloud Backup data synchronization feature synchronizes large volumes of OSS files from the source to the destination. For more information, see Data synchronization feature overview.
-
For more information about the product, see What is Cloud Backup.