Overview

Migrating from Alibaba Cloud OSS to Cloudflare R2 is ideal for organizations seeking zero egress fees, global edge distribution, and seamless Cloudflare Workers integration. This guide provides a complete migration walkthrough using Cloney.

Migration Benefits

Cloudflare R2 offers zero egress fees, S3-compatible API, global edge network, and seamless Workers integration.

Prerequisites

  • A Cloney account with an active subscription
  • Alibaba Cloud OSS bucket with data to migrate
  • Cloudflare account with an R2 bucket created
  • Appropriate credentials for both services

Step 1: Add Your Alibaba OSS Source

  1. Log in to your Cloney dashboard
  2. Navigate to JobsCreate New Job
  3. Select Alibaba Cloud OSS as your source provider
  4. Enter your Alibaba Cloud credentials:
    • Access Key ID: Your RAM user AccessKey ID
    • Access Key Secret: Your RAM user AccessKey Secret
    • Region: The OSS region (e.g., oss-cn-hangzhou)
    • Bucket Name: The name of your source bucket
  5. Click Validate Connection to verify access

Step 2: Configure Your Cloudflare R2 Destination

  1. Select Cloudflare R2 as your destination provider
  2. Enter your Cloudflare R2 credentials:
    • Account ID: Your Cloudflare account ID
    • Access Key ID: Your R2 API token access key
    • Secret Access Key: Your R2 API token secret key
    • Bucket Name: The name of your destination R2 bucket
  3. Click Validate Connection to verify access

Step 3: Start the Migration

  1. Configure optional settings (prefix filter, metadata)
  2. Review your migration configuration
  3. Click Start Migration
  4. Monitor progress in the Jobs dashboard
Migration Complete

Once finished, verify your data in the Cloudflare dashboard and update your applications.

R2 Cost Comparison

Compare Alibaba OSS costs to Cloudflare R2:

Cost ComponentAlibaba OSSCloudflare R2
Storage~$0.02/GB/month$0.015/GB/month
Egress (Data Transfer Out)$0.08-0.15/GB$0 (Free)
Class A Operations$0.01/10K$4.50/million
Class B Operations$0.01/10K$0.36/million
Key Advantage

R2's zero egress fees can result in significant savings for data-heavy applications.

Best Practices

  • Test with a subset first: Run a pilot migration with a small subset of data to validate your configuration.
  • Configure Workers integration: Set up Cloudflare Workers for dynamic content handling if needed.
  • Set up custom domains: Configure custom domains for your R2 bucket for branded URLs.
  • Enable caching: Use Cloudflare's edge caching for frequently accessed content.