Migrate from Cloudflare R2 to SeaweedFS

Moving from Cloudflare R2 to self-hosted SeaweedFS is a data copy plus a rebuild of the edge: public access, Workers bindings and API keys. This page sets out what moves cleanly, the sequence and what drives effort.

On this page

Migrating from Cloudflare R2 to SeaweedFS: what the move involves

The bucket data moves with rclone over the S3 API, which SeaweedFS exposes through its filer servers, so the copy itself is the simpler part of the work. The edge behaviour is what has to be rebuilt: public bucket domains, Workers bindings and any application code that assumes Cloudflare handles access, caching and authentication on the way in. Teams usually start this move because of a renewal, a data residency requirement, lock-in to one provider's API, or a wish to own the network the data travels over. Whichever reason applies, the first deliverable should be an inventory that lists every bucket, every key, every public hostname and every Worker that reads from R2, because each of those needs a named owner on the new side.

The work is usually run by a platform or storage team, often with an implementation partner for the cluster build and the cutover. Before choosing a topology, confirm the master, volume and filer layout you need: SeaweedFS runs master servers (one, or a Raft group of three), volume servers that hold blobs in append-only volume files, and filer servers that manage directories and files and expose the S3 endpoint. Decide which metadata store the filer will use, since the README lists options from LevelDB to PostgreSQL and Redis, and plan the replication and erasure coding settings against the failure domains you actually have. Ask whether your own team will hold the on-call duty for those components, because that staffing question matters more than the license terms.

The effort range depends mainly on three things: how many buckets and keys must be re-created, how deeply Workers code is coupled to R2 bindings, and which retention rules must be re-expressed. R2 does not implement S3 Object Lock or bucket versioning, so any retention promise made to auditors needs a written decision on how SeaweedFS will satisfy it, and you should confirm that decision with the compliance owner before data moves. SeaweedFS is licensed Apache-2.0, and its paid Enterprise Edition adds features such as data recovery and self-healing storage, so ask in writing which of your requirements the community edition covers and what a support or Enterprise quote would include.

Which R2 features map to SeaweedFS, and which need rework

This table maps the R2 features a migrating team typically relies on to their SeaweedFS equivalents and marks each row as clean, needs rework or gap. Read the status column first, then check the notes for the work each row implies. Object Lock and versioning are marked unconfirmed because the supplied facts do not establish them for SeaweedFS, so confirm them against the SeaweedFS S3 documentation before promising them to auditors or backup owners.

R2 featureSeaweedFS equivalentStatusWhat to do
S3 API object operations (PUT, GET, DELETE, list)S3 gateway served through filer serversCleanTest each client SDK and backup tool against a staging endpoint before cutover
Multipart uploadsS3 multipart upload through the S3 gatewayNeeds reworkConfirm part sizes and abort behavior in your tools, then retest large uploads
Public bucket access via r2.dev or custom domainsNo Cloudflare edge; serve through your own reverse proxy and DNSNeeds reworkPlace a reverse proxy in front of the filer or S3 endpoint and manage TLS certificates yourself
Workers bindings reading R2 directlyNo native binding; Workers must call the S3 or HTTP endpoint over the networkNeeds reworkRewrite Worker code to use signed requests and confirm latency from the Worker location
API tokens scoped to bucketsS3 access keys created per identity, managed by your own configurationNeeds reworkRe-create keys for each application and map permissions to the new users you define
Storage classes and tieringErasure coding for warm data, replication for hot dataNeeds reworkChoose replication and erasure coding settings per volume layout, then verify placement
Jurisdiction-specific endpointsPlacement by data center and rack through replication settingsNeeds reworkDefine where your own servers sit, since data location becomes your responsibility
Encryption at rest with AES256-GCM, TLS or mTLS in transitSupported by SeaweedFSCleanConfirm key management and certificate rotation procedures in your environment
Object Lock and versioningNot confirmed in supplied documentationGapConfirm with the SeaweedFS S3 documentation before promising retention or versioning

How SeaweedFS is laid out and what you must plan before copying

Before you copy a single R2 object, decide how the SeaweedFS roles will be placed, because the layout determines your failure domains and your sizing. SeaweedFS separates three concerns: master servers track which volume servers hold which volumes, volume servers store the blob data, and filer servers manage directories, file names and the S3 and HTTP views that clients use. You can run a single master for a lab, but production planning should assume a Raft group of three masters so that volume location lookups survive the loss of one node. Volume servers hold blobs in append-only volume files, so disk layout, replication settings and rack or data center placement are the decisions that matter most when you map R2 buckets onto the cluster.

The filer is where your migration touches applications. Its metadata store is pluggable, and the README lists options including LevelDB, RocksDB, SQLite, MySQL, PostgreSQL, Redis, etcd, TiKV and FoundationDB. Choose a store your team already backs up, monitors and restores, and confirm with your SeaweedFS version that the store supports the filer features you need. Sizing is the other planning point: SeaweedFS keeps a 16-byte in-memory index entry per blob for fast disk access. Multiply that by your object count, not your data volume. A bucket of millions of small thumbnails or log segments can need far more master or volume server memory than the same terabytes stored as large media files, so inventory R2 object counts by size band before you choose hardware.

For deployment, SeaweedFS runs on Docker, on bare metal, or on Kubernetes using its Helm charts, CSI driver and operator. Kubernetes fits teams that already run stateful workloads there, but it adds a storage layer you must operate. Confirm which option your platform team supports, how persistent volumes are provisioned, and who owns upgrades. Check the SeaweedFS releases page for the current version and read its changelog before you pin one, and confirm with the vendor whether the features your backup tools need are in the open-source edition or only in the paid Enterprise Edition.

The migration sequence from R2 inventory to decommission

The sequence moves R2 data, access and edge behavior onto SeaweedFS in stages, so each bucket is verified before clients depend on it and R2 is retired only after a retention check.

  1. Inventory buckets, domains, bindings and tokens

    The platform owner lists every R2 bucket, its object count and total size, any public bucket domains or r2.dev URLs, every Workers binding that reads or writes a bucket, and every R2 API token with the permissions it grants. Each bucket is also tagged with its owner and whether it holds backup or retention-bound data. The step closes with a written inventory that the team signs off, since it becomes the checklist for every later step. Confirm the R2 billing and operation counts from Cloudflare's current pricing page before the copy starts, because operation-heavy listings affect planning.

  2. Build the SeaweedFS target and pilot a bucket

    The infrastructure team deploys the SeaweedFS master, volume and filer servers in the client's environment, sets the filer metadata store, and enables the S3 gateway with TLS. The team then creates one low-risk pilot bucket, maps an S3 identity to it, and copies a representative sample with rclone over the S3 API. Because R2 does not charge egress, the copy itself adds no transfer fee from Cloudflare. Done means the pilot objects match the source by checksum, and a test client can list, read and write through the new endpoint.

  3. Run a parallel copy with checksum verification

    For each remaining bucket, the migration engineer runs rclone sync or rclone copy with checksum comparison from R2 to the SeaweedFS S3 endpoint, starting with a full pass and repeating incremental passes until writes to the source are quiet. Both sides stay live during this window, and the team records object counts, sizes and checksum results per bucket in a migration log. Mismatches are re-copied and logged. Done means every bucket shows zero unexplained differences in the log, and the team has reviewed any objects rclone skipped or could not read.

  4. Recreate keys, policies and access paths

    The security engineer issues new SeaweedFS S3 credentials scoped to the same buckets and operations as each R2 token from the inventory, following least privilege rather than copying broad tokens. Replacements for r2.dev URLs and public bucket domains are placed behind a reverse proxy or CDN the client controls, and Workers code that used bindings is rewritten to call the SeaweedFS endpoint with those credentials. Done means each old token has a mapped replacement, every public path returns the expected objects through the new front door, and the mapping is recorded for the audit file.

  5. Cut over Workers and clients to SeaweedFS

    The application team switches clients, backup jobs and Workers to the SeaweedFS endpoint one group at a time, keeping R2 in read-only mode for rollback. The team confirms that each workload reads and writes correctly and that its logs show no authentication or missing-object errors. Writes stop on R2 for each bucket only after its cutover is confirmed. Done means no production workload still points at the R2 endpoints, and the change record names the owner who approved each switch.

  6. Confirm retention and decommission R2

    Before deleting anything in R2, the compliance lead checks the retention obligations in the inventory against the SeaweedFS copies, and confirms that backups exist in a separate, isolated destination as the CIS Controls v8.1 Safeguard 11.4 recovery guidance describes. Note that SeaweedFS has no S3 Object Lock as R2 bucket locks are rebuilt, so any retention rule must be enforced by an external control and documented. Once the owner signs off, R2 buckets, tokens and Workers bindings are removed. Done means a signed decommission record exists and the final R2 inventory shows zero active references.

How the parts fit during the parallel run

The run starts with rclone reading objects from the R2 bucket over the S3 API, which crosses the Cloudflare edge boundary. rclone writes into the SeaweedFS S3 gateway on a filer server, which records metadata while the master tracks volume locations and volume servers hold the blobs in append-only volume files. Clients and any Workers path keep pointing at R2 until checksum and listing comparisons pass, then the endpoint switches to SeaweedFS.

Data moves from R2 through rclone into SeaweedFS, with clients switching endpoints only after verification.

Data, keys and integrations to move or rebuild

Moving from R2 to SeaweedFS is more than copying objects. Access keys, public URLs, Workers code and DNS each depend on Cloudflare services that SeaweedFS does not provide, so each one needs a named replacement before cutover. The cards below list what to move, what to rebuild and what to confirm in your own environment.

Object data with checksums

Copy bucket contents from R2 to SeaweedFS using rclone over the S3 API, which avoids R2 egress charges when the copy runs from your own network. Use rclone copy with checksum verification so each object is compared after transfer, not only by size and name. Run a dry run first and record object counts and total bytes per bucket. Confirm how your rclone version handles object metadata and content types, since those fields are what downstream clients read after cutover.

rclone S3 docs

API tokens rebuilt as S3 identities

R2 API tokens do not carry over. Create a separate SeaweedFS S3 identity for each application or team, with access limited to the buckets and actions it needs. Keep the old token scopes in a table so each R2 permission maps to one SeaweedFS identity. Confirm in the SeaweedFS documentation how identities and actions are configured for your release, and test each application with its new key before it is pointed at the new endpoint.

Public access through a reverse proxy

R2 public bucket domains and r2.dev URLs have no direct equivalent in SeaweedFS. Place a reverse proxy or CDN in front of the filer or S3 endpoint and expose only the paths that must be public. Keep private buckets behind authentication at the proxy and the S3 layer. Confirm that your proxy passes range requests and cache headers correctly, because media delivery and resumable downloads depend on them.

Workers code moved to direct calls

Workers bindings to R2 do not run on your servers. Rewrite each Worker or service that reads or writes objects to call the SeaweedFS S3 endpoint or filer HTTP API directly, using the new identities. List every binding in the R2 inventory so none is missed. Test error handling, timeouts and retries, since calls now cross your own network and may fail differently from in-platform bindings.

Custom domains and DNS cutover

Custom domains attached to R2 buckets must be repointed to the new endpoint, with TLS certificates issued for that hostname. Lower DNS record TTLs before the cutover window so rollback is quick. Run both stores in parallel for a set period, sync changes made during that period, and then switch the record. Confirm your certificate issuance process and that clients pin nothing to Cloudflare addresses.

Lifecycle rules and metadata exports

Export R2 object listings, custom metadata and any lifecycle or expiration rules before shutdown, since these settings do not move automatically. Rebuild retention and expiration in SeaweedFS according to what its documentation and your release support, and confirm the feature coverage for versioning and locking before relying on it. Keep the exported inventory as evidence of what was migrated, and check it against the copy results.

How the move differs by starting point

Buckets that serve public files through an r2.dev address or a custom domain are usually small in object count and bytes, but the cutover is visible to every browser that loads them. Copy volume is modest, so the work centers on URLs, caching and DNS. Your SeaweedFS endpoint must answer with the same paths and content types that visitors already request, and you need a public-serving layer in front of the filer that Cloudflare used to provide.

  • Copy volume: Plan a full copy with rclone over the S3 API, then run a delta sync shortly before cutover so assets uploaded during the window are not lost.
  • Public access: Recreate read access at a domain you control, typically a reverse proxy or CDN in front of the SeaweedFS S3 or filer endpoint, and confirm the response headers match what clients expect.
  • Cache behavior: Cloudflare's edge cached these files. Decide which cache layer replaces it and set cache-control headers before you retire the old path.
  • Filer planning: Object counts are small, so a single filer store such as LevelDB or SQLite may be enough for a pilot, but confirm the store choice against your expected growth and backup plan.
  • Cutover: Lower DNS TTLs in advance and keep the r2.dev or custom domain pointed at R2 until you have verified checksums and rendering.

Before cutover, compare checksums and sample URLs from both sources and confirm the replacement serves them correctly from a clean browser session.

What drives cost and duration, and how to keep each down

The R2 exit is priced by what you move and how you move it, so the same few variables set both the bill and the calendar. Each card below is one driver, what it does to the migration, and what to confirm before you agree a scope or a quote.

Bucket and object count

SeaweedFS handles many small files well, but every object still has to be listed, copied, verified and re-pointed. Count buckets and objects per bucket from R2 before anything else, and note how many are tiny, because metadata work scales with object count more than with bytes. Ask the team doing the copy to size the listing and verification pass separately from the transfer itself.

Workers and binding coupling

Any Worker that reads or writes R2 through a binding must be rewritten to call your SeaweedFS S3 endpoint, which adds code review, testing and a cutover window. Inventory every Worker, route and cron job that touches a bucket. This work is often larger than the data copy, and it is the part most likely to be underestimated in a quote.

Keys and public domains

R2 API tokens, public r2.dev URLs and custom domains are issued and managed in Cloudflare, so each one needs a SeaweedFS replacement: an S3 identity with scoped permissions, a reverse proxy or CDN origin, and new DNS records. Count the tokens, custom domains and hard-coded URLs in client apps and partner integrations, since each change needs its own owner and test.

Retention and compliance rules

If buckets carry retention, legal hold or audit requirements, SeaweedFS does not replace R2 bucket locks with a like-for-like S3 Object Lock feature set. Confirm with your compliance owner which rules must survive the move and whether they can be met by process, separate immutable backup copies or another control. Scope that decision before the migration starts, because it can change the design rather than just the timeline.

Staff skills for masters and volumes

Running SeaweedFS means operating master servers (one, or a Raft group of three), volume servers and filers, plus monitoring, upgrades and disk replacement. Ask whether your team already runs distributed storage or Kubernetes operators, and whether they can own on-call for storage. Staff time is usually the largest recurring cost, and the people hours to learn the system are one-time costs you should show separately in any estimate.

Read the source

One-time and recurring spend

One-time costs include migration engineering, Worker rewrites, rclone runs and parallel validation. Recurring costs include servers, drives, power, data center or cloud bandwidth, backups and staff time. If you need the Enterprise Edition for data recovery or self-healing features, its license is an added recurring line. Ask every quote to separate these lines, and note that R2 bills per stored byte and per Class A and B operation, so listing, copy and verification requests during the exit window add to the R2 bill.

Running both stores in parallel and cutting over safely

Keep R2 as the system of record until SeaweedFS has passed verification, and make every cutover step reversible. In practice, this means running both stores side by side for a defined period: new writes go to R2 while a copy job mirrors them into SeaweedFS, and reads are switched only for workloads whose consumers have been tested against the S3 gateway. Application code that writes through the S3 API can use a dual-write wrapper, but a one-way sync from R2 to SeaweedFS is usually safer for Workers-fronted content, because it never leaves SeaweedFS holding the only copy of a new object.

Verify before trusting the copy. Run rclone check between the two remotes to compare object lists and hashes, and compare per-prefix object counts and total bytes from both sides. Where R2 and SeaweedFS report different checksum types, confirm which hash rclone can compare on each backend rather than assuming they match, and spot-check a sample of objects by downloading them and comparing digests. Record the results per bucket, including objects skipped for size or content-type reasons, so the verification report can be reviewed later by whoever signs off the cutover.

Plan the cutover window around the last incremental sync, and keep R2 readable and its credentials valid until verification passes and the rollback has been rehearsed. The rollback path is simply to repoint the Worker binding or DNS record back to R2, which works only if no new objects exist solely in SeaweedFS. Before changing DNS or Worker configuration, confirm the S3 gateway settings on the SeaweedFS side: the endpoint and TLS certificate, the access keys mapped to the right identities, the bucket names and path or virtual-host addressing that your clients expect, and the public access settings you intend. Test each setting with the same client configuration your production jobs use, and confirm the exact option names against the SeaweedFS documentation for your release.

Questions teams ask before moving from R2 to SeaweedFS

How long does a move from R2 to SeaweedFS take?

The duration depends on the data volume, the number of buckets, how many services read those buckets, and how much of the surrounding setup is new. No supplied benchmark gives a reliable figure, so ask for a timeline based on your own inventory. The biggest drivers are the total bytes and object count to copy, the time needed to build and load-test the SeaweedFS cluster (masters, volume servers and filers), and the number of applications whose endpoints, keys and edge paths must change. Copying itself is often the shortest step. Confirm the timeline against a pilot copy of one representative bucket before committing to a cutover date, and ask the implementation partner to state which of these inputs the estimate assumes.

What does a SeaweedFS migration cost, and which parts recur?

Cost has four components: hardware or virtual machines for masters, volume servers and filers, bandwidth and facilities in your own network, staff time to build and operate the cluster, and the one-time migration work itself. SeaweedFS is Apache-2.0 licensed, so the core software has no license fee, though its paid Enterprise Edition adds data recovery and self-healing features that you should price separately if you need them. Hardware, power, bandwidth and on-call staffing recur every month, while migration, cluster build and runbook writing are mostly one-time. R2 charges for storage and Class A and B operations with no egress fees, so compare your current monthly bill with the recurring infrastructure and labor figures. Ask any quote to itemize each of these components.

Can our team migrate from R2 to SeaweedFS without outside help?

A team with experience running Linux servers, storage networking and S3 clients can often do the copy itself, but the migration has more parts than the copy. Copying with rclone is documented, since rclone supports SeaweedFS as an S3 provider, and the project is MIT licensed. Harder work includes sizing and designing the master, volume and filer layout, choosing a filer metadata store, setting replication and TLS, rebuilding access keys, and replacing Cloudflare edge features. If nobody on the team has operated a distributed blob store before, a fixed-scope engagement can cover design, build, hardening and handover. Decide with a written inventory of buckets, consumers and failure requirements.

What does the migration need from our engineers and security team?

The work needs named owners for four areas: storage operations (cluster sizing, replication and upgrades), application teams (endpoint and credential changes), security (key issuance, TLS or mTLS, encryption at rest and access logging), and whoever signs off on cutover. Application teams must list every service that reads or writes R2, including backup jobs, CDN origins and Workers code. Security should confirm how SeaweedFS S3 credentials map to the access model that R2 API tokens provided, and whether AES256-GCM encryption at rest and TLS or mTLS meet your policy. Ask the implementation partner for a written list of these inputs before work starts, so the scope and effort are agreed in advance.

Do Workers bindings and public bucket domains need to change?

Yes, they must be replaced because they depend on Cloudflare's edge. Workers bindings read R2 through Cloudflare's internal integration, so code that uses them will need to call SeaweedFS over its S3 API or HTTP interface, with credentials handled as secrets. Public access through r2.dev or a custom domain bound to a bucket will stop working once the bucket leaves R2. You will need a replacement such as a reverse proxy or CDN in front of a filer or S3 endpoint, with caching and access rules you define. Test every Worker route and public URL in a staging environment, and confirm which caching and access behavior your users depend on before cutover.

Will S3 versioning and Object Lock carry over from R2?

Do not assume they will, and confirm before you plan the cutover. R2's S3 API does not implement the versioning and Object Lock behavior that tools expect, and the S3 Object Lock model that AWS documents (governance and compliance modes, legal holds, versioned buckets only) is not something R2 provides. Whether SeaweedFS covers the specific versioning, lock or retention semantics your backup tools require is a question to verify against the SeaweedFS S3 documentation and in a test cluster. If retention or immutability is a compliance requirement, document the gap in your risk register and decide whether another store, such as Ceph RGW, is the better fit for that data. Ask for a test matrix covering each rule your backup and retention tooling uses.

When is staying on R2 the better answer?

Staying on R2 is often the better choice when your data volume is modest, your traffic is mostly served through Cloudflare's edge, your workloads rely on Workers bindings or public bucket domains, or your team has no capacity to run storage on-call. R2 has no egress fees, so a workload that reads heavily across the internet may cost less there than the bandwidth you would pay to serve it yourself. Self-hosting makes more sense when you need data kept in your own facilities, need to control retention and immutability settings directly, or have operation volumes that make per-request charges large. Compare the two using your own usage data and the recurring cost components, not a generic rule.

How DeployOpen scopes and runs an R2 to SeaweedFS migration

DeployOpen plans, implements, integrates, hardens, backs up and documents self-hosted SeaweedFS inside your own infrastructure, whether that is your cloud accounts, your data centers or an air-gapped network. The work starts with a written scope that names the buckets and object counts to move, the master, volume and filer layout, the metadata store the filer will use, the Kubernetes or bare-metal target, and the S3 endpoints your applications and Workers code will call after cutover. Deliverables and timelines are agreed in that document before work starts, and a quote follows from it. DeployOpen does not publish a price list, so the fastest way to get a comparable number from any provider is to ask each one to price the same written scope.

In the scoping phase, the decisions that most affect the engagement are the ones your team has to make with us. Confirm which R2 features your workloads depend on, since SeaweedFS's S3 layer does not replace R2 public bucket domains or Workers bindings, and those need replacement designs written into scope. Decide how R2 API tokens will map to SeaweedFS S3 identities and who approves them. Set backup targets for the new cluster, because replication inside one cluster is not a backup, and agree on the isolated recovery copy that your recovery controls call for. DeployOpen can test the migration path, including checksum comparison after the rclone copy, before any production cutover is scheduled.

After the migration, the engagement can continue under a retainer for upgrades, monitoring support, security testing and documentation changes as SeaweedFS releases come out, such as the 4.48 release published on September 28, 2026. DeployOpen does not issue audit reports or certifications. It prepares the configuration, access and backup evidence that your compliance team and independent auditors will review, and it tests the cluster and its S3 endpoints against the scope before handover. Ask any provider, including us, to confirm in writing who carries pager duty, what is covered by the retainer and what is excluded.

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.