Help Center/ Scalable File Service/ FAQs/ Others/ How Can I Migrate Data Between SFS and OBS?
Updated on 2022-03-29 GMT+08:00

How Can I Migrate Data Between SFS and OBS?

Background

HUAWEI CLOUD Object Storage Service (OBS) is a stable, secure, efficient, and easy-to-use cloud storage service. With the Representational State Transfer (REST) application programming interfaces (APIs), OBS is able to store any amount and form of unstructured data.

HUAWEI CLOUD Scalable File Service (SFS) is a network attached storage (NAS) service that provides scalable high-performance file storage. With SFS, shared access can be achieved among multiple Elastic Cloud Servers (ECSs), Bare Metal Servers (BMSs), and containers created on Cloud Container Engine (CCE) and Cloud Container Instance (CCI).

How to Migrate

SFS file systems need to be mounted to ECSs, containers, or BMSs. Data migration between SFS and OBS is actually the data migration between servers/containers and OBS. Data in servers or containers is stored in the mounted SFS file systems.

Therefore, after an SFS file system is mounted to a server or container, you can log in to the server or container and use OBS tools, APIs, or SDKs to migrate data. For example, if you want to migrate data from SFS to OBS, use the OBS upload function on the server or container to upload data to OBS. If you want to migrate data from OBS to SFS, use the OBS download function on the server or container to download data to the SFS file system mounted on the server or container. Read and write permissions are required.

As listed in Table 1, OBS provides various methods for data migration. Select a suitable migration method according to your operating system and actual needs, and migrate data by referring to the upload and download sections in the guide manual.

The supported operating systems, data volume, and operation complexity vary according to the migration methods. obsutil is recommended.

To reduce costs, it is recommended that you configure the intranet DNS and migrate data over the HUAWEI CLOUD intranet. For details, see Accessing OBS over Intranet.

Table 1 Data migration tools provided by OBS

Tool

Supported OS

(Refer to each tool guide for supported versions.)

Document

OBS Console

Windows

Console Operation Guide

OBS Browser+

Windows

OBS Browser+ Tool Guide

obsutil (Recommended)

Windows/Linux

obsutil Tool Guide

SDK

All

SDK Reference

API

All

API Reference