All Products
Search
Document Center

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

Last Updated:Jan 30, 2026

This topic describes how to migrate data between Object Storage Service (OSS) and Apsara File Storage NAS by using ossutil or Data Online Migration.

Billing

  • Migrate data by using ossutil

    The ossutil tool is free. However, data migration involves OSS API requests and data transfer through an Elastic IP address (EIP), which incur API request fees and public network traffic fees.

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

    • To migrate data from OSS to NAS, GET request fees apply. After migration, data stored in OSS is not automatically deleted, so storage fees continue to accrue. Verify that data is successfully migrated to NAS before manually deleting the source data in OSS. For more information about GET request fees, see API operation calling fees.

    • To migrate data from NAS to OSS, PUT request fees apply. After migration, data stored in NAS is not automatically deleted, so storage fees continue to accrue. Verify that data is successfully migrated to OSS before manually deleting the NAS file system. For more information about PUT request fees, 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 the official command-line tool for OSS, suitable for scenarios with a total data volume of less than 30 TB. ossutil offers the following benefits:

  • Simple and efficient commands for managing objects and buckets with high performance.

  • Support for concurrent upload and resumable upload.

  • Support for uploading and downloading directories.

Procedure

  1. Configure an intermediate node for NAS data transfer. For more information, see Configure a transit node for data migration.

  2. Install ossutil. For more information about downloading and installing ossutil, see Install ossutil.

  3. Migrate data.

    Migrate data from OSS to NAS

    Run the sync command to migrate data from OSS to NAS. For more information, see sync (Synchronize OSS files to a local computer).

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

    Migrate data from NAS to OSS

    Run the sync command to migrate data from NAS to OSS. For more information, see Synchronize local files to OSS using the sync command.

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

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

  4. After migration, verify that all files are successfully migrated to the destination.

Migrate data by using Data Online Migration

Data Online Migration is a data channel provided by Alibaba Cloud for storage products. It offers stable and efficient batch data migration capabilities for high-concurrency scenarios. With Data Online Migration, migrate data between NAS and OSS without deploying any migration tools.

Migration tutorials: