Overview

Cloudflare R2 offers S3-compatible object storage with zero egress fees. Migrating from DigitalOcean Spaces to R2 can significantly reduce costs for applications with high bandwidth requirements while maintaining S3 API compatibility.

Migration Benefits

Zero egress fees, S3-compatible API, global distribution via Cloudflare's network, and seamless integration with Cloudflare Workers.

Prerequisites

  • A Cloney account with an active subscription
  • DigitalOcean Space with data to migrate
  • Cloudflare account with R2 enabled
  • Appropriate credentials for both services

Step 1: Add Your DigitalOcean Source

  1. Log in to your Cloney dashboard
  2. Navigate to JobsCreate New Job
  3. Select DigitalOcean Spaces as your source provider
  4. Enter your Spaces credentials and click Validate Connection

Step 2: Configure Your Cloudflare R2 Destination

  1. Select Cloudflare R2 as your destination provider
  2. 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 destination R2 bucket
  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 Cloudflare dashboard and update your applications.

Cost Comparison

R2's pricing compared to DigitalOcean Spaces:

Cost ComponentDigitalOcean SpacesCloudflare R2
Storage (per GB/month)$0.02$0.015
Egress (per GB)$0.01 (after 1TB free)$0.00
Included Transfer1TB/monthUnlimited
Cost Savings

For high-bandwidth applications, R2's zero egress fees can result in significant cost savings compared to Spaces' outbound transfer charges.

Best Practices

  • Leverage Zero Egress: R2's zero egress fees make it ideal for CDN origins, media delivery, and high-traffic applications.
  • Use Workers Integration: Combine R2 with Cloudflare Workers for serverless data processing at the edge.
  • Configure Custom Domains: Set up custom domains for your R2 buckets for branded URLs.
  • Enable Public Access: Use R2's public bucket feature for static assets and media files.