Back up on-premises NAS files

更新时间:
复制 MD 格式

Use Cloud Backup to back up all directories and files from your on-premises Network Attached Storage (NAS) to prevent data loss and damage. Cloud Backup lets you configure flexible backup policies to back up files from your on-premises NAS to the cloud. You can then view and restore the data at any time.

Prerequisites

  • The Alibaba Cloud Cloud Backup service is activated. Activating Cloud Backup is free, but using the NAS backup feature of Cloud Backup incurs Cloud Backup storage capacity fees. For more information, see Backup fees for on-premises NAS.

  • Your on-premises NAS must be able to access Alibaba Cloud over the public network. If a public network is unavailable, you must connect the on-premises NAS to an Alibaba Cloud virtual private cloud (VPC) through a leased line or VPN. The required routes from on-premises to the cloud are 100.64.0.0/10 or 100.64.0.0/11 and 100.96.0.0/11. For more information, see Establish a connection from a VPC to a data center (single-tunnel mode).

  • A backup client is installed on a local server. The local server must be able to communicate with both the on-premises NAS and Alibaba Cloud. For more information, see Install a backup client.

Limits

  • The maximum length of a single file name is 248 bytes for on-premises NAS backups and recoveries. If a file name exceeds this limit, the backup or recovery of that file fails, and the task is marked as partially completed.

  • The shared directory for on-premises NAS backup cannot end with a dollar sign ($).

Back up on-premises NAS files

Note

After you create a backup plan, the first backup job is a full backup. Subsequent jobs are incremental backups by default.

Create a backup plan

When you create a backup plan for the first time, a step-by-step guide appears at the top of the new console. This guide walks you through adding a data source, configuring a client group, and creating a backup plan.

  1. On the NAS Backup - On-premises NAS page, select a region.

    Note

    If you are using the Legacy Console (the Try New Version button appears at the top of the page), on the NAS Instance tab under Local NAS, click NAS Backup Wizard.

  2. Add an on-premises NAS data source.

    1. On the On-premises NAS Data Source tab, click Create Data Source.

    2. In the Create Data Source panel, configure the parameters as described in the following table.

      Parameter

      Description

      NAS Instance Name

      The name of the NAS instance to back up.

      NAS Network Address

      The network address of the NAS instance to back up. Obtain the network address from your NAS administrator. Examples of network addresses include 47.100.XX.XX or nas.company.com.

      NAS Share Path

      The path relative to the root directory (/), such as /myshare. This indicates that the /myshare path is shared for subsequent data backups.

      • To query the NAS shared directory, see How do I query the NAS shared directory?.

      • Only uppercase and lowercase English letters, digits, and the special characters ,-_=/.:\ are supported.

        Note

        In most cases, the root directory of an Apsara File Storage NAS file system is / when mounted using the NFS protocol, and /myshare when mounted using the SMB protocol. However, the mounted directory may vary in actual operations. Therefore, proceed based on your actual mount configuration.

      Protocol Type

      NFS and SMB are supported.

      Enter the Username and Password required to mount the NAS. If you set Protocol Type to SMB, make sure to enter the correct username and password.

      (Optional) Click Advanced Settings, and then click Set Mount Parameters.

      You can select multiple mount parameters when you mount a file system. The following table describes the mount parameters.

      Parameter

      Description

      vers

      The file system version.

      • vers=3: Mounts the file system using NFS v3.

      • vers=4: Mounts the file system using NFS v4.

      nolock

      Specifies whether to enable file locking.

      proto

      The file system mount protocol.

      rsize

      Defines the size of the data block for reading data between the client and the file system.

      Recommended value: 1048576 (bytes).

      wsize

      Defines the size of the data block for writing data between the client and the file system.

      Recommended value: 1048576 (bytes).

      hard

      If the File Storage NAS becomes temporarily unavailable, a local application using a file on the file system stops and waits for the file system to come back online. Enable this parameter.

      timeo

      The time, in tenths of a second, that the NFS client waits for a response before it retries a request to the file system.

      Recommended value: 600 (60 seconds).

      retrans

      The number of times the NFS client retries a request.

      Recommended value: 2

    3. Configure a backup client group, and then click OK.

      Select the client where the backup client is installed. You can add multiple clients to a backup client group to run backup tasks concurrently.

      You can select an existing client group or click Create Backup Client Group. When you create a new group, specify a custom Client Group Name and select the clients to add to the group.

      Note

      To avoid public network charges during backup, click Settings in the Actions column for the client. In the Client Settings panel, change Data Network from Internet to VPC and save the settings.

      If you have not installed a client, see Download and activate a Linux client.

  3. Add an on-premises NAS backup.

    1. On the Protected On-premises NAS Data Sources tab, click Add On-premises NAS Backup.

    2. In the Create Backup Plan panel, configure the backup plan parameters, and then click OK.

      Important
      • If the region that you selected supports backup policies, you can set up a backup plan only by associating it with a backup policy. Cloud Backup periodically backs up the on-premises NAS based on the backup policy.

      • In the navigation pane on the left, click Policy Center to view the regions that support backup policies. For more information about how to create a backup policy, see Create a backup policy.

      Parameter

      Description

      Select Data Source

      Select the on-premises NAS data source you added in the previous step.

      Note

      This parameter is available only in the new console.

      Source Paths

      Enter the directory to back up. You can specify only one directory. Wildcard characters are not supported.

      Backup Rule

      Backup rules include the following three types:

      • Include All Files: Backs up all files in the selected source path.

      • Include Files or Exclude Files: After selecting an option, manually enter a file list in the Enter Paths box. Files will be backed up according to the rule.

        A file list specifies a subpath relative to the source path. The matching rules for the subpath are as follows:

        • If the subpath starts with a forward slash (/), it is matched as a full path under the source path.

          For example, if the source path is /data/share and the file list is /subdir/data, the files and directories under /data/share/subdir/data are backed up (or excluded).

          For example, if the source path is /data/share and the file list is /abc*, the files or directories under /data/share/abc that match the prefix abc are backed up (or excluded).

        • If the subpath does not start with a forward slash (/), it is matched as a relative path under the source path. Any subpath that matches the rule will be hit.

          For example, if the source path is /data/share and the file list is abc*, the files or directories under /data/share that match the prefix abc are backed up (or excluded).

          For example, if the source path is /data/share and the file list is abc, all files or directories named abc under /data/share are backed up (or excluded).

      Backup Policy

      Select a backup policy from the drop-down list.

      Cloud Backup automatically backs up the data source according to the backup policy you set. A backup policy includes settings such as backup vault encryption, backup interval, retention period, cross-region replication, automatic archiving, and backup point virus scanning to help you flexibly manage your data source assets.

      If the default backup policy does not meet your needs, click Create Backup Policy or Edit Policy to manage backup policies. For descriptions of the parameters in a backup policy, see Policy Center.

    After the backup plan is created, its Plan Status becomes active, and Cloud Backup runs backup jobs based on the specified start time and backup interval.

View backup jobs

When the scheduled backup time arrives, Cloud Backup starts and runs the backup job.

Note

The backup progress percentage is dynamically estimated by the system based on the current data volume and is for reference only. It does not represent the exact completion percentage. During the backup process, the total scanned size displayed may be smaller than the actual total data volume because the data scan may not be complete. The final status of the backup job prevails.

On the Backup Jobs tab, when the Status of a backup job is Completed, it means the backup was successful. You can view details such as Total Scanned at Source, Backup Completed, Written to Vault, and Backup Speed. For specific metric descriptions, refer to the tooltips in the Cloud Backup console.

Note
  • For backup jobs completed on or after June 1, 2025, statistics for data volume and file count will be displayed for Total Scanned at Source, Backup Completed, and Written to Vault. For jobs completed before this date, only data volume statistics are shown for these metrics.

  • Only backup job records from the last six months can be viewed in the task list. For more data, export it through Report and Audit.

For a running task, to cancel a single backup job, click Cancel in the Actions column of the backup job and confirm the cancellation.

Backup status descriptions

Backup status

Description

Ready

This resource has just been added to the list of protected resources and is awaiting its first backup.

Backing Up

The backup status is normal, waiting for the next backup job to run.

Backing Up (In Progress)

The backup status is normal, and a backup job is currently running.

Paused

All backup plans for this resource are paused. On the backup details page, you can enable any backup plan in the backup plan list to resume backups.

Stopped

The backup resource cannot be found (it may have been released). The backup data will be automatically deleted after it expires. On the backup details page, you can view the expiration time of the backup or restore data from the backup history list.

Manage backup content

On the NAS Backup - On-premises NAS page, select the region where your protected on-premises NAS data source is located. Click View Details next to the data source. In the Backup Details section, you can manage your backup content.

Note
  • You can display backup details in a list view or a timeline view. To switch between views, click the image icon next to the backup history.

  • If you are using the Legacy Console (the Try New Version button appears at the top of the page), on the NAS Instance tab, click the image icon in front of the target NAS file system, and then click the image icon in front of the backup plan to perform the corresponding operations. The operation method is the same as in the timeline view.

Browse backup files

The Browse feature lets you browse backed-up files. If a backup point has been scanned for viruses, Cloud Backup marks any infected files.

  1. In the Backup Details section, click Browse in the Actions column of the target backup point.

  2. In the Browse panel, view the backed-up on-premises NAS files.

Note

You cannot download backed-up files directly. You must first restore them to a specified temporary NAS path, which is a free operation, and then download the files from the NAS.

Extend the retention period of a backup point

To keep historical data from on-premises NAS backups for a longer period, you can extend the retention period of the backup points.

Important
  • The retention period of a backup point can only be extended, not shortened.

  • The retention period of backup points set to be retained permanently cannot be extended.

  1. In the Backup Details section, click the image icon in the Expires At column of the target backup point.

  2. Set a Schedule Time or select Never Expire, and then click Save.

    After you save the setting, you can view the new expiration time in the Expires At column.

Delete backup data

This section describes how to delete backup point data generated by the backup client.

Important
  • Deleted backup points cannot be recovered. Proceed with caution.

  • If the "Keep at least one backup version" setting is enabled in the backup plan, you cannot delete the latest backup. To delete this backup, you must first disable this setting.

In the list view of the Backup Details section, you can delete backup points in one of the following ways.

  • Delete a single backup point: Click Delete in the Actions column of the target backup point and confirm the deletion.

  • Delete in batches: Select the target backup points, click Delete Backup Point below the list, and confirm the deletion.

Manage backup plans

On the NAS Backup - On-premises NAS page, select the region where your protected on-premises NAS data source is located. Click View Details next to the data source, go to the Backup Plan tab, and manage the backup plan as needed.

Note

If you are using the Legacy Console (the Try New Version button appears at the top of the page), on the NAS Instance tab, click the image icon in front of the target NAS instance to perform operations on the backup plan.

Run a backup immediately

In the Actions column for the backup plan, choose > Run Now to start a backup immediately.

Modify a backup plan

  1. Click Modify in the Actions column of the backup plan.

  2. In the Configure Plan panel, modify configurations such as basic settings and the backup policy as needed.

  3. Click OK.

Pause or resume a backup plan

The backup plan is enabled by default. To stop data backup for a specific period, you can pause the backup plan. You can then resume it when you need to back up data again.

  • Pause a backup plan: Turn off the switch in the Plan Status column or choose > Suspend Plan in the Actions column, and confirm the pause.

    After you pause a plan, subsequent backup jobs will not run. Existing backup points are not affected and expire according to the retention period. If 'Keep at least one backup version' is enabled, the last backup version is not affected by the retention period. Billing for the on-premises NAS data source continues as long as backup points exist.

  • Resume a backup plan: After you pause a backup plan, turn on the switch in the Plan Status column or choose > Resume Plan in the Operation column.

Delete a backup plan

Important
  • You cannot delete a backup plan if the on-premises NAS data source has active backups. You must first delete the backup data. If you want to stop the backup plan before you delete the backup data, you can pause the plan.

  • Deleted backup plans cannot be recovered. Cloud Backup also removes the on-premises NAS data source from the backup list.

Select the target backup plan, click Delete Plan below the list, and confirm the deletion.

Alert settings

In the Actions column of the backup plan, choose > Alert Settings to configure the alert notification method and alert contacts for the backup plan.

  • Alert Method: Four methods are supported: Off, Same as Backup Vault, Notify Root Account, and Custom.

  • Alert Contact: If the alert method is set to Custom, you must select a contact or contact group to receive alert notifications.

Manage on-premises NAS data sources

On the NAS Backup - On-premises NAS page, select the region where the target NAS instance is located. On the On-premises NAS Data Source tab, you can manage the NAS instance and the client group as needed. If you are using the Legacy Console (the Try New Version button appears at the top of the page), on the NAS Instance tab, select the desired function to perform operations.

Edit NAS instance information

  1. In the Actions column of the NAS instance, choose > Edit.

  2. In the Edit NAS Instance dialog box, modify the NAS instance information.

  3. Click OK.

Note

The menu in the Actions column of a NAS instance also includes Edit Backup Client Group to directly modify its client group configuration. For more information, see Manage client groups.

Delete an on-premises NAS data source

Important
  • If the NAS instance is associated with a backup plan or has backup data, it cannot be deleted.

  • Deleting an on-premises NAS data source also deletes all historical backups created by that data source. Before you proceed, confirm that you no longer need the backup data. The on-premises NAS data source and its historical backups cannot be recovered after they are deleted. Proceed with caution.

Click Delete in the Actions column of the NAS instance and confirm the deletion.

Manage client groups

On the NAS Backup - On-premises NAS page, select the region where your on-premises NAS data source is located. Click View Details for the data source. In the Client Group Information section, you can manage the backup client.

Note
  • If you are using the Legacy Console, which has a Try New Version button at the top of the page, go to the NAS Instance tab and click View Client Group for the target NAS instance. The Legacy Console does not display the client list.

  • You can reinstall the backup client only in the new console.

  • You cannot uninstall the on-premises client from the console. You must uninstall it manually. For more information, see How do I uninstall the Cloud Backup client?.

Reinstall the backup client

In the Client Operation column, choose > Reinstall. After the installation is complete, the client status changes to Activated.

Set client parameters

In the Client Operation column, click Client Settings to configure the client parameters. We recommend that you use the default configurations.

Client settings

Description

Use HTTPS

Specifies whether to use the HTTPS protocol for data transmission. Because HTTPS transmission involves encryption and decryption, it may affect transmission performance. If you modify this configuration, it will take effect the next time a backup or restore job starts.

Note

This setting only affects data security during network transmission. Regardless of whether HTTPS is enabled, backup data is encrypted when stored in the backup vault.

Data Network

Select whether to transmit data over a VPC or the public network. If your client is deployed in an Alibaba Cloud VPC or is connected to an Alibaba Cloud VPC through a leased line, select VPC as the transmission network.

Manage client groups

Click Edit Backup Client Group. In the Edit Backup Client Group panel, you can modify the client group name, add clients to the group, or remove clients from the group.

Enterprise-grade capabilities

Virus scanning

To prevent files that contain viruses from being restored to the production environment, the Cloud Backup service provides a backup point virus scanning feature. This helps you select clean backup points for data restoration. On the Backup Details tab, in the Backup History section, you can choose > Virus Detection in the Actions column of a backup point to scan its files for viruses.

Backup vault replication

To mitigate the impact of regional disasters or account management risks on business continuity, Cloud Backup supports configuring cross-region backup or cross-account replication for backup vaults for backup vaults with a Vault Type of General Backup. After configuration, data in the source backup vault is automatically synchronized to the replication target vault, which ensures data consistency between the two locations. You can also perform cross-region data restoration from the replication target vault if necessary.

For general backup vaults that store on-premises NAS files, configuring backup vault replication provides cross-region or cross-account disaster recovery for your data.

On-premises NAS backup also supports enterprise-grade features such as cross-account backup, automatic archiving, KMS encryption, backup locking, and backup point virus scanning.

Troubleshoot backup issues

If the Status of a backup plan or backup job is abnormal, you can use the following suggestions to troubleshoot the issue.

  • Follow the prompts on the interface to modify the configuration and confirm that it is correct.

  • Backup job status: Failedimage.png

    1. Check whether the NAS shared directory is configured correctly.

    2. The backup client is configured incorrectly or the required tools are not installed. To reconfigure the backup client, see Install a backup client.

    3. If the network path for an SMB protocol NAS mount does not exist, retrieve the specific ErrorCode from the log file and refer to the Microsoft documentation center for troubleshooting.

      Note

      The default client installation paths are as follows. Make sure to use the actual installation path in your operations.

      • Windows log path: Local Disk (C) > Program Files > Aliyun Hybrid Backup Service Client > logs

      • Linux log path: /opt/alibabacloud/hbrclient/logs

  • Backup plan status: Paused

    If a backup plan is paused, Cloud Backup no longer protects the on-premises NAS. We recommend that you enable the backup plan as soon as possible.

  • If you need more assistance, see Online technical support. You need to provide the backup plan ID, region, data source type, task ID, and a detailed description of the issue, including the operations that you performed and the expected outcome.

References