Restore to CPFS General-purpose
After you use Cloud Backup to back up CPFS General-purpose files to a cloud backup vault, if files in the file system are lost or damaged, you can restore all files or a subset of files that meet specified conditions from a historical backup point to the source CPFS file system or a new CPFS file system.
Prerequisites
-
You have completed a CPFS General-purpose backup.
-
You have obtained the permissions required to use Cloud Backup. If you use a RAM user, make sure that the RAM user is granted the required Cloud Backup permissions.
Billing
The restore feature is free of charge. For more information, see Billing methods and billable items.
Notes
-
The file restore speed depends on the number and size of files. Restoring a large number of files may take a long time. For more information, see File backup and restore speeds (test environment data, for reference only).
-
To restore to a CPFS that has not been added yet, you must first add it as a data source in the Cloud Backup console.
-
When you restore files to the original path or a specified path, if files with the same name exist in the destination path, the existing files are overwritten. We recommend that you check the existing data in the destination path before you restore files.
Create a restore job
Log on to the Cloud Backup console.
-
In the navigation pane on the left, choose Back Up>CPFS Backup.
-
In the upper-left corner of the top menu bar, select the region where your data is located.
-
On the Protected CPFS Sources tab, find the target CPFS data source and click View Details on the right.
NoteIf you use the earlier version of the console (Try New Version is displayed in the upper-right corner), find the target CPFS data source on the Data Source List tab and follow the same steps.
-
In Backup History, click Restore in the Actions column of the target backup point.
You can also click the
icon on the right of the backup history to switch the display mode, click the target backup point, and select Restore.Note-
Select an appropriate historical backup point. The backup data of different backup points may vary.
-
The Actions column of the backup history also provides the Browse and Delete options. You can use Browse to view the file content of a backup point before you restore files.
-
-
In the Create Restore Job panel, follow the configuration wizard to complete the following operations.
-
Select Restore Items, then click Next.
Parameter
Description
Restore Items
Configure the files or folders to restore. The restore rules include the following three options. The options are mutually exclusive, and only one can take effect at a time:
-
Include All Files: Restores all files from the source client.
-
Include Files or Exclude Files: Select the files to include or exclude, or enter a list of files to include or exclude. Cloud Backup then restores the specified files from the selected source client based on the rule.
-
Select files manually
-
Enter a file list manually
Enter one path per line in the file list. Each line must start with the last folder of the source backup path.
-
Restore specified files
For example, if the backup path is folder/test/data and you want to restore file.txt and abc.png in the data directory, enter the following in the file list:
/data/file.txt /data/abc.png -
Restore specified directories
For example, if the backup path is folder/test/data and you want to restore all files or subdirectories in the data directory, enter the following in the file list:
/data/ -
Restore files or directories that match a wildcard character
For example, if the backup path is folder/test/data and you want to restore files or subdirectories in the data directory that start with abc, enter the following in the file list:
/data/abc*
-
-
-
-
Configure the Restore Destination, then click Next.
For Destination Type, select CPFS General-purpose Edition (Agent-based Backup) (the default), then select the target CPFS data source for the restored data from the list. The target data source can be the same as the source. If the target CPFS has not been added as a data source, you must add it in the Cloud Backup console first.
NoteTo restore a CPFS General-purpose backup point to a CPFS for Lingjun file system, see Restore to CPFS for Lingjun.
-
Configure the Destination Path, then click OK.
ImportantMake sure that the restore path exists. Otherwise, the restore job fails.
Parameter
Description
Restore Path Type
-
Specify Path: Restores files to a specified path. After you select this option, enter the destination path in Destination Path.
-
Origin Path: Restores files to the original path where the files were located when they were backed up.
-
After the restore job is created, you can view the restore job progress in the Status column on the Restore Jobs tab.
NoteTo cancel an in-progress restore job, click Cancel in the Actions column and confirm the cancellation.
-