Migrate from Google Cloud Storage to Cloudflare R2
Complete guide to migrating your data from Google Cloud Storage to Cloudflare R2 storage using Cloney.
Overview
Cloudflare R2 offers S3-compatible object storage with zero egress fees, making it an attractive alternative for applications with high bandwidth requirements. Migrating from Google Cloud Storage to R2 can significantly reduce your cloud storage costs.
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
- Google Cloud Storage bucket with data to migrate
- Cloudflare account with R2 enabled
- Appropriate credentials for both services
Setup Access Credentials
Before proceeding, ensure you have configured least privilege access for both services:
Google Cloud: Least Privilege Access SetupCloudflare R2: Least Privilege AccessStep 1: Add Your GCS Source
- Log in to your Cloney dashboard
- Navigate to Jobs → Create New Job
- Select Google Cloud Storage as your source provider
- Upload your GCP service account JSON key file
- Click Validate Connection to verify access
Step 2: Configure Your Cloudflare R2 Destination
- Select Cloudflare R2 as your destination 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 destination R2 bucket
- 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 Cloudflare dashboard and update your applications to use the R2 endpoint.
Cost Comparison
R2's pricing can significantly reduce costs compared to GCS, especially for egress-heavy workloads:
| Cost Component | GCS Standard | Cloudflare R2 |
|---|---|---|
| Storage (per GB/month) | $0.020 | $0.015 |
| Egress (per GB) | $0.12 | $0.00 |
| Class A Operations (per 1M) | $5.00 | $4.50 |
| Class B Operations (per 1M) | $0.40 | $0.36 |
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.
- Monitor usage: Use Cloudflare Analytics to monitor your R2 usage and optimize costs.
Ready to Start Your Migration?
Create your Cloney account and begin migrating your data securely today.