You can back up files in the Apsara File Storage NAS console at regular intervals. You can also restore files if data is lost or damaged.

Prerequisites

  • A file system is created. For more information, see Create a file system.
  • Hybrid Backup Recovery (HBR) is activated and the AliyunServiceRoleForHbrNasBackup service-linked role is assigned to HBR.

    If you use the file backup feature for the first time, you must activate HBR and assign the AliyunServiceRoleForHbrNasBackup service-linked role to HBR.

Background information

NAS can work with HBR. HBR uses an efficient backup mechanism that scans files in NAS file systems. This eliminates the need to create snapshots for NAS file systems. You can configure backup policies to generate multiple replicas of data. You can use these replicas to restore files if data is lost or damaged.
  • You can back up General-purpose NAS file systems and Extreme NAS file systems regardless of whether the file systems are mounted.
  • If you do not have the required permissions to back up an SMB file system by using HBR, the backup operation fails. In this case, we recommend that you grant HBR the required permissions on an Elastic Compute Service (ECS) instance. For more information, see Grant the HBR client the permissions to read data from an SMB file system in NAS.
  • You can also use snapshots to back up Extreme NAS file systems. For more information, see Manage snapshots.

Billing

The first time you back up files in a NAS file system, you can create a free (30 day period) backup plan. When the trial period expires, you can renew or stop the backup plan. For more information, see Billing methods and billable items.

Back up files

  1. Log on to the NAS console.
  2. In the left-side navigation pane, choose Data Service > File Backup.
  3. On the File Backup page, click Get Started.
  4. In the Create Backup Plan pane, set the following parameters to create a backup plan, and then click OK.
    1. Configure basic settings.
      Parameter Description
      File System Select the NAS file system that you want to back up.
      Plan Name Enter a name for the backup plan.
      Start Time Specify the time at which the backup plan starts. The time is accurate to seconds.
      Pay After Trial Ends Specify whether to pay for the backup plan after the free trial ends. Valid values:
    2. Optional:To configure a fine-grained backup plan, click Show Advanced Settings, and then click Pay After Trial Ends to enable advanced settings. For more information, see Billing methods and billable items.
      Parameter Description
      Source Paths Enter the path of the file that you want to back up.

      Example: /nas/folder. / indicates the root directory of the NAS file system.

      Backup Interval Select the interval at which incremental backup is performed.

      Units: days or weeks.

      Retention Policy Select the retention policy of the backup data. Valid values: Limited and Permanent.
      Retention Period Select the retention period of the backup data.

      If you set the Retention Policy parameter to Limited, you must specify the Retention Period parameter. Unit: days, weeks, months, or years.

      Backup Vault Click Select Vault to specify a backup vault.

      If no backup vaults are available, set the value to Create Vault and specify the Vault Name parameter. The name must be 1 to 64 characters in length.

      Vault Name Enter the name of the backup vault.

      If you set the Backup Vault parameter to Create Vault, you must enter a name for the backup vault.

  5. On the Backup Plans tab, find the created backup plan and click Get Started.
    Note
    • On the Backup Jobs tab, you can view the statuses of the backup jobs, the data size of the backup files, and other details.
    • If the statuses of the backup jobs are not updated for a long time, you can click the Refresh button in the upper-right corner of the page.

Restore files

  1. Log on to the NAS console.
  2. In the left-side navigation pane, choose Data Service > File Backup.
  3. On the File Backup page, click the Restore Jobs tab, and then click Create Restore Job.
  4. In the Create Restore Job panel, perform the following steps to set the parameters:
    1. Set the backup file parameters and then click Next.
      Parameter Description
      Source Vault Select the backup vault where the files that you want to restore reside.
      Source File System Select the file system where the files that you want to restore reside.
      Select a backup to restore Select the directory where the files that you want to restore reside.
    2. Select a restoration rule based on the actual restoration scenario and click Next.
    3. Select the origin file system or specify a file system, and click Next.
    4. Select the origin path or specify a path, and click Create.
      Note
      • On the Restore Jobs tab, you can view the statuses of the backup jobs, the data size of the backup files, and other details.
      • If the restoration destination is a newly specified file system, view the details of restoration jobs after you filter the file system in the File System column.

Related operations

Category Description
Operations related to backup plans
  • Modify a backup plan: You can reset the backup interval, retention policy, and source path of the backup plan based on your business requirements.
  • Delete a backup plan: If you no longer need a backup plan, you can delete it.
  • Suspend a backup plan: You can suspend a scheduled backup plan.
  • Resume a backup Plan: You can resume a suspended backup plan.
Operations related backup jobs
  • Query a backup job: You can query the details of all backup jobs in the past three months. The details include job status, data size, and progress.
  • Cancel a backup job: You can cancel a pending or running backup job. If you cancel the backup job, all the file backups of this job are removed from the backup vault. If you still need to back up these files, create another backup job.
Operations related to restoration jobs
  • Query a restoration job: You can query the status, data size, and progress of restoration jobs.
  • Cancel a restoration job: You can cancel a running restoration job. After you cancel a restoration job, the restored files of the job are saved in a specified directory. The remaining files of the job are no longer restored.

FAQ