All Products
Search
Document Center

File Storage NAS:Migrate data between a NAS file system and an OSS bucket

Last Updated:Oct 31, 2024

This topic describes how to use ossutil or Data Online Migration to migrate data between an Object Storage Service (OSS) bucket and an File Storage NAS (NAS) file system.

Billing

  • Migrate data by using ossutil

    You are not charged for using the ossutil tool. However, when you migrate data, OSS API operations are called and data is transferred by using an elastic IP address (EIP). You are charged API request fees and traffic fees.

    • An Elastic Compute Service (ECS) instance is used as the intermediate node for data transfer. You are charged based on the instance configurations. For more information about the billing of ECS, see Overview. If the ECS instance is bound to an EIP, you are charged outbound traffic fees when NAS data is uploaded to OSS. For more information about the billing of EIP, see Pay-as-you-go.

    • If you migrate data from an OSS bucket to a NAS file system, you are charged for GET requests. After data migration is complete, data stored in the OSS bucket is not deleted. Therefore, you are still charged storage fees, which are included in your OSS bills. Before you delete data stored in the OSS bucket, make sure that the data is migrated to the NAS file system. For more information about the fees for GET requests, see API operation calling fees.

    • If you migrate data from a NAS file system to an OSS bucket, you are charged for PUT requests. After data migration is complete, data stored in the NAS file system is not deleted. Therefore, you are still charged storage fees, which are included in your NAS bills. Before you delete data stored in the NAS file system, make sure that the data is migrated to the OSS bucket. For more information about the fees for PUT requests, see API operation calling fees.

  • Migrate data by using Data Online Migration

    For more information about the fees for using Data Online Migration to migrate data between a NAS file system and an OSS bucket, see Billing of the new version.

Migrate data by using ossutil

ossutil is a command line management tool provided by OSS. ossutil is suitable for scenarios where the total size of files is less than 30 TB. ossutil provides the following benefits:

  • Provides a wide range of simple and convenient commands to manage objects and buckets and ensures high performance of operations.

  • Supports concurrent upload and resumable upload of files.

  • Allows you to upload and download directories and folders.

Procedure

  1. Configure an intermediate node for data transfer. For more information, see Configure an intermediate node for data transfer.

  2. Install ossutil. For more information about how to download and install ossutil, see Install ossutil.

  3. Migrate data.

    Migrate data from an OSS bucket to a NAS file system

    You can run the sync command to migrate data from an OSS bucket to a NAS file system. For more information, see Synchronize OSS objects to your computer.

    ./ossutil64 sync  oss://examplebucket/localdir/    /mnt

    Migrate data from a NAS file system to an OSS bucket

    You can run the sync command to migrate data from a NAS file system to an OSS bucket. For more information, see Synchronize local files to OSS.

    ./ossutil64 sync /mnt/ oss://examplebucket/localdir/    
    Note

    Replace /mnt with the actual mount directory of your NAS file system.

  4. After the migration is complete, check whether all files are migrated to the destination path as expected.

Migrate data by using Data Online Migration

Data Online Migration is a tunnel between different storage services of Alibaba Cloud. Data Online Migration provides stable and efficient batch data migration capabilities for high-concurrency scenarios. You can use Data Online Migration to migrate data between a NAS file system and an OSS bucket without the need to deploy a migration tool.

Procedure: