Docs

Migration cookbook: from AWS, Azure, Backblaze, Wasabi and Infomaniak

A reference for moving existing object storage to chili with rclone. For each source provider you get a short rclone recipe. The pattern is always the same: configure a source remote and the chili remote, copy with rclone copy --checksum, then verify with rclone check. Afterwards the data is in chili in Zurich, and also in Geneva for a bucket with georedundancy. Reading it back later incurs no egress fees.

Prerequisites

  • rclone 1.60 or newer (rclone version)
  • chili access keys (access key and secret key) and a target bucket, created in the chili Console
  • read access on the source (list and download) and write access on the chili bucket
  • the source endpoint or region details from the source provider's console
  • enough bandwidth; for large data sets, schedule the migration outside peak hours

1. Configure the chili remote

This is the migration target for every source below. In ~/.config/rclone/rclone.conf:

[chili]
type = s3
provider = Other
access_key_id = AKIA...
secret_access_key = ...
endpoint = https://s3-ch-east.chilistorage.com

chili uses the generic S3 provider (provider = Other). The region line can be left out; if a tool requires one, use ch-east. Test the connection:

rclone lsd chili:

2. Overview: source backends at a glance

Source

rclone backend

What to watch for

AWS S3

s3 (provider = AWS)

region required; endpoint stays blank

Azure Blob

azureblob

no rclone about; archive-tier blobs need special handling

Backblaze B2

b2 (native) or s3

use the applicationKeyId, not the master account ID

Wasabi

s3 (provider = Wasabi)

set the regional endpoint hostname

Infomaniak Swiss Backup

swift

cluster number in the auth URL varies per account

Infomaniak Public Cloud

s3 (provider = Other)

EC2-style credentials, not Swiss Backup ones

Each row is detailed below. After configuring a source remote, the copy and verify steps in section 9 and under "Verify" are identical for all of them.

3. AWS S3

Per the rclone Amazon S3 documentation, AWS uses provider = AWS, requires a region, and leaves endpoint blank so the standard per-region endpoint is used.

[aws]
type = s3
provider = AWS
access_key_id = <KEY>
secret_access_key = <SECRET>
region = eu-central-1
endpoint =
rclone copy aws:<bucket> chili:<bucket> --transfers 8 --checkers 16 --checksum --progress

Set region to the bucket's actual region.

4. Azure Blob

The rclone Azure Blob documentation uses type = azureblob. Authenticate with account plus shared key, or alternatively with a SAS URL (sas_url) or a connection string (connection_string):

[azure]
type = azureblob
account = <STORAGE_ACCOUNT>
key = <SHARED_KEY>
# alternative: sas_url = <SAS-URL>
# alternative: connection_string = <...>
rclone copy azure:<container> chili:<bucket> --transfers 8 --checksum --progress

Two Azure specifics from the same documentation: azureblob does not support rclone about, so it cannot report free space; plan capacity from the source side instead. Archive-tier blobs must be deleted before they can be overwritten unless you pass --azureblob-archive-tier-delete, and empty directories need --azureblob-directory-markers.

5. Backblaze B2

B2 offers a native API and an S3-compatible API, and rclone supports both (Backblaze documentation).

Variant A, native B2 backend, documented in the rclone Backblaze B2 guide:

[b2]
type = b2
account = <applicationKeyId>
key = <applicationKey>

Use the applicationKeyId as account, not the master account ID; otherwise B2 returns 401 errors.

Variant B, S3-compatible API. The S3-compatible API needs a dedicated application key; the master application key is not S3-compatible (Backblaze documentation).

[b2s3]
type = s3
provider = Other
access_key_id = <keyID>
secret_access_key = <appKey>
endpoint = <regional S3 endpoint from the B2 console>

Read the exact regional S3 endpoint from the bucket detail ("Endpoint") in the B2 console rather than hard-coding it.

rclone copy b2:<bucket> chili:<bucket> --transfers 8 --checksum --progress

6. Wasabi

Per the rclone Amazon S3 documentation, Wasabi uses provider = Wasabi with access key and secret as for AWS, and the regional endpoint set explicitly as a hostname. region can be left blank for this S3 clone.

[wasabi]
type = s3
provider = Wasabi
access_key_id = <KEY>
secret_access_key = <SECRET>
endpoint = s3.eu-central-1.wasabisys.com
region =

Use the endpoint hostname that matches your bucket's region. s3.wasabisys.com is the us-east-1 endpoint; EU buckets need an EU endpoint such as s3.eu-central-1.wasabisys.com.

rclone copy wasabi:<bucket> chili:<bucket> --transfers 8 --checksum --progress

7. Infomaniak Swiss Backup (Swift)

Infomaniak has two separate products with different protocols. Check first which one is your source. Swiss Backup is reached over Swift. Per the Infomaniak rclone guide for Swiss Backup, use type = swift:

[infomaniak]
type = swift
user = SBI-XXXXXX
key = <password>
auth = https://swiss-backup02.infomaniak.com/identity/v3
domain = default
tenant = sb_project_SBI-XXXXXX
tenant_domain = default
region = RegionOne

The cluster number in the auth URL (swiss-backupNN) varies per account; read it from the Infomaniak Manager under "Cloud storage information". Devices created before October 2020 use auth = https://swiss-backup.infomaniak.com/identity/v3.

rclone copy infomaniak:<container> chili:<bucket> --transfers 8 --checksum --progress

Swiss Backup credentials work over Swift, not over an S3 API. For S3 access, Infomaniak Public Cloud uses separate credentials (next section).

8. Infomaniak Public Cloud (S3-compatible)

If your source is Infomaniak Public Cloud Object Storage rather than Swiss Backup, it is S3-compatible. Per the Infomaniak Public Cloud S3 documentation, the endpoint is https://s3.pub1.infomaniak.cloud (or pub2), region is the default us-east-1, a pure compatibility parameter (the data stays in Swiss data centres), and you need EC2-style credentials created with openstack ec2 credentials create, not the Swiss Backup credentials.

[infomaniak-s3]
type = s3
provider = Other
access_key_id = <EC2_KEY>
secret_access_key = <EC2_SECRET>
endpoint = https://s3.pub1.infomaniak.cloud
region = us-east-1
rclone copy infomaniak-s3:<bucket> chili:<bucket> --transfers 8 --checksum --progress

9. Copy the data

The copy step is the same for every source. copy transfers only new and changed files and never deletes at the target:

rclone copy <source>:<bucket> chili:<bucket> --transfers 8 --checksum --progress

--checksum compares by checksum rather than timestamp and size, which is the more reliable choice for a migration. Do a trial run with --dry-run first. Use rclone sync only if you deliberately want the target mirrored to the source, since sync deletes at the target what is missing at the source.

Verify

rclone check compares source and target by checksum:

rclone check <source>:<bucket> chili:<bucket> --checksum

Expected output on a clean migration:

NOTICE: S3 bucket <bucket>: 0 differences found
NOTICE: S3 bucket <bucket>: <N> matching files

You can also read a sample back and compare it. This costs nothing, because chili charges no egress fees:

rclone copy chili:<bucket>/<object> /tmp/restore-test --progress
rclone check chili:<bucket> <source>:<bucket> --checksum --one-way

Common pitfalls

  • Endpoint spelling: enter the chili endpoint as a full URL including https://: https://s3-ch-east.chilistorage.com. For the S3-compatible Backblaze or Infomaniak endpoint, check the exact spelling (full URL or bare hostname) in the provider's portal rather than assuming it.
  • Backblaze credentials: in the native b2 backend, the applicationKeyId goes into the account field, not the master account ID; otherwise you get a 401 error. The S3-compatible API needs a dedicated application key.
  • Infomaniak cluster: the swiss-backupNN number in the auth URL does not always match the example. Take the value from "Cloud storage information".
  • Infomaniak S3 vs. Swift: the S3 API of Infomaniak Public Cloud needs EC2-style credentials; Swiss Backup credentials do not work there.
  • Region for S3 clones: with provider = Other, region can stay blank. For AWS, region is mandatory.
  • Path style: if requests against an S3-compatible source fail with addressing errors, check whether the provider expects path-style addressing.
  • TLS: keep all endpoints on HTTPS; do not disable certificate verification.
  • sync instead of copy: rclone copy is additive. rclone sync mirrors and deletes at the target what is missing at the source; always run --dry-run before a sync.