To protect data in your General-purpose NAS file system from loss or corruption, we recommend using Cloud Backup to perform regular backups. Cloud Backup lets you configure flexible backup policies and store backups in the cloud that you can view and restore at any time. This topic describes how to use Cloud Backup to back up data from a General-purpose NAS file system.
Prerequisites
-
A file system has been created. For more information, see Create a file system.
-
You have activated Cloud Backup and authorized a service-linked role.
If this is your first time using the file backup feature, follow the on-screen instructions to activate Cloud Backup and authorize the service-linked role.
Background
NAS provides seamless integration with Cloud Backup. When backing up a General-purpose NAS file system, Cloud Backup uses an efficient file system scanning mechanism instead of file system snapshots. By configuring a backup policy, you can generate multiple backup copies to ensure timely file restoration if data is lost or corrupted.
-
The backup scope includes only file data, such as directories and files, within the file system. File system-level metadata, such as mount target configurations, operation logs, and recycle bin settings, is not included.
-
Cloud Backup supports file shares on General-purpose NAS that use the NFS and SMB protocols. The backup process is the same for both mounted and unmounted NAS file systems.
-
Cloud Backup does not currently support the NAS SMB ACL feature. If you have enabled the ACL feature on a NAS file system that uses the SMB protocol, Cloud Backup cannot back up its permission configurations. For more information about the NAS SMB ACL feature, see SMB ACL overview.
If a backup job for an SMB NAS file system fails due to permission issues, grant the Cloud Backup client read permissions on the SMB NAS files and use ECS File Backup to back up the SMB NAS files.
-
You can also enable the recycle bin feature. When enabled, it automatically moves deleted files or directories to the recycle bin, where they are permanently deleted after a specified retention period. You can restore files from the recycle bin during the retention period. For more information, see Recycle bin.
Billing
When you use the file backup feature for a NAS file system for the first time, you are eligible for a 30-day free trial. After the trial period ends, you can choose to renew or suspend the backup plan. For detailed billing information, see Billing of Cloud Backup.
Notes
When you create a backup plan or associate a backup policy for the first time, Cloud Backup automatically creates the service-linked role AliyunServiceRoleForHbrNasBackup to obtain the required resource permissions. Follow the prompts in the authorization dialog box to grant the permissions.
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 click OK.
-
Configure the basic parameters.
Important-
About the free trial plan
The free trial plan is enabled by default for a quick start. However, it has limitations: you cannot edit the backup path or backup cycle, each free backup plan uses a separate backup vault, and you cannot change the backup vault after switching to a paid plan. If you plan to back up all data to a single backup vault in the future, we recommend clicking Switch to Paid Plan to unlock the full features.
-
About the disaster recovery capability of a backup vault
If the backup vault in your current region is a locally redundant backup vault, the system displays a message indicating this. We recommend that you switch to a paid plan to enable cross-region replication to mitigate the risk of a single-datacenter disaster in the current region. Alternatively, you can select a region that supports a zone-redundant backup vault.
Parameter
Description
File System
From the drop-down list, select the file system to back up.
Pay After Trial Ends
Specifies whether to convert the free backup plan to a paid plan after the trial ends.
Plan Name
Enter a name for the backup plan. If you leave this field empty, the system assigns a random name.
Start Time
Select the time when the backup starts. The time is accurate to the second.
-
-
Optional: If you want fine-grained control over the backup plan, click Switch to Paid Plan in the free trial description for the file system to configure the advanced settings described below.
Parameter
Description
Backup file path
Enter the path that you want to back up. If you enter the root directory (
/), the system backs up all directories and files in the file system. For example,/nas/folderbacks up only the specified directory, and/backs up the entire file system.Backup file rules
Configure rules to specify which files to back up.
-
Include all files: All files are backed up.
-
Include specified files or Exclude specified files: Manually enter a list of files in the file list text box. Files are backed up according to the rule.
Backup policy
Select a backup policy from the drop-down list.
Cloud Backup automatically backs up the data source according to the selected backup policy. A backup policy includes operations such as backup vault encryption, backup interval, backup retention period, cross-region replication policy, automatic backup archiving, and virus detection for backup points, helping you flexibly manage data source assets.
If the default backup policy does not meet your backup 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 volume of backed-up data on the Backup Jobs tab.
-
If the status of a backup job has not been updated for a long time, click Refresh in the upper-right corner of the page and then check the job status again.
-
Restore files
Follow these steps to restore a single NAS file system within the same region.
Cloud Backup saves only file data. If a file system is deleted, you can only restore its backed-up files to another file system. The mount target, operation logs, recycle bin, and other configurations of the original file system cannot be restored from the backup.
-
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 information.
In the Select Backup step, confirm or change the backup point to restore, and then click Next.
In the Select Items to Restore step, select the Restore Items, and then click Next.
Parameter
Description
Restore Items
Select the items to restore.
All files: All files from the selected source NAS instance will be restored.
Specified files: Select the folders or files to restore. You can also manually enter a file list in the Enter Paths box to restore specified files from the selected NAS instance based on rules.
Exclude specified files: Select the folders or files that you do not want to restore. You can also manually enter a list of files to exclude in the Enter Paths box. All other files will be restored.
Enter one path per line in the file list. Each line must start with the last folder of the source backup path. For example, if the backup path is /test/data and you want to restore file.txt and abc from the data folder, enter the paths in the following format.
/data/file.txt /data/abcIn the Restore Destination step, select the File System in the region to which you want to restore, and then click Next.
In the Destination Path step, configure the restore path, and then click Create.
Parameter
Description
Restore Path Type
Select the restore path type.
Specified path: Configure a new path and restore the files to this directory.
Original path: Restore the files to the original path from which they were backed up.
Destination Path
This parameter is required only when Restore Path Type is set to Specified path. It specifies the restore path. For example, /nas/abc.
If a file with the same name exists in the restore path
Skip this file.
Overwrite the file with the same name in the restore path.
Compare update times (accurate to the second) and keep the latest version.
Scan for viruses upon restoration
If you enable this feature, Cloud Backup scans all files for viruses during restoration. Files that are detected as safe are restored directly. Files that are detected as viruses are not restored. You can find a safe version on the virus scan page.
After the restore job is created, you can view its 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.
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. Because this mount target is created by an internal Alibaba Cloud service, you cannot delete it directly. To delete a NAS file system, you must first go to the Manage Mounts page and remove the backup mount target for the NAS file system. Removing a NAS backup mount target causes backup failures. Make sure that all backup plans are deleted and no backup or restore jobs are running. |