All Products
Search
Document Center

Cloud Backup:Before you begin

Last Updated:Sep 21, 2023

You can use Cloud Backup to back up files from Server Message Block (SMB) file systems of Apsara File Storage NAS. You can then restore the files if needed. This topic describes how to prepare for a data backup.

Step 1: Assign the AliyunServiceRoleForHbrEcsBackup service-linked role to Cloud Backup

Note

This operation is required only when you use Cloud Backup to back up data for the first time.

Before you use Cloud Backup to back up ECS files, you must assign the AliyunServiceRoleForHbrEcsBackup service-linked role to Cloud Backup. Perform the following steps:

  1. Log on to the Cloud Backup console.

  2. In the left-side navigation pane, choose Back Up > ECS File Backup.

    In the dialog box that appears, assign the role as prompted.

  3. In the Service Access Authorization for Cloud Backup dialog box, click Confirm Authorization.

    For more information, see Service-linked roles for Cloud Backup.

Step 2: Install Cloud Assistant

An Cloud Backup client for ECS must be used together with Cloud Assistant.

  • If the ECS instance that you need to back up was purchased before December 1, 2017, you must install the Cloud Assistant client. For more information, see Install the Cloud Assistant client.

  • If the ECS instance that you need to back up was purchased on or after December 1, 2017, the Cloud Assistant client is pre-installed.

Step 3: Create a mount target

Log on to the NAS console and create a VPC mount target for the SMB file system that you want to back up. For more information, see Create a mount target.

After the mount target is created, you can perform the following steps to view the path to the mount target: Find the SMB file system in the NAS console, and click Manage in the Actions column. In the left-side navigation pane of the page that appears, click Mount Targets. You can view the path on the Mount Target page. mount target

Step 4: Create an ECS instance

Create an ECS instance and mount the NAS file system on the ECS instance. The ECS instance and the NAS file system must share the same region and the same VPC.

  1. Create an ECS instance in the VPC where the mount target of the SMB file system resides.

    For more information, see Create an instance by using the wizard.

  2. Mount the NAS file system on the created ECS instance.

Step 5: Install an Cloud Backup client for ECS file backup

To create an Cloud Backup client for ECS file backup, perform the following steps:

  1. Log on to the Cloud Backup console.

  2. In the left-side navigation pane, choose Back Up > ECS File Backup.

  3. In the top navigation bar, select the region where the ECS instance resides.

  4. On the ECS Instances tab, find the ECS instance that you created in Step 4: Create an ECS instance.

  5. In the Actions column of the ECS instance, choose More > Reinstall Client

    After a few minutes, the client status changes to Activated .

Step 6: Grant the Cloud Backup client the permissions to read data from the SMB file system

The Cloud Backup client does not have the permissions to read data from SMB file systems. Before you can back up the data of an SMB file system by using Cloud Backup, you must grant the Cloud Backup client the permissions to read data from the SMB file system. For more information, see Grant the Cloud Backup client the permissions to read data from an SMB file system in NAS.

What to do next

Back up NAS files