Blog

Why Cloudflare R2 cannot hand you older object versions

R2 speaks the S3 object API, which is not the same as the S3 version API. Older versions stay where they are.

Why Cloudflare R2 cannot hand you older object versions

If you plan to leave Cloudflare R2 and expect the object history to follow, this post saves a discovery meeting.

"S3-compatible" is a claim about objects, not about history

Storage providers advertise S3 compatibility because clients expect verbs like listing buckets, getting objects, and putting objects. Everything past the basics varies by vendor, covering which headers are honoured, how multipart behaves, and whether version listing works. Cloudflare R2 exposes the object API, but that surface offers no usable path for retrieving past revisions. A client therefore cannot ask the store for every version of a key and get a reliable answer.

What that means in practice

  • FileMigrata copies the current object, and that part of a migration works exactly as the customer expects.
  • Anything older stays on Cloudflare R2 and is not lost, because the bucket holds it until the provider's retention removes it.
  • The S3 API cannot enumerate the earlier revisions, and no tool can move objects that it will not list.
  • Planning for all versions rests on a promise the source cannot keep, so the estimate, timeline, and storage target shift.
  • Ask what the provider can list rather than what it can store, because listing defines what a migration can move.
  • The same caution applies to any store that markets S3 compatibility without a fully working version surface.

The other R2 trap, which is unrelated

Cloudflare R2 also returns ETags that do not behave like checksums whenever a client performs a multipart upload. That issue is a different problem, because it affects verification rather than history, and the team covers the trap with Azure Blob here: R2, Azure Blob, and ETag traps.

What to do instead

If you need the past revisions, copy them out before you leave using the provider's own tooling or export while the account is active. You should not assume that any automated process can reconstruct what the source API refuses to list. If history does not matter, and for most estates it does not, plan on current objects and check that the destination suits your needs.

Related

Ready to migrate files?

Start a free trial for S3-compatible, cloud and WebDAV cutovers with resumable transfers.

Start free trial

Questions? Our team can help with bulk and multi-TB jobs.