Overview

Migrating from Cloudflare R2 to DigitalOcean Spaces may be beneficial if you're consolidating infrastructure on DigitalOcean or need Spaces' integrated CDN capabilities. This guide provides a complete walkthrough of the migration process using Cloney.

Migration Benefits

DigitalOcean Spaces offers simple pricing, built-in CDN, S3 compatibility, and seamless integration with DigitalOcean Droplets and App Platform.

Prerequisites

  • A Cloney account with an active subscription
  • Cloudflare R2 bucket with data to migrate
  • DigitalOcean Space created (destination)
  • Appropriate credentials for both services

Step 1: Add Your Cloudflare R2 Source

  1. Log in to your Cloney dashboard
  2. Navigate to JobsCreate New Job
  3. Select Cloudflare R2 as your source provider
  4. Enter your 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 source R2 bucket
  5. Click Validate Connection to verify access

Step 2: Configure Your DigitalOcean Spaces Destination

  1. Select DigitalOcean Spaces as your destination provider
  2. Enter your Spaces credentials:
    • Access Key: Your Spaces access key
    • Secret Key: Your Spaces secret key
    • Region: The region where your Space is located (e.g., nyc3, sfo3)
    • Space Name: The name of your destination Space
  3. Click Validate Connection to verify access

Step 3: Start the Migration

  1. Configure optional settings (prefix filter, metadata preservation)
  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 DigitalOcean control panel and update your applications.

Cost Comparison

Compare pricing between R2 and DigitalOcean Spaces:

Cost ComponentCloudflare R2DigitalOcean Spaces
Storage (per GB/month)$0.015$0.02
Egress (per GB)$0.00$0.01 (after 1TB free)
Included StorageNone (pay per use)250GB ($5/mo plan)
CDNVia CloudflareBuilt-in (free)

DigitalOcean Spaces Regions

Available DigitalOcean Spaces regions:

RegionLocationEndpoint
nyc3New York City, USAnyc3.digitaloceanspaces.com
sfo3San Francisco, USAsfo3.digitaloceanspaces.com
ams3Amsterdam, Netherlandsams3.digitaloceanspaces.com
sgp1Singaporesgp1.digitaloceanspaces.com
fra1Frankfurt, Germanyfra1.digitaloceanspaces.com

Best Practices

  • Enable CDN: DigitalOcean Spaces includes a free CDN - enable it for public content.
  • Configure CORS: Set up CORS rules on your Space to match your application needs.
  • Use S3cmd or s3cmd: Both services are S3-compatible, making tool migration easy.
  • Integrate with DO Services: Connect Spaces with Droplets, App Platform, or Kubernetes.