Docs

TrueNAS Cloud Sync

TrueNAS transfers datasets to S3 storage with Cloud Sync tasks. You choose Amazon S3 as the provider and enter the chili endpoint in the advanced settings. This guide shows the values for TrueNAS 24.10 and later. The full guide is in the TrueNAS documentation.

Prerequisites

  • TrueNAS (SCALE or Community Edition) version 24.10 or later
  • a bucket, created in the chili Console, for example truenas-backup. Choose the template rclone or scripts (Object Lock off, versioning on, access Read, write and delete).
  • chili access keys (access key and secret key) of the IAM user for TrueNAS

1. Add a cloud credential

Open Credentials > Backup Credentials and click Add on the Cloud Credentials card. Choose the provider Amazon S3 and open the advanced settings. The field descriptions are in the TrueNAS cloud credentials reference.

Field

Value

Name

for example chili

Provider

Amazon S3

Access Key ID

your chili access key

Secret Access Key

your chili secret key

Endpoint URL

https://s3-ch-east.chilistorage.com

Region

ch-east

Disable Endpoint Region

off

Use Signature Version 2

off (chili uses Signature Version 4)

Maximum Upload Parts

leave empty

There is no separate path style field. Click Verify Credential and save. If you created the bucket with georedundancy, enter https://s3-ch.chilistorage.com.

2. Add a Cloud Sync task

Open Data Protection, click Add on the Cloud Sync Tasks card and select the credential you just created.

Field

Value

Direction

PUSH

Transfer Mode

COPY or SYNC

Directory/Files

the dataset to back up

Bucket

truenas-backup

Folder

folder in the bucket, for example the system name

Schedule

for example daily

Use Snapshot

enable, so a consistent state is transferred

COPY transfers new and changed files and never deletes in the bucket. SYNC mirrors the dataset and deletes in the bucket whatever is missing locally. Check a SYNC task with Dry Run before the first run.

Under the advanced options you can enable Remote Encryption. TrueNAS then encrypts the data before upload. Keep the password and salt separate from the NAS; without them, no restore is possible.

3. TrueCloud Backup

TrueNAS also offers TrueCloud Backup tasks, which are based on restic and create versioned snapshots. The TrueNAS documentation describes these tasks only with the provider Storj. For chili, use Cloud Sync tasks. If you want versioned, deduplicated backups with restic, you can also use restic directly, see restic and Kopia.

Bucket without Object Lock

Cloud Sync does not set Object Lock retention. Create the bucket without Object Lock and with versioning, as the rclone or scripts template does. With versioning, a file is kept as an older version even when a SYNC task deletes or overwrites it in the bucket. So that older versions do not use storage indefinitely, set up a lifecycle rule for noncurrent versions. Versioning is billed per TB and month, see pricing.

Verify

Run the task once manually and check the log to confirm that all files were transferred. For a restore test, create a second Cloud Sync task with Direction PULL into an empty dataset, or use the task's restore function. Restores cost nothing on chili, because there are no egress fees.

Common pitfalls

  • Bucket not listed: check the endpoint URL, region ch-east, access key and secret key, and that the bucket exists in the chili Console.
  • Region detection errors: if Region is empty, TrueNAS tries to detect the region automatically. Enter ch-east explicitly.
  • Signature Does Not Match: leave Use Signature Version 2 off. If a proxy between TrueNAS and chili modifies headers, disable Sign Accept-Encoding if your version offers this field.
  • Files missing from the bucket after a run: the task runs in SYNC mode and mirrored deleted files. Recover older versions through versioning, for example with Cyberduck.