Migrate from Backblaze B2 to Ceph

Moving Backblaze B2 buckets to Ceph RADOS Gateway is mostly a copy, verification and endpoint cutover job, with Object Lock retention and application keys as the parts that need design.

On this page

Migrate from Backblaze B2 to Ceph: what the move involves

A move from Backblaze B2 to Ceph is, at its core, a copy, a verification pass and an endpoint switch. Teams usually start here because a B2 renewal is approaching, a residency rule requires the data to sit in their own facilities, or they want to own the storage layer their backups depend on. The byte copy is routine. The parts that need substantial rework are object versioning and any Object Lock retention, because those settings describe how data is protected and do not move with the objects. Platform or storage engineers usually run the migration, with the owners of each backup tool and application approving the new endpoint. Effort and risk depend on bucket count, total object count, how many applications hold hardcoded B2 endpoints or keys, and how much retention history must survive the move. Ask your own team to inventory these before agreeing a schedule.

Ceph RADOS Gateway (RGW) exposes an S3-compatible API, and the Ceph S3 API documentation covers versioning, lifecycle rules, multipart uploads, ACLs and bucket policies. That makes it a sound target for tools that already speak S3, but it is not a drop-in target for everything written against B2. Scripts and integrations that call the B2 native API, with its b2_ operations, need translating to S3 calls or moving to an S3 client. Review each application for B2 endpoint URLs, application key formats and bucket names in configuration. Recreate access as RGW users with keys scoped to specific buckets. Before copying any data, confirm on the Ceph release you deploy that every feature your buckets use, including Object Lock and its retention modes, is supported and configured as your compliance team expects.

Use rclone's dedicated Backblaze B2 backend as the source and its S3 backend pointed at the RGW endpoint as the destination, so one tool handles both sides of the copy. Where possible, keep the transfer inside B2's free egress allowance, and confirm the current allowance and overage terms with the account owner before starting, because egress beyond the allowance is billed. Verify each bucket by comparing object counts and total bytes, then spot-check checksums on a sample of objects. Keep B2 read-only until the backup owners have completed a restore test from Ceph. Switch endpoints one application at a time, keep the B2 credentials available for a rollback window, and record who signed off on each cutover.

Which B2 features map cleanly to Ceph RGW

This table sets the B2 features a bucket migration depends on against what Ceph RGW documents as supported. Read the rows marked for rework first, because they change how you plan retention and replication, not just how you point a client at a new endpoint. Confirm each B2 behavior in your own account before you cut over.

B2 featureCeph RGW supportMigration impact
S3-compatible accessRESTful API compatible with the basic S3 data access modelMost S3 clients work after an endpoint change; test each tool, since B2's native API calls will not carry over
Application keysRGW users and access keys with bucket policies and ACLsMap each B2 application key to an RGW user and scoped policy, and confirm the permissions match one to one
VersioningSupported on RGW bucketsCopy all versions if you need history; confirm how your copy tool handles noncurrent versions
Lifecycle rulesSupported on RGW bucketsRewrite B2 lifecycle rules as RGW lifecycle configuration and test expiration on a sample bucket first
Object Lock (governance and compliance modes, legal holds)Object Lock is available on RGW, but retention must be recreated per bucket on CephNeeds rework: retention settings do not copy with objects, so set them again on each destination bucket and confirm the behavior with your compliance owner
Server-side encryptionSupported on RGW; confirm the encryption method your B2 buckets useConfirm the setting in your B2 account and choose the Ceph encryption mode and key handling you can document
Bucket policiesSupported on RGWTranslate B2 bucket-level rules into RGW bucket policies and retest each access path
Multi-site replicationBucket replication works only across zones within one Ceph deploymentZone-bound: it does not replace a second cloud copy, so plan an independent offsite target for B2's role

What data and integrations move, and what you rebuild

Object data and its metadata are the part of this migration that the rclone B2 backend copies directly. Run rclone with the b2 backend as the source and the Ceph RGW endpoint as an s3 remote, and copy each bucket with its object keys and content so the destination holds the same object names. Object metadata such as content type and custom key-value fields should be checked after the first pass, because rclone's handling of B2-specific file info and S3 user metadata differs by flag and version. Confirm the exact flags for your rclone release in the rclone documentation for Amazon S3 and compatible providers before you rely on a test run. Bucket names are not carried over as a setting. Create each bucket on Ceph with the same name where the name is free, since bucket names in the RGW namespace must be unique within the cluster, and record any rename in your runbook so downstream jobs point at the right target.

Application keys and identities are rebuilt, not exported. B2 application keys cannot be read back out of Backblaze as secrets, so plan to create Ceph RGW users with radosgw-admin user create, generate new access and secret keys, and attach bucket policies or user capabilities that match the scope each old B2 key had. Map each old key to one Ceph user and one owner of the credentials, and retire the B2 key only after the new key has been tested against a copied bucket. Backup software, scripts and SDK clients must then point at the new endpoint and receive the new keys. Each backup tool has its own S3 settings for endpoint, path style addressing and region, so confirm how each one handles a custom endpoint and whether it accepts Ceph's responses before cutover. Treat this inventory as a list you own: any tool that still reads from B2 after the cutover is a silent failure waiting to happen.

The migration sequence from inventory to decommission

This sequence moves each B2 bucket to Ceph RGW in a controlled order, so every copy is counted, verified and recorded before applications switch endpoints. It ends with the B2 account closed only after the team has confirmed that the Ceph copy is complete and usable.

  1. Inventory buckets, settings and clients

    Record every B2 bucket with its region, object count, stored bytes, versioning state, default encryption, and whether Object Lock is enabled with a default retention mode and period. List each application, backup job and script that uses a B2 application key, including its endpoint and the API it calls. The owning team signs off on this inventory. The output is a bucket register that names every bucket, its retention settings and every client that must be repointed.

  2. Build and test the Ceph target

    Deploy the Ceph cluster with cephadm on a release that is still receiving backports, and create an RGW service with an S3 endpoint and a user for each application identity. Confirm that versioning and Object Lock can be enabled on a test bucket, because Object Lock depends on versioned buckets. Check that TLS, access keys and bucket policies behave as the inventory requires. The output is a signed-off target design and a test bucket that passes basic put, get, list and retention checks.

  3. Copy a pilot bucket with rclone

    Configure one rclone remote for the B2 backend, using a read-only B2 application key, and a second remote for the Ceph RGW endpoint. Copy one non-critical bucket with the copy command and a log file, then compare object counts and sizes on both sides. Keep the copy within the free daily download allowance by checking the current B2 terms before starting. The output is a pilot report showing matching object counts, byte totals and a sample of checksum comparisons.

  4. Recreate retention and copy the full estate

    For each bucket, apply versioning on Ceph before writing data, then copy objects in batches and recreate Object Lock settings where the inventory requires them. Where B2 holds objects under compliance retention, record their retain-until dates and confirm that Ceph will hold the same protection before any deletion is considered. Keep each batch's rclone log. The output is a per-bucket manifest listing object counts, byte totals, checksum results and the retention state of each object or default rule.

  5. Run a parallel period with dual writes

    Point the backup tools and applications at a write path that sends new objects to both B2 and Ceph, or run the backup job against both endpoints, for a period the owning team sets in advance. Reads continue from B2 while the team compares recent writes on both stores. Any failed write, mismatched object or missing retention flag is logged and fixed before the next step. The output is a discrepancy log that is empty for the agreed period, with a final manifest comparison for objects written during that time.

  6. Cut over endpoints and application keys

    Move each application, backup job and script to the Ceph endpoint, using the S3 identities mapped from the old B2 application keys. Restore a sample of objects from Ceph in each application and confirm that the restored data opens and matches the source. Keep B2 in read-only use for a rollback window the owning team defines. The output is a cutover record listing each client, its new endpoint, its new key and the restore test result.

  7. Verify restores and decommission B2

    Run a full restore test on the Ceph copy for each critical bucket, and confirm that Object Lock and versioning behave as the register requires. Ask the backup and compliance owners to approve the final manifest. Only then delete or close B2 data that is no longer under retention, and check the account for any Object Lock retention that prevents deletion. Document any objects that stay on B2 because retention has not expired. The output is a signed decommission record and a retained archive of the manifests and logs.

What drives cost and duration in this migration

This table lists the main drivers of cost and calendar time when moving B2 buckets to a Ceph RGW cluster, with why each one matters and how to keep it down. Read it before requesting a quote, because each row maps to a question a written scope should answer. Most of the schedule risk sits in data volume, Object Lock retention and the number of systems that must be repointed.

DriverWhy it moves cost or timeHow to keep it down
Total data volume in B2Copy time, transfer load and cluster sizing all scale with the bytes stored. Every terabyte must be read from B2 and written to Ceph at least once.Inventory bucket sizes first, drop expired or duplicate data, and copy in waves by bucket so each wave can be verified before the next starts.
Object countMany small objects add request overhead on both ends and slow listing and verification, even when total bytes are modest.Compare object counts per bucket with B2 before and after each copy. Batch small-object buckets and tune rclone transfer and listing settings in a test run.
Free egress allowance and overageB2 includes a free download allowance, and transfers beyond it are billed. Copying the full estate in one pass can create a charge that the migration budget did not plan for.Check current B2 egress terms on Backblaze's pricing page, calculate expected download volume per wave and schedule copies to stay inside the allowance where possible.
Ceph cluster build and sizingHardware, drive layout, network and staff time for a production RGW cluster are the largest one-time costs. Ceph's hardware guidance calls for a dedicated drive per OSD, shared SSDs for WAL and DB on HDD-based OSDs and bonded links across two switches.Ask the vendor or integrator to size from a benchmark on your own workload, not from vendor sheets. Confirm which Ceph release (Squid or Tentacle) and deployment method (cephadm or Rook) is in scope.
Replication overheadReplicated or erasure-coded pools store more raw capacity than the logical data. Usable capacity is less than raw capacity, so you buy more disks than the B2 terabytes you are moving.Decide the pool type per bucket class in advance, and ask the quote to show raw and usable capacity for the planned data volume.
Applications and backup tools to repointEach backup job, script, SDK client and application config that points to B2 needs a new endpoint, credential and bucket name. Testing and change windows usually take longer than the copy itself.Build an inventory of every system that uses a B2 key or endpoint. Repoint one class of tool at a time, and keep the B2 bucket readable until each one has completed a successful restore.
Object Lock retention still in forceObjects under B2 Object Lock compliance retention cannot be deleted before the retention period ends. Ceph RGW can recreate retention on the copy, but the source data must stay on B2 until its retention expires, which can extend the overlap period.List retention dates per bucket before scheduling. Confirm with Backblaze how retention is reported for each object, and ask the quote to state how B2 storage will be paid for during any overlap.
Verification and evidenceChecksum comparison, object count matching and restore tests add test hours and storage on both sides. Auditors and internal control owners may also ask for a dated record of the copy.Ask for a written verification method that covers object counts, sizes, checksums where available and sample restores, and a retained log for each wave.

What usually goes wrong when moving off B2

Most failed B2 exits are not failed copies. They are retention rules that outlast the plan, versions that arrive flattened, counts that nobody checked, and applications still signing requests to the old endpoint. Each risk below has a check you can run before the account is closed or the cutover is declared finished.

Compliance retention that cannot be shortened

Objects under Object Lock compliance retention cannot be deleted or have their retain-until date shortened by anyone, including the account owner, until the period ends. That means B2 data may stay billable until expiry even after the copy to Ceph succeeds. Before you plan the cutover, list every bucket with a retention mode and its expiry date, and decide whether the old bucket can stay read-only until then. Recreate the retention on Ceph only for objects you intend to keep locked there.

Object Lock model

Versions copied as current objects

A plain sync copies the latest version of each object and can silently drop older versions, delete markers and version history that backup or audit workflows depend on. Ceph RGW supports versioning, so the bucket must be versioned on the target before the copy starts, and the copy method must be chosen with version handling in mind. Run a sample of objects with several versions and compare version counts on both sides before trusting the job.

Object counts that do not match

A copy that fails partway through, or a job that retries some files and skips others, can leave the destination looking complete while missing objects. Compare object counts and total bytes per bucket, and keep the rclone log and error count from every run. Rerun the copy until the error count is zero, then check a random sample by checksum. Do not switch endpoints on a count that was never recorded.

Application keys still pointing at B2

Backup agents, build pipelines and applications often hold B2 application keys and hard-coded endpoint URLs in configuration files, environment variables or secret stores. After cutover, some of these keep writing to B2 and quietly create a second, unmonitored copy of the data. Inventory every consumer, map each B2 key to a Ceph RGW user with a scoped access key, change the endpoint, and then revoke the old key so any missed client fails loudly.

Undersized Ceph cluster without benchmarking

Ceph's hardware guidance asks for a dedicated drive per OSD, separate WAL and DB devices on shared SSDs for HDD-based OSDs, and memory sized for peak use. A cluster sized only from the B2 capacity figure tends to run short on throughput, recovery headroom or RAM during a large restore. Before buying hardware, benchmark with a representative object size and concurrency, and plan spare capacity for rebuilds. Ask the hardware vendor for measured results, not only raw disk totals.

Ceph hardware guidance

How the move differs by starting point

Backup-only buckets are usually the simplest move because the data is a copy of something else and nothing reads it in real time. The main risk is not losing a restore point during the switch, so the copy is planned around backup job schedules rather than live traffic. Confirm the backup tool's behavior before you start, because some tools write objects in ways that interact badly with a mid-copy cutover.

  • Copy scope: Copy the full retained set, including older restore points, not only the latest snapshot chain.
  • Retention handling: Recreate lifecycle and retention rules on Ceph, and note which ones your backup software enforces itself.
  • Cutover order: Pause new backup jobs for a short window, run a final incremental sync, then point the backup target at the Ceph endpoint.
  • Verification: Compare object counts per bucket and run a test restore from a Ceph-hosted restore point.
  • Keep B2 readable: Leave the B2 bucket intact until several backup cycles have completed successfully against Ceph.

Before cutover, confirm with your backup vendor which S3 features its jobs require, and whether it validates the target endpoint during setup.

Questions teams ask before moving from B2 to Ceph

How much does a move from Backblaze B2 to Ceph cost?

The cost depends on the capacity, the number of objects, the retention rules on the data and the hardware you already own, so no single figure applies. Ceph costs fall into one-time items (hardware, network, the initial build and the copy) and recurring items (power, space, support contracts, and staff time for upgrades, monitoring and capacity growth). Ceph itself is LGPL-licensed with no paid edition from the project, so licensing is not the cost driver. Your B2 bill is published per-TB pricing plus egress and transaction charges, so the copy itself is the main one-time cost to model. Ask any implementation partner for a quote built from a written scope that lists capacity, object count, retention, sites and the number of applications to repoint. Confirm current B2 rates on Backblaze's own pricing page before you compare.

How long does copying B2 buckets to Ceph take?

The copy time is driven by data volume, object count, available bandwidth on both sides and how many transfers run in parallel. Large numbers of small objects take longer than the same volume in fewer large files because request overhead dominates. Retention matters too: buckets under Object Lock need the retention rules recreated on the Ceph side before you write, and any locked objects that cannot be deleted from B2 must be handled as a separate step. Keep the B2 free egress allowance in mind and copy in windows that keep you inside it. Run a pilot on one bucket to measure throughput, then size the full schedule from that measurement. Confirm the Ceph cluster's ingest capacity with your hardware team before you set a cutover date.

What does the internal team need to provide for a Ceph move?

The internal team needs to own the decisions that depend on your environment, even if an outside partner runs the copy. The main inputs are:

  • A current inventory of B2 buckets, application keys, lifecycle rules, Object Lock settings and the tools that read or write each bucket.
  • Hardware, rack, network and power capacity for a Ceph cluster, plus someone who can operate it after handover.
  • Identity decisions for mapping B2 application keys to Ceph RGW users and access policies.
  • Change windows and sign-off for repointing backup tools and applications to the new endpoint.

Ceph's hardware recommendations call for a dedicated drive per OSD, enterprise-class SSDs for metadata and bonded network links across two switches, so storage and network staff must be involved early.

Can our own team migrate from B2 to Ceph without outside help?

A team with Linux, storage and backup experience can perform the copy with rclone, which has a dedicated Backblaze B2 backend and documents Ceph among its S3-compatible providers. The harder part is operating Ceph after the move. Ceph is deployed with cephadm, which manages a cluster as containers, or with Rook on Kubernetes, and both require skills in monitors, OSDs, placement and upgrades. Ceph's documented release cadence means you will need a routine for upgrades, since the actively maintained releases receive periodic backports and security fixes. Teams without that capacity often bring in a partner for scoped planning, implementation and handover. DeployOpen implements and documents self-hosted platforms in your own infrastructure under fixed-scope agreements, with ongoing support available as a retainer.

How do we verify that every object arrived intact in Ceph?

Verification should compare more than object counts. Start by comparing object counts and total bytes per bucket between B2 and RGW, which catches missing or partial transfers. Then sample checksums on a representative set of objects, including large multipart uploads and the smallest objects, since those fail in different ways. Check that object versions, if you used versioning, arrived in the expected order, and that delete markers and lifecycle rules were recreated. Confirm that Object Lock retention dates and modes match the source. Finally, run a test restore from the Ceph copy into a separate environment before you switch backup jobs to it. Record the results as evidence for your change record and any compliance review.

What happens to B2 Object Lock data still under retention?

Objects under B2 Object Lock retention cannot be deleted before their retention period ends, so you cannot simply copy the data and close the account. Plan to keep the B2 bucket readable until the last locked object expires, or to run both stores in parallel until then. On Ceph, RADOS Gateway supports S3 Object Lock in versioned buckets with governance and compliance retention modes and legal holds, so you can recreate equivalent retention on new copies. Governance mode can be bypassed by users with the right permission, while compliance mode cannot be shortened, so choose modes deliberately and restrict who holds bypass rights. Amazon's S3 Object Lock documentation describes the same model and is a useful reference for the semantics. Confirm the exact B2 retention settings for each bucket before you plan the cutover.

Which backup tools and applications need changes after the switch?

Every client that talks to B2 needs a new endpoint, credentials and sometimes a different addressing style. Typical examples include backup software, media servers, application SDKs and scripts that call the B2 native API. Each needs three checks:

  • The endpoint URL and region setting point to the RGW service, with path or virtual-host addressing configured as the client expects.
  • Credentials map to RGW users and keys with the correct bucket permissions.
  • Features the client relies on, such as versioning, lifecycle, multipart uploads and Object Lock, are supported on the RGW side.

Run a restore test with each client after repointing. Keep the B2 endpoint available as a fallback until the test results are signed off.

Is Ceph the right replacement for B2, or should we consider another option?

Ceph fits when you need an S3-compatible store with versioning, lifecycle, multipart uploads, bucket policies and Object Lock on your own hardware, and when you can staff its operations. Ceph documents bucket replication only across zones, so plan site layout before you commit. Garage and SeaweedFS are alternatives with different trade-offs. Garage does not implement object versioning, object locking or server-side encryption, so it is unsuitable where B2 Object Lock is part of the backup design. SeaweedFS is Apache-2.0 licensed and suits many small files, with a paid Enterprise Edition. Choose based on the features your applications and retention rules depend on, not on the copy tool. Confirm feature support against the current documentation for each platform before you decide.

How data and clients move from B2 to Ceph

The flow starts with rclone reading each Backblaze B2 bucket through its B2 backend and writing objects into a Ceph RGW bucket. Before any client moves, the copy is checked by comparing object counts between the two sides. Only after that check do applications and backup tools switch to the Ceph endpoint, while the B2 bucket is kept in place until its Object Lock retention has expired.

Data copied by rclone, verified by object counts, then clients switch endpoints.

How DeployOpen scopes and runs a B2 to Ceph migration

DeployOpen plans, implements and documents self-hosted open-source platforms inside your own infrastructure, so a B2 to Ceph move runs in your cloud account, data center or air-gapped network. The work follows a written scope that covers the bucket inventory, the rclone copy, Object Lock retention, endpoint switches and verification before the B2 account is closed.

How we scope

  • Inventory every B2 bucket, its object count, versioning state and any Object Lock retention before any copy starts.
  • Record which backup tools, applications and application keys point at each bucket, so endpoint switches are planned, not discovered.
  • Agree in writing the target Ceph release, RGW endpoint, identity mapping and the verification method for each bucket.

How we build

  • Build the Ceph RADOS Gateway environment with the cephadm deployment path, including monitors, managers, OSDs and RGW services.
  • Run rclone with its Backblaze B2 backend to copy buckets, keeping the copy within the free egress allowance and logging every transfer.
  • Recreate Object Lock retention on Ceph in governance or compliance mode, and test that administrators cannot shorten it.

How we hand over

  • Deliver a verification report comparing object counts, sizes and checksums between each B2 bucket and its Ceph copy.
  • Document the endpoint changes, RGW users, bucket policies, retention settings and the runbook for restores from Ceph.
  • Walk your operations and security teams through the configuration, then confirm the B2 account closure steps with you in writing.

How we support

  • Offer ongoing support, upgrades and continuous testing as a retainer after handover, covering Ceph release updates and backup restore tests.
  • Retest the backup and restore path after upgrades, and after any change to RGW users, policies or retention settings.
  • Ask your procurement team to confirm the retainer terms and any hardware or staff costs in the quote before work begins.

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.