Migrate from Cloudflare R2 to DigitalOcean Spaces
Complete guide to migrating your data from Cloudflare R2 to DigitalOcean Spaces using Cloney.
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.
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
Setup Access Credentials
Before proceeding, ensure you have configured least privilege access for both services:
Cloudflare R2: Least Privilege AccessDigitalOcean Spaces: Least Privilege AccessStep 1: Add Your Cloudflare R2 Source
- Log in to your Cloney dashboard
- Navigate to Jobs → Create New Job
- Select Cloudflare R2 as your source provider
- 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
- Click Validate Connection to verify access
Step 2: Configure Your DigitalOcean Spaces Destination
- Select DigitalOcean Spaces as your destination provider
- 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
- Click Validate Connection to verify access
Step 3: Start the Migration
- Configure optional settings (prefix filter, metadata preservation)
- Review your migration configuration
- Click Start Migration
- Monitor progress in the Jobs dashboard
Once finished, verify your data in the DigitalOcean control panel and update your applications.
Cost Comparison
Compare pricing between R2 and DigitalOcean Spaces:
| Cost Component | Cloudflare R2 | DigitalOcean Spaces |
|---|---|---|
| Storage (per GB/month) | $0.015 | $0.02 |
| Egress (per GB) | $0.00 | $0.01 (after 1TB free) |
| Included Storage | None (pay per use) | 250GB ($5/mo plan) |
| CDN | Via Cloudflare | Built-in (free) |
DigitalOcean Spaces Regions
Available DigitalOcean Spaces regions:
| Region | Location | Endpoint |
|---|---|---|
| nyc3 | New York City, USA | nyc3.digitaloceanspaces.com |
| sfo3 | San Francisco, USA | sfo3.digitaloceanspaces.com |
| ams3 | Amsterdam, Netherlands | ams3.digitaloceanspaces.com |
| sgp1 | Singapore | sgp1.digitaloceanspaces.com |
| fra1 | Frankfurt, Germany | fra1.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.
Ready to Start Your Migration?
Create your Cloney account and begin migrating your data securely today.