---
title: "Data migration center"
description: "Migrate data from Alibaba Cloud OSS, Tencent Cloud COS, AWS S3, and other S3-compatible storage to Bitiful in the console: precheck, resumable transfers, checksum verification, incremental sync, time windows, retrying failures, and cutting over without downtime with mirror back-to-origin."
layout: overview
---

**Data migration** moves data from other S3-compatible storage into your Bitiful buckets. After you enter the source and destination, the task runs in the background and can be paused and resumed at any time. It supports resumable transfers and incremental sync, and you finish by cutting over smoothly with [mirror back-to-origin](/bitiful-s4/handbook/mirror). You don't need to set up servers or write scripts.

To get there, go to **Object storage › Data migration** in the sidebar ([open](https://console.bitiful.com/migration)).

<Frame>
  ![The data migration task list: three tasks that are Migrating, Waiting for time window, and Completed](/assets/console/migration-list-en.webp)
</Frame>

## Supported sources

| Source provider | Description |
| --- | --- |
| Alibaba Cloud OSS | The endpoint is filled in automatically when you choose a region. For OSS accounts opened after March 20, 2025, buckets in Chinese mainland regions can't be read through the default public endpoint. Confirm access in the OSS console first |
| Tencent Cloud COS | The endpoint is filled in automatically when you choose a region. Include the APPID in the bucket name, for example `examplebucket-1250000000` |
| AWS S3 | The endpoint is filled in automatically when you choose a region |
| Huawei Cloud OBS | The endpoint is filled in automatically when you choose a region |
| Qiniu Kodo | The endpoint is filled in automatically when you choose a region |
| Cloudflare R2 | The endpoint looks like `https://<account ID>.r2.cloudflarestorage.com`. Use `auto` as the region |
| MinIO | Enter the public address of your MinIO server, for example `https://minio.example.com`. You usually need to turn on **Path-style access** |
| Other S3-compatible storage | Enter the source endpoint and region. Leave the region blank if unsure |

The source must be reachable over the internet. Migration can't read data from private network addresses.

## Before you start

- Your account has completed [identity verification](/console/account) and has no overdue balance.
- At the source, prepare a sub-account key that **can only read and list objects**. The key is stored encrypted and used only for this task.
- [Create the destination bucket](/bitiful-s4/handbook/buckets) on Bitiful.
- Understand the source's costs: migration reads data from the source, and the source provider charges outbound internet traffic and request fees at its own prices.

## Create a migration task

Click **New migration task** and complete four steps:

<Steps>
  <Step title="Source">
    Choose the **Source provider**, then enter the region, source endpoint, source bucket, and the source AccessKey and SecretKey. To migrate only part of the bucket, enter a directory in **Only migrate this prefix**, for example `images/`. Leave it blank for the whole bucket.

    <Frame>
      ![Step 1 of a new migration task: choose the source provider and enter the region, endpoint, bucket, prefix, and keys](/assets/console/migration-new-source-en.webp)
    </Frame>
  </Step>
  <Step title="Destination">
    Choose the **Destination bucket**, and if needed enter a directory in **Destination prefix**, for example `old-site/`. Leave it blank for the bucket root. The **Object key mapping example** below shows what source objects will be named on Bitiful after migration.

    <Frame>
      ![Step 2: choose the destination bucket and prefix, with an object key mapping example below](/assets/console/migration-new-dest-en.webp)
    </Frame>
  </Step>
  <Step title="Settings">
    Set how existing objects are handled, the threads, the time window, and more. See [Migration settings](#migration-settings) below for what each option means.

    <Frame>
      ![Step 3: task name, existing object handling, threads, time window, Warm cache on write, and Copy object tags](/assets/console/migration-new-settings-en.webp)
    </Frame>
  </Step>
  <Step title="Precheck and create">
    The precheck runs automatically when you reach this step. After it passes, click **Create and start**. The task is queued and usually starts within seconds.

    <Frame>
      ![Step 4: the precheck passed, listing each check result, the sampled data size estimate, and the object key mapping](/assets/console/migration-new-precheck-en.webp)
    </Frame>
  </Step>
</Steps>

### What the precheck checks

| Check | Description |
| --- | --- |
| Source endpoint | Must be a public address and reachable |
| Source credentials and permissions | Can list and read source objects |
| Destination bucket | Exists and belongs to your account |
| Data size estimate | Estimated by sampling the first 1000 source objects. The actual count is determined during migration |

**You can't create the task until the precheck passes.** Make the suggested changes, then click **Check again**.

## Migration settings

| Setting | Description |
| --- | --- |
| **Task name** | Optional. Helps you identify the task in the list |
| **When an object already exists** | **Skip existing** (default, recommended): keep objects that already exist in the destination and don't transfer them. **Overwrite if changed**: compare size and modification time, and overwrite only if the source is newer. **Always overwrite**: always replace destination objects with the source version |
| **Threads** | 1–10. Each thread reaches about 10 MB/s. When bandwidth is tight, tasks share it proportionally instead of failing |
| **Time window** | **All day**, or **Specific hours** (Beijing time; the window can cross midnight, for example 22:00 to 06:00 the next day). Outside the window the task pauses and resumes automatically |
| **Warm cache on write** | Off by default. Migrated data is usually cold, and not warming the cache keeps room for hot files. Turn this on only if the data will be heavily accessed right after cutover |
| **Copy object tags** | Off by default. When on, each object needs an extra request to read its tags, which increases source requests |

<Note>
  Whichever option you choose for existing objects, migration **never overwrites objects you newly write to Bitiful**. Files uploaded to Bitiful after cutover aren't replaced by older versions from the source.
</Note>

## How tasks run

- Each account can have up to **20** migration tasks, and **up to 2 run at the same time**. Other tasks wait in the queue and start automatically when a running task finishes or is paused.
- Source objects are listed while they're migrated, so the number of objects found on the details page grows as the task runs.
- Each object's content is verified after it's migrated.
- **Resumable transfers**: after you resume a paused task or the service restarts, migration continues from where it stopped. For large files, only the missing parts are uploaded, and objects already migrated aren't transferred again.

| Status | Meaning |
| --- | --- |
| **Queued** | Waiting for earlier tasks to finish or pause |
| **Waiting for time window** | Outside the time window you set. The task starts automatically when the window opens |
| **Migrating** | Migration is in progress |
| **Pausing**, **Paused** | Stops after the objects in progress finish. You can resume at any time |
| **Completed** | Every object in this run was migrated or already existed |
| **Partly completed** | The run ended, but some objects failed. See [Failures](#failures) |
| **Needs attention** | The task can't continue because of a problem such as the source credentials, endpoint, or network, and has stopped where it left off. Fix it as the page suggests, then click **Resume**. Objects already migrated aren't transferred again. The only exception is **The destination write credentials are no longer valid**, which requires deleting the task and creating it again |
| **Canceling**, **Canceled** | This run was canceled. Objects already migrated are kept |

## Task details

Click a task name to open its details page. Actions such as **Pause**, **Resume**, and **Incremental sync** are at the top, with five tabs below.

<Frame>
  ![Task details overview: four number cards for Migrated, Skipped (already exist), Failed, and Current speed, with a progress bar and the task settings](/assets/console/migration-detail-en.webp)
</Frame>

| Tab | Contents |
| --- | --- |
| **Overview** | The number and size of migrated, skipped (already existing), and failed objects, the current speed, this run's progress, and the source, destination, and main settings |
| **Failures** | Failed objects and their reasons. You can export them as CSV and retry |
| **Run history** | The start time, duration, and result of each full migration, incremental sync, and retry of failed objects |
| **Settings** | Change the task name, source credentials, and migration settings |
| **Cutover guide** | Six steps from full migration to cutting over your business |

### Pause, resume, and cancel

| Action | Effect |
| --- | --- |
| **Pause** | Stops after the objects in progress finish |
| **Resume** | Continues from where it stopped |
| **Cancel run** | Migrated objects are kept, and unfinished multipart uploads of large files are cleaned up. You can start an incremental sync at any time afterward |

### Incremental sync and retrying failed objects

| Action | Effect |
| --- | --- |
| **Incremental sync** | Compares all source objects again and transfers only new and changed ones. Objects already migrated and unchanged aren't transferred again |
| **Retry failed objects** | Processes only the objects in the failure list again. Successful ones are removed from the list |

After the full migration finishes, you can run incremental syncs as many times as needed to catch up on later changes at the source.

### Failures

<Frame>
  ![Failures: filter by reason, listing the object key, size, reason, and last attempt, with Export CSV and Retry failed objects in the upper-right corner](/assets/console/migration-failures-en.webp)
</Frame>

| Reason | What to do |
| --- | --- |
| **Archived object. Restore it at the source first.** | Archive and Cold Archive objects must be restored at the source first. After restoring, click **Retry failed objects** |
| **Read denied by the source** | Check whether the source key has permission to read this object |
| **Unsupported object key** | The object key doesn't follow Bitiful's [naming rules](/bitiful-s4/definitions): it contains path levels such as `.` or `..`, is longer than 1024 bytes, or contains control characters or other disallowed characters. Rename it at the source, then migrate it again |
| **Conflicts with an existing folder or file in the destination** | Bitiful stores objects in a directory structure, so `a` and `a/b` can't both exist. If the source has both, whichever is migrated second fails. Migrating an object `a` also fails when the destination already has an `a/` folder. Rename one of them at the source or destination, or use a different destination prefix, then click **Retry failed objects** |
| **The source object kept changing during migration** | The object was modified throughout the migration. Wait until it stops changing, then retry |
| **Network or service temporarily unavailable** | Usually retrying later is enough |

Click **Export CSV** to download the full list.

### Run history

<Frame>
  ![Run history: the type, status, start time, duration, and migrated, skipped, and failed counts of each run](/assets/console/migration-runs-en.webp)
</Frame>

### Change settings

While the task is running, only its name can be changed. Pause the task to change other settings. When the source key expires or is replaced, enter the new AccessKey and SecretKey here, then click **Resume**. Objects already migrated aren't transferred again.

<Frame>
  ![The Settings tab: task name, source endpoint and region, new keys, existing object handling, threads, time window, and two toggles](/assets/console/migration-settings-en.webp)
</Frame>

## Cut over without downtime

The **Cutover guide** tab on the details page lists six steps from migration to cutover:

<Frame>
  ![Cutover guide: six steps, Full migration, Incremental sync, Enable mirror back-to-origin, Cut over, Final incremental sync, and Disable mirror back-to-origin](/assets/console/migration-cutover-en.webp)
</Frame>

<Steps>
  <Step title="Full migration">
    The first run migrates every source object. Large buckets can take days, during which your apps keep using the source.
  </Step>
  <Step title="Incremental sync">
    After the full migration, run one or two incremental syncs until each run changes very little.
  </Step>
  <Step title="Enable mirror back-to-origin">
    Click **Enable**. Objects not yet in the bucket are fetched from the source and saved on first access, so there are no 404s after cutover. Requires an HTTPS source endpoint and a source prefix that's empty or ends with `/`. Once enabled, a rule labeled **Private S3 origin** appears in the bucket's **Mirror back-to-origin** tab.
  </Step>
  <Step title="Cut over">
    Point your apps or DNS at Bitiful. Migration never overwrites objects written to Bitiful after cutover.
  </Step>
  <Step title="Final incremental sync">
    Catches up on changes made at the source around the cutover.
  </Step>
  <Step title="Disable mirror back-to-origin">
    After confirming the data is complete, delete the rule in the bucket's **Mirror back-to-origin** tab. The migration is done.
  </Step>
</Steps>

For more complete migration planning (feature mapping, switching the CDN and certificates, and more), see [Migrate to Bitiful](/get-started/migration).

## Migration sub-user

Each task automatically creates a dedicated sub-user, `btf-migrate-<task ID>`, that can only write to the destination bucket or destination prefix. It's used to write data into your bucket. It doesn't appear in the [sub-users](/bitiful-s4/handbook/access-keys) list, can't be modified, and is deleted together with the task.

If the task reports **The destination write credentials are no longer valid**, this sub-user may have been deleted or disabled. Delete the task and create it again.

## Delete a task

Delete a task from its **More actions** menu. Deleting removes only the task record, the saved source credentials, and the migration sub-user. **Data already migrated to your bucket isn't affected.**

## Pricing

Migrated data is billed at Bitiful's standard [storage](/prices/detail/storage-prices) and [request](/prices/detail/requests-prices) prices. **There's no migration service fee.** When data is read from the source, the source provider charges outbound internet traffic and request fees at its own prices. Turning on **Copy object tags** increases the number of source requests.

## Limits

| Item | Limit |
| --- | --- |
| Migration tasks | 20 per account |
| Running at the same time | 2. Others wait in the queue |
| Threads | 1–10 per task, about 10 MB/s per thread |
| Precheck sample | The first 1000 objects |

## FAQ

<AccordionGroup>
  <Accordion title="The precheck says the source endpoint isn't a public address">
    Migration can only read from sources reachable over the internet. Enter the source's public address. Private network and localhost addresses can't be used.
  </Accordion>
  <Accordion title="The precheck fails to read from Alibaba Cloud OSS">
    For OSS accounts opened after March 20, 2025, buckets in Chinese mainland regions can't be read through the default public endpoint. Confirm access in the OSS console first, or use an endpoint that can be reached.
  </Accordion>
  <Accordion title="Will migration overwrite files I already have on Bitiful?">
    The default is **Skip existing**, so nothing is overwritten. Even if you choose to overwrite, migration never overwrites objects you newly write to Bitiful.
  </Accordion>
  <Accordion title="Migration is slow">
    Increase **Threads** in **Settings** (pause the task first). Tasks running at the same time share bandwidth proportionally, and rate limits at the source also affect speed.
  </Accordion>
  <Accordion title='The task shows "Needs attention"'>
    The task has stopped where it left off. Follow the instructions on the page. For example, if the source credentials expired, update the keys in **Settings**; if the source endpoint or bucket name is wrong, correct it and click **Resume**. Objects already migrated aren't transferred again. If you see **The destination write credentials are no longer valid**, delete the task and create it again. If the problem persists, [contact support](/contact).
  </Accordion>
</AccordionGroup>
