Cloudflare R2 vs DigitalOcean Spaces

Choose R2 if free outbound transfer and per-operation billing fit your traffic and you do not need S3 versioning or Object Lock. Choose Spaces if a flat monthly plan with included transfer fits your usage on DigitalOcean, and check versioning and lock needs first.

On this page

Cloudflare R2 vs DigitalOcean Spaces: which to choose

Choose R2 when your workload makes few storage operations, sends a lot of data out, and already runs on Cloudflare. Its egress is free through the S3 API, Workers and r2.dev domains, and you pay for storage and Class A and B operations. Choose Spaces when you want a fixed monthly plan on DigitalOcean, where the $5.00 Standard tier includes 250 GiB of storage and 1,024 GiB of outbound transfer. Before you pick either, check four things: your monthly request counts, your outbound volume, whether backup or retention tools need S3 versioning or Object Lock, and where the data must physically sit. If those point toward full S3 semantics, control over the network or a residency model that neither provider offers, a self-hosted store is the better answer, and it belongs in the same cost comparison.

For backup and retention, the S3 API surface matters most. R2's S3 compatibility page lists Object Lock, bucket versioning, ACLs, tagging and bucket policies as not implemented, so a backup product that depends on Object Lock or versioned buckets will not behave the same on R2. R2 bucket locks prevent deletion or overwriting for a set age, until a date or indefinitely, but they are a different control and override lifecycle rules. Spaces allows versioning only through the DigitalOcean API, lists bucket tags as unsupported, and does not let you move a bucket directly between regions or teams. Ask both providers for written answers on each API call your backup and retention tools make, and test those calls against a scratch bucket before you renew or migrate.

Cost and residency deserve the same scrutiny. On R2's published rates, Standard operations cost $4.50 per million Class A and $0.36 per million Class B, so a workload with many small objects or heavy listing can cost more than its egress savings suggest. Pull request counts from your logs before you model it. Spaces overage is billed at $0.02 per GiB of storage and $0.01 per GiB of transfer, so confirm with DigitalOcean whether any request charges apply to your usage. Set the R2 jurisdiction at bucket creation, since it cannot change later, and check that applications use the jurisdiction-specific endpoint. If you need Object Lock together with a named data center, plan a self-hosted store and cost it with your own servers, staff and bandwidth. Ceph documents versioning support, while Garage does not support versioning or object locking.

Which scenario favors R2 and which favors Spaces

This table matches common workload and policy conditions to the platform that fits them better, based on the published pricing, limits and feature support for each service. Read each row together with its condition, because several R2 advantages, such as free egress, apply only on specific access paths. Confirm the details in the final column with the provider before you commit to either platform.

ScenarioBetter fitWhy and when the advantage holds
High public outbound trafficCloudflare R2, if delivery uses those pathsFree egress applies only through the Workers API, S3 API or r2.dev domains. Spaces includes 1,024 GiB of transfer on its $5.00 Standard plan.
Operation-heavy small-object workloadsDepends on request volumePer R2 pricing, Standard Class A costs $4.50 per million and Class B $0.36 per million. Model request counts on both platforms.
Backup tools that expect S3 versioning or Object LockSpaces, if versioning meets the needR2's S3 API does not implement versioning or Object Lock. Spaces versioning is set through the DigitalOcean API; confirm Object Lock with DigitalOcean.
EU-only data residencyCloudflare R2 EU jurisdictionR2 guarantees EU storage, fixed at bucket creation, and needs the jurisdiction endpoint. Confirm Spaces regions and residency terms with DigitalOcean.
Stack already running on DigitalOceanSpacesOne provider account and invoice. Buckets cannot move directly between regions or teams.
Small static-asset workloadCloudflare R2, if assets stay within the free tierFree tier covers 10 GB-month storage and 1 million Class A and 10 million Class B requests monthly, Standard only.
Infrequently read archive dataSpaces Cold Storage, if retrievals are rareLower storage rate ($0.007 per GiB-month) than R2 Infrequent Access ($0.01 per GB-month). Both have 30-day minimums and retrieval fees.
Data must stay in your own facilitiesNeither, evaluate self-hosted optionsSelf-hosted Ceph or Garage keeps data in your facilities but adds hardware and staffing costs.

How to choose between R2 and Spaces: decision path

The diagram starts with storage requirements and checks retention features first. Because R2 implements neither S3 versioning nor Object Lock, a yes answer means you must confirm Spaces support with DigitalOcean before going further. Next, if data must stay on your own hardware or in your own data centers, the self hosted branch leads to Ceph, SeaweedFS or Garage. Otherwise, heavy outbound volume and dependence on Cloudflare edge access point to R2, while a preference for a flat monthly plan points to Spaces. Every branch ends at the same comparison of operations, storage and transfer, using the pricing section.

Decision path from storage requirements to a platform choice.

How Cloudflare R2 vs DigitalOcean Spaces compares on features

This table compares Cloudflare R2 and DigitalOcean Spaces on S3 API coverage, retention, data location, account and transfer limits, and edge access. Where a cell says to confirm, get the figure from the vendor in writing before you commit, and treat the S3 API gaps as the first check for any backup or retention tool you plan to keep.

CapabilityCloudflare R2DigitalOcean Spaces
S3 API coverageObject Lock, bucket versioning, ACLs, tagging and bucket policies are not implemented. SSE-C is supported, but not standard SSE or KMS headers.Bucket tags are unsupported. Versioning is configurable only through the DigitalOcean API. Per-bucket access keys are incompatible with PutBucketPolicy.
RetentionBucket locks block deletion or overwrite by age, date or indefinitely. Up to 1,000 rules per bucket, overriding lifecycle rules.Confirm whether Spaces provides object locking or retention rules, and how they interact with lifecycle rules.
Jurisdictions and regionsEU and FedRAMP jurisdictions guarantee storage location, fixed at bucket creation and used through a jurisdiction endpoint. Location hints are best effort.Confirm the available regions and any residency commitment. Buckets cannot move directly between regions or teams.
Account limitsConfirm bucket and access key limits for your account with Cloudflare.Up to 100 buckets and 200 access keys per account.
Upload limitsConfirm maximum object size and multipart part limits for your account.PUT requests up to 5 GB. Multipart uploads up to 10,000 parts and 5 TB.
Rate limitsConfirm request rate limits and throttling behavior for your buckets.New buckets are limited to 800 operations per second. Retry 503 Slow Down responses with exponential backoff.
Edge accessr2.dev domains and Workers bindings for code that reads buckets.Confirm which public URL and edge delivery options apply to your Spaces plan.

What drives the bill in Cloudflare R2 vs DigitalOcean Spaces pricing

Both bills combine stored capacity, requests, retrieval and outbound transfer, but each provider sets its own units, allowances and minimums. R2 prices per GB and Spaces per GiB, so convert before comparing. Model your own operation counts and transfer volume with these terms, because this page does not forecast your bill.

R2 Standard storage and operations

R2 Standard bills storage at $0.015 per GB-month, Class A operations at $4.50 per million and Class B operations at $0.36 per million, according to Cloudflare's R2 pricing page. Class A is priced well above Class B, so write-heavy workloads drive the bill faster. The free tier covers 10 GB-month of storage, 1 million Class A and 10 million Class B requests a month, for Standard storage only. Confirm which calls fall into each class for your client library before you estimate request volume.

R2 pricing page

R2 Infrequent Access terms

Infrequent Access stores data at $0.01 per GB-month, but it adds a 30-day minimum storage duration and a $0.01 per GB retrieval fee, according to Cloudflare's R2 pricing page. The class suits data you keep for a long time and rarely read, such as compliance archives. Model how often you would restore from it, since every retrieval adds the fee. Ask Cloudflare how it bills objects deleted before the 30 days end, and note that the free tier covers Standard storage only.

R2 egress on three paths

R2 charges no egress fee when data leaves directly through the Workers API, the S3 API or r2.dev domains, and this applies to both storage classes. That covers downloads that go straight to clients or services on those paths. It does not make all outbound traffic free: traffic that routes through your own network, another CDN or a different hostname is outside what this page covers. List every path your applications and users take to read objects, then confirm each with Cloudflare before you set transfer to zero in your model.

Spaces Standard plan allowance

Spaces Standard Storage costs $5.00 a month, including 250 GiB of storage and 1,024 GiB of outbound transfer, according to DigitalOcean's Spaces pricing page. Overage is billed at $0.02 per GiB of storage and $0.01 per GiB of transfer, so the plan is a flat floor with metered growth above it. GiB is a binary unit and slightly larger than GB, so convert both providers to one unit before comparing. Confirm on your invoice how overage is metered, and ask DigitalOcean to state the overage rates in writing.

Spaces pricing docs

Spaces Cold Storage terms

Cold Storage costs $0.007 per GiB per month, plus $0.01 per GiB retrieved beyond the free allowance, according to DigitalOcean's pricing docs. The class carries a 30-day minimum retention, so deleting early does not remove the charge for that window. Objects under 128 KiB are billed as 128 KiB, which matters for logs, thumbnails and sidecar files that are numerous and small. Find out the size of the free retrieval allowance and model restore frequency alongside storage, since each retrieved GiB beyond that allowance is billed.

Quote items to request

A written quote should state each unit rate in effect, such as the per-GB-month rate for R2 Standard, the per-million Class A and Class B rates, and the per-GiB overage and retrieval rates for Spaces. Ask which API calls count as each operation class, how minimum durations and retrieval fees apply to deletes and restores, and whether any discount or currency and tax terms change the bill. For a self-hosted or migration engagement, ask DeployOpen for a fixed scope in writing with deliverables, exclusions and timelines, since the quote follows from that scope.

When a self-hosted option beats both, and what running it involves

A self-hosted store fits best when one of three conditions holds: your backup tools or retention rules need S3 versioning and Object Lock, the objects must stay on hardware you control, or your own network must govern egress. Confirm Object Lock support for the release you choose before you design retention around it. Ceph's S3 API reference describes RADOS Gateway's RESTful API, which supports versioning, lifecycle rules, multipart uploads, ACLs and bucket policies, with bucket replication only across zones. Tentacle (20.2.x) was first released November 18, 2025, with estimated end of life June 1, 2027. Squid's estimated end of life, October 31, 2026, has already passed as of this page's date, so confirm its support status before choosing it.

SeaweedFS is Apache-2.0 licensed and optimized for many small files, but its Enterprise Edition is paid, so confirm which features your workload needs from the community build before you commit. Garage is AGPL-3.0 licensed and suits small geo-distributed clusters, but it has no object versioning, Object Lock or server-side encryption, so it cannot meet a retention requirement on its own. Its AGPL terms also carry network-use obligations that legal counsel should review. MinIO is not a current option for new deployments. Its community repository is archived, no longer maintained, and distributed as source only, with no new binaries, so any move to it would be a separate evaluation of its commercial AIStor line.

Cost has five components: servers, drives, network bandwidth between nodes and to clients, staff time, and support. Hardware is mostly a one-time purchase, while power, bandwidth, staff hours and any support contract recur. Effort rises with node count, with the choice between replication and erasure coding (erasure coding saves capacity but adds rebuild work), with monitoring, and with upgrades. cephadm manages Ceph clusters as containers and is available from v15.2.0 (Octopus) onward, so plan around it for current lines. Before sizing hardware, ask for a written scope that names node count, replication policy, monitoring stack, upgrade cadence and who carries on-call duty.

What moving between R2 and Spaces involves, step by step

Moving data between the two platforms is a sequence of inventory, access mapping, copy, limit handling, repointing and verification, and each step ends with a check you can record. The sequence produces a populated target bucket, a mapped set of credentials, repointed applications and a documented rollback path. Outbound transfer during the copy is billed under each product's own rules, so confirm those charges with each provider before you start.

  1. Inventory buckets and source dependencies

    Record every bucket, its object count and total size, and the settings that do not carry over on their own: versioning, tags, bucket policies, bucket lock rules and public domains. List the Workers, scripts and applications that read or write each bucket through bindings or endpoints, because those paths break at cutover. Check the target's support for each setting before you copy. R2 does not implement versioning, tags, ACLs, bucket policies or Object Lock, and Spaces lists tags as unsupported. The step is done when every bucket has a named owner and a written list of settings that must be rebuilt by hand.

  2. Map access keys and bucket policies

    Create a list of every R2 API token or Spaces access key, the buckets and permissions each one holds, and the applications that use it. Spaces allows 200 access keys per account, so confirm the count fits before you issue new keys. Per-bucket access keys are incompatible with PutBucketPolicy on Spaces, so any policy that depends on them must be redesigned. Create target keys with the narrowest scope the copy job needs and store them in your secrets manager. The step is done when each application has a named target credential and a test request succeeds against the new bucket.

  3. Copy objects with rclone over S3 APIs

    Run rclone against both endpoints using its S3 backend, one bucket at a time, starting with a small test prefix. Spaces buckets cannot be transferred directly between regions or teams, so an object-level copy is the route. Before you consider Cloudflare's Super Slurper, confirm whether Spaces counts as an S3-compatible source, because the tool documents Amazon S3, Google Cloud Storage and S3-compatible providers and skips objects over 1 TB. The step is done when the test prefix copies cleanly and the job log lists no failed objects.

  4. Respect upload and rate limits during copy

    Configure the transfer tool to stay inside the documented Spaces limits: single PUT requests up to 5 GB and multipart uploads up to 10,000 parts. Any object larger than 5 GB needs a multipart upload, so set the part size before the job starts. New Spaces buckets are limited to 800 total operations per second, so cap concurrency to match. When the service returns 503 Slow Down, retry with exponential backoff and do not resubmit at full speed. Confirm the R2 side limits in Cloudflare's documentation before you set concurrency. The step is done when retries clear in the job log and no object remains in a failed state after the run.

  5. Repoint applications, DNS and public domains

    Change application configuration, environment variables and SDK endpoints to the target bucket, using the regional or jurisdiction-specific endpoint the target requires. Update DNS records for public hostnames that serve objects, and replace Workers bindings or edge rules with the target's equivalent access path. Stop writes to the source or make it read-only during the switch so late writes do not disappear. The step is done when each application logs a successful read and write against the target and the public hostnames return the expected objects.

  6. Verify object counts and checksums, then cut over

    Compare object counts and total bytes per bucket between source and target, then compare checksums on every object or on a sample, depending on how sensitive the data is. Run a final delta copy for objects written after the first pass and confirm it reports no differences. Keep the source bucket intact with its keys and DNS records, and define the rollback trigger and the reverse copy path before you switch. The cutover is complete when the source shows no remaining traffic in your logs and the rollback window you set has closed.

Questions buyers ask before choosing R2 or Spaces

Which costs more, Cloudflare R2 or DigitalOcean Spaces?

Neither service is cheaper for every workload, because the answer depends on your operations, storage volume, outbound transfer and retrieval patterns. R2 Standard storage is listed at $0.015 per GB-month, with Class A operations at $4.50 per million and Class B operations at $0.36 per million, and egress is free when data leaves through the Workers API, S3 API or r2.dev domains. Cloudflare's R2 pricing page sets these rates. Spaces Standard Storage costs $5.00 a month and includes 250 GiB of storage and 1,024 GiB of outbound transfer, with overage at $0.02 per GiB of storage and $0.01 per GiB of transfer, according to DigitalOcean's Spaces pricing documentation. Workloads that serve large volumes to the internet weigh transfer most, while pipelines with many small requests weigh operations. Model your last three months of usage against both price lists, and ask each provider to confirm the rates that apply to your account.

What makes an object storage migration take more effort?

Migration effort depends mainly on how many buckets and objects you hold, which storage features your applications use, and which Workers or public domains read the data. Spaces accounts can hold up to 100 buckets, and buckets created after July 2021 hold up to 100 million unversioned or 50 million versioned objects, so counts shape copy time and verification work. The main drivers are:

  • Bucket and object counts, object sizes, and uploads that need multipart handling because PUT requests are limited to 5 GB.
  • API features in use, such as versioning, tags, bucket policies and per-bucket access keys, since some of these are unsupported or limited on one side of the move.
  • Workers bindings, r2.dev domains and custom bucket domains that must be repointed after the copy.
  • Backup and retention tools that expect specific S3 behavior.

Build a complete inventory first, because it sets the scope for every later step.

Can our team move object storage data without a partner?

Yes for simple copies, because rclone is a workable tool for copying buckets between S3-compatible endpoints when your team holds access keys to both accounts. Planning help is usually worth having for the parts that fail quietly: bucket lock or retention rules that must be rebuilt, mapping R2 API tokens or Spaces access keys to the new access model, and the cutover itself, where writes, reads and DNS switch without losing data. Run a pilot on one non-critical bucket first. Verify object counts, sizes and checksums after each copy, test a restore, and keep the source intact until verification passes. Agree a rollback plan before the cutover window opens. A fixed-scope engagement can cover the parts your team does not want to own, and your team can keep the rest in house.

What does a fixed-scope storage migration need from our team?

A fixed-scope engagement needs four inputs before work starts: a complete inventory, access to both accounts, agreed change windows, and named owners who can make decisions. The inventory lists each bucket with its object counts and sizes, lock, retention and lifecycle rules, Workers bindings, public domains, and the applications that read and write it. Access means working credentials for the source and destination accounts with the permissions needed to read, write and change endpoints, handled under your own access policies. Change windows set when writes can pause or switch, which matters most at cutover. Named owners for each application, the storage account, security and compliance should be available for sign-off. Scope, deliverables and timelines are agreed in writing before work starts, so these inputs shape the quote that follows.

Does Cloudflare R2 support S3 Object Lock for retention?

No. R2's S3 API compatibility page lists Object Lock as not implemented, along with bucket versioning, ACLs, object and bucket tagging and bucket policies. R2 offers bucket locks instead, which prevent deletion and overwriting of objects for a set age, until a set date, or indefinitely. You can configure up to 1,000 rules per bucket, and bucket locks override lifecycle rules, so expiry policies cannot remove locked objects early. This matters if your backup software, archive tool or regulator expects S3 Object Lock modes, legal holds or versioned buckets, because those calls may fail or behave differently against R2. Check each tool's R2 support, map your retention requirement to bucket locks, and confirm with your backup and archive vendors whether they need Object Lock specifically.

What should we confirm about DigitalOcean Spaces retention and versioning?

Confirm how versioning is enabled and what retention behavior each bucket has before you plan the move. DigitalOcean documents versioning as configurable only through the DigitalOcean API, so the settings you see in a console or S3 tool may not match what you expect. Confirm the object limits for your buckets too, because versioned buckets reach their ceiling sooner: buckets created after July 2021 hold up to 50 million versioned objects, compared with 100 million unversioned. Check how lifecycle expiration interacts with noncurrent versions, whether any object lock or retention feature is available on your plan, and which key model your bucket policies depend on, since DigitalOcean documents per-bucket access keys as incompatible with PutBucketPolicy. Get written answers for each bucket, and test a restore of a versioned object in a sandbox bucket before you migrate production data.

How long does it take to move object storage data?

The duration depends on data volume, object count, scope and how many change windows the cutover needs, so no single figure applies across projects. Total bytes and object count set copy time, and large numbers of small objects add request overhead. Spaces rate limits new buckets to 800 total operations per second and documents that clients should retry 503 Slow Down responses with exponential backoff, so high object counts can slow a copy. Large single objects also matter: Cloudflare's Super Slurper copies from S3-compatible providers into R2 but skips objects over 1 TB, so those objects need a tool such as rclone. Verification, rollback planning and the cutover window add time beyond copying. Ask any provider for a schedule built from your inventory, with its assumptions written out, and check it against your change windows.

Where do contract terms for R2 or Spaces come from?

Contract terms come from the vendor agreement you hold with Cloudflare or DigitalOcean, including any enterprise terms your account has. DeployOpen publishes no price list. A quote follows from a written scope that lists the systems, data volumes, deliverables and timelines agreed before work starts. Use the vendors' current pricing pages for list rates, then confirm with your account representative which discounts or commitments apply, since your agreement decides what you pay. Read the export, notice and termination terms as well, because they matter for an exit. Ask DeployOpen for a quote based on your inventory, and keep the vendor agreement, the written scope and any change orders together in your procurement file.

How DeployOpen works on this

DeployOpen approaches Cloudflare R2 vs DigitalOcean Spaces as a scoped decision. We plan, implement and document the option you choose inside your own cloud accounts, data centers or air-gapped networks, and we can test and harden it before go-live. Most engagements are fixed-scope, with the scope agreed in writing before work starts.

How we scope

  • The written scope names which workloads, buckets and access paths are covered for each option.
  • Scope covers how each option handles versioning, retention and bucket policies, since the two differ.
  • Engagements are fixed-scope, and ongoing support is available as a retainer.

How we build

  • If the chosen option is self-hosted, we deploy it in your cloud accounts, data centers or air-gapped networks.
  • Build work covers access keys, bucket policies and logging so your security team can review the setup.
  • We test the endpoints and access paths, including the S3 API calls your backup and retention tools depend on.

How we hand over

  • Handover documents the bucket layout, endpoints, key inventory and retention rules, including any R2 bucket locks to rebuild.
  • Your team receives runbooks for daily operations, upgrades, backups and restores, written for your own staff to follow.
  • Compliance evidence, such as configuration exports and access reviews, is prepared for your auditors, who issue any attestation.

How we support

  • Ongoing support, upgrades and continuous testing are available as retainers for storage platforms.
  • Upgrades follow the maintained release lines of the platform you choose, and we document each change.
  • Support can cover the cutover from R2 or Spaces, including endpoint switches and access path changes.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.