To prevent data loss or corruption in your General-purpose NAS file system, use Cloud Backup to regularly back up all directories and files. Cloud Backup allows you to configure flexible backup policies to back up data to the cloud. You can view and restore the data at any time. This topic describes how to use Cloud Backup to back up data in a General-purpose NAS file system.
Prerequisites
-
A file system has been created. For more information, see Create a file system.
-
Cloud Backup has been activated and the required service-linked role has been authorized.
If you are using the file backup feature for the first time, follow the on-screen instructions to activate Cloud Backup and authorize the service-linked role.
Background information
File Storage NAS seamlessly integrates with Cloud Backup. When backing up a General-purpose NAS file system, Cloud Backup does not create a file system snapshot. Instead, it uses an efficient file system scanning mechanism. You can configure a backup policy to generate multiple backup copies, allowing you to restore files in case of data loss or corruption.
-
Cloud Backup backs up both NFS and SMB shares on General-purpose NAS file systems. You can use the same procedure to back up both mounted and unmounted file systems.
-
Cloud Backup does not support the NAS SMB ACL feature. If you have enabled the ACL feature on your SMB file system, Cloud Backup cannot back up the permission configurations. For more information about the NAS SMB ACL feature, see SMB ACL overview.
If a backup fails because of permission issues on an SMB file system, grant the Cloud Backup client permissions to read the files and then back up the file system using an ECS file backup client.
-
You can also enable the recycle bin feature. When you delete files or directories, they are automatically moved to the recycle bin and permanently deleted after a specified retention period. You can restore files from the recycle bin before they are permanently deleted. For more information, see Recycle bin.
Billing
The first time you use the file backup feature for a NAS file system, you receive a 30-day free trial. After the trial period ends, you can choose to renew your subscription or suspend the backup plan. For detailed billing information, see Cloud Backup billing.
Usage notes
The first time you create a backup plan or associate a backup plan with a backup policy, Cloud Backup automatically creates a service-linked role named AliyunServiceRoleForHbrNasBackup. This role is used to obtain permissions to access related resources. In the dialog box that appears, grant the role as prompted.
During a NAS backup or restore job, the maximum length of a file name is 248 bytes. If a file name exceeds this limit, the file cannot be backed up or restored. The job is then marked as partially completed.
The socket files or hard links cannot be restored.
Back up files
-
Log on to the NAS console.
-
In the left-side navigation pane, choose
-
In the top navigation bar, select a region.
-
On the File Backup page, click the Backup Plans tab, and then click Create Backup Plan.
-
In the Create Backup Plan panel, configure the following parameters, and then click OK.
-
Configure basic parameters.
Important-
About the free trial plan
The free trial plan is enabled by default to let you quickly try the feature. However, the free trial has limitations. For example, you cannot edit the backup path or backup cycle, and each free backup plan uses a separate backup vault. After you switch to a paid plan, the backup vault cannot be changed. If you want to back up all data to the same backup vault in the future, click Switch to Paid Plan to unlock all features.
-
About the disaster recovery capability of the backup vault
If the backup vault in the current region is a locally redundant backup vault, a message is displayed to inform you. To protect your data from single-datacenter disasters, switch to a paid plan to enable cross-region backup replication. Alternatively, you can select a region that supports zone-redundant backup vaults for your backups.
Parameter
Description
File System
Select the file system that you want to back up.
Pay After Trial Ends
Select whether the plan automatically converts to a paid subscription after the free trial ends.
Plan Name
Enter a name for the backup plan. If you leave this parameter empty, the system assigns a random name.
Start Time
Select the start time for the first backup job. You can specify the time down to the second.
-
-
Optional: If you want to configure a fine-grained backup plan, click Switch to Paid Plan in the free trial description of the file system to enable advanced settings. Then, configure the advanced parameters as described in the following table.
Parameter
Description
Source Paths
Enter a path, for example,
/nas/folder.Backup Rule
Configure the rule to back up files. Only files that match the rule are backed up.
Include All Files: Backs up all files.
Include Files or Exclude Files: Manually enter a list of files. Files are backed up based on the specified rule.
Backup Policy
Select a backup policy from the drop-down list.
Cloud Backup automatically backs up data sources based on the backup policy that you configure. A backup policy includes settings such as the backup vault encryption method, backup interval, retention period, cross-region replication policy, automatic data archiving, and virus detection for backup points. This helps you flexibly manage data sources.
If the default backup policy does not meet your requirements, click Create Policy or Edit Policy to manage backup policies.
For more information about the parameters in a backup policy, see Policy center.
Note-
You can view the status of executed backup jobs and the amount of backed-up data on the Backup Jobs tab.
-
If the status of a backup job is not updated for a long period, click Refresh in the upper-right corner of the page and check the status again.
-
Restore files
Follow these steps to restore a single NAS file system in the same region.
-
Log on to the NAS console.
-
In the left-side navigation pane, choose Data Service > File Backup (Cloud Backup Service).
-
In the top navigation bar, select a region.
-
On the File Backup page, click the Data Restoration tab, and then click Create Restore Job.
In the Create Restore Job panel, configure the following settings.
Select a backup and click Next.
Parameter
Description
Source Vault
Select the backup vault that stores the backup data of the source NAS file system.
Source File System
Select a backed-up NAS file system as the source for restoration.
Please select which backup to restore
From the list of backups, select the backup that you want to restore.
On the Select Restore Items tab, select Restore Items and click Next.
Parameter
Description
Restore Items
Select the items to restore.
Include All Files: Restores all files in the selected source NAS instance.
Include Files: Select the folders or files to restore, or manually enter a list of specific paths in the Enter Paths box.
Exclude Files: Select this option to specify files and folders to exclude from the restore job. Any items not on the exclusion list will be restored. Select the items or enter their paths manually in the Enter Paths box.
Enter one path per line in the file list. Each line must start with the last folder of the source path. For example, if the source path is
/test/dataand you want to restorefile.txtandabcin the data folder, enter the paths in the following format:/data/file.txt /data/abcOn the Restore Destination tab, select a File System in the region and click Next.
On the Destination Path tab, configure the restore path and click Create.
Parameter
Description
Restore Path Type
Select the type of restore path.
Specify Path: Specify a new path to restore the files to.
Origin Path: Restore files to the path from which they were backed up.
Destination Path
This parameter is required only if you set Restore Path Type to Specify Path. It specifies the destination path for the restored file system. For example, restore the file system to /nas/abc.
File Conflict Policy
Skip the file.
Overwrite the existing file.
Compare the update times and keep the newer version.
Virus Detection During Restoration
If you enable this option, Cloud Backup scans all files for viruses before restoring them. For more information, see the console or Backup point virus detection.
When Recovery Items Contain Detected Viruses
Do not restore the virus-infected files (find secure versions on the Virus Detection page.)
I am aware of the risks and still want to restore all the selected items
After the restore job is created, view its progress in the Status column on the Restore Jobs tab.
More operations
|
Category |
Description |
|
Backup plan operations |
|
|
Backup job operations |
|
|
Restore job operations |
|
|
Remove a backup mount target |
When you create a backup plan, Cloud Backup automatically creates a mount target in the NAS file system. This mount target is created by an internal Alibaba Cloud service and cannot be deleted directly. To delete the NAS file system, you must first remove the mount target. Go to the Manage Mounts page and click Remove backup mount target to the right of the NAS file system. Deleting a NAS backup mount target causes backup failures. Before you proceed, ensure that all backup plans are deleted and no backup or restore jobs are running. |