Articles on: Object storage

TrueNAS: connect your TrueNAS NAS to your Leviia object storage (S3 compatible)

To synchronize your TrueNAS NAS with Leviia object storage, go to the TrueNAS administration panel.

Click on "System > Cloud Credentials".


In the "Cloud Credentials" tab, click on "ADD".


Then fill in the form with the following information:

Name : Leviia (or other)
Provider : S3
Access Key ID : Access Key
Secret Access Key : Secret key
Endpoint URL : s3.leviia.com
Disable Enpoint Region : yes

Then click on "SUBMIT".

Your Leviia connection should now appear under "Account Name". To set up synchronization, click on "Task > Cloud Sync Task".


In the "Cloud Sync Task" tab, click on "ADD".


Here, you need to fill in the information according to your needs:
Description : Synchro-Leviia (or other)
Credential : What you entered before (here Leviia (S3))
Direction : PUSH (to send)
Transfer Mode : SYNC (for synchronization)

For more information on each field, click on "?" (to the right of the field).

Choose the local folder you wish to synchronize and select a bucket on Leviia object storage (here truenas). You can then choose the synchronization period (here every evening at midnight).


Here you have access to advanced settings such as encryption or bandwidth limits. Configure this to suit your needs (or leave it empty to have the default configuration). Then click on "SUBMIT".


Finally, your task should appear in the "Cloud Sync Task" tab. You can view summary information by clicking on the arrow on the right. Click on "RUN NOW" to start synchronization immediately.


Once the synchronization is successful, you should see the message "SUCCESS" and your files should be synchronized between your NAS and Leviia :)
On older versions of TrueNAS, you may get an error because the rclone version is too old. To resolve this, replace the rclone version with a modern one, which you can find here: https://rclone.org/downloads/ (see example in section 10).

To install a modern version of rclone on your TrueNAS, open a shell and type :


## Change to the most recent version number. 
wget https://downloads.rclone.org/v1.63.1/rclone-v1.63.1-freebsd-amd64.zip
unzip rclone-v1.63.1-freebsd-amd64.zip
## Rename the old rclone
mv /usr/local/bin/rclone /usr/local/bin/rclone.old
## Put the new one in its place
cp -a rclone-v1.63.1-freebsd-amd64/rclone /usr/local/bin/rclone


If you're using TrueNAS scale (Debian-based), the binary is at https://downloads.rclone.org/v1.63.1/rclone-v1.63.1-linux-amd64.zip and the rclone file to be replaced is /usr/bin/rclone. The instructions remain the same as before.

You can retry the synchronization.

Updated on: 05/01/2024

Was this article helpful?

Share your feedback

Cancel

Thank you!