Connect Cloudflare R2 to FileMigrata (zero-egress S3 API)
This article explains how to connect Cloudflare R2 to FileMigrata, as a source or a destination. R2 offers S3-compatible storage with no egress fees. Its API is not identical to AWS, so some settings differ.
Limitations
- R2 does not fully support listing object versions (ListObjectVersions). Only current objects are copied. Do not plan an all-versions migration. See R2, Azure Blob, and ETag traps.
- Custom domains and
r2.devaddresses are not S3 endpoints. - Zero egress applies to R2. The source you copy from may still charge egress.
What is migrated
FileMigrata copies files and objects over the Amazon S3 API or a compatible dialect. It does not copy IMAP mail.
- This store can be a source or a destination.
- Jobs copy by default and leave the source in place. Move, which deletes the source after verification, is optional.
- Only the current version of each file is copied. See Current files only.
- Re-runs skip objects whose hash already matches.
- Data streams through FileMigrata and is not stored. See We never store your files.
Prerequisites
- Your Cloudflare account ID, from the Overview page in the Cloudflare dashboard. This is not the zone ID.
- An R2 API token with Object Read & Write on the bucket, plus Admin Read if you need to list buckets.
- The exact bucket name.
Connection details
| Setting | Value |
|---|---|
| Protocol | S3-compatible |
| Authentication | Access key (from the R2 API token) |
| Endpoint | https://<account>.r2.cloudflarestorage.com |
| Region | auto. R2 location hints such as WNAM or EEUR are not AWS region names. |
Steps
- In Cloudflare, open R2 > Manage R2 API Tokens > Create API token.
- Scope the token to one bucket if possible.
- In FileMigrata, select Cloudflare R2 and set the endpoint to
https://<ACCOUNT_ID>.r2.cloudflarestorage.com. - Enter the token's Access Key ID and Secret Access Key. Do not use your dashboard login.
- Click Verify. If it fails on virtual-hosted TLS, turn on path-style addressing.
A successful Verify means FileMigrata could list the store. It does not mean a multi-terabyte migration will finish by a given date. For a dated cutover, contact sales. Start with one mapping. If a job fails partway, resume it rather than starting a duplicate.
Choosing the root
- Bucket names are unique within an account.
- You can use a prefix as the root to migrate one folder.
Troubleshooting
- Unauthorized: The token lacks Admin Read, so listing buckets fails. Create a token that can list buckets, or type the bucket name.
- NoSuchBucket: The hostname has the wrong account ID. Copy it from the Cloudflare Overview page.
FAQ
Can I migrate older file versions out of R2?
No. R2 cannot list them through the S3 API.
Is R2 the same as Amazon S3 in FileMigrata?
They use the same adapter family but differ in endpoint and versioning. Select Cloudflare R2 so the connector expects R2's behaviour.