TrueNAS Community Edition setup guide for MEGA S4

TrueNAS Community Edition (formerly known as SCALE) is an open-source, Linux-based storage OS designed for flexibility and scalability. It supports file, block, and object storage, making it ideal for home labs, small businesses, and advanced users.

It includes a built-in S3-compatible service powered by MinIO, allowing you to use TrueNAS as a self-hosted object storage solution. This guide will provide the steps for setting up TrueNAS Community Edition for use with MEGA S4.

Einen neuen Bucket erstellen

  1. Klicken Sie in der linken Leiste auf Objektspeicher.
  2. Klicken Sie auf Bucket erstellen.
  3. Geben Sie dem Bucket einen Namen.
  4. Klicken Sie auf Erstellen.

Zugriffsschlüssel einrichten

  1. Klicken Sie in der linken Leiste auf Objektspeicher.
  2. Klicken Sie in der linken Leiste auf Schlüssel.
  3. Klicken Sie auf Schlüssel erstellen.
  4. Geben Sie dem Schlüssel einen Namen.
  5. Kopieren Sie den Zugriffsschlüssel und den Geheimschlüssel.
  1. Install Community Edition after downloading it from the TrueNAS website.
  2. Click Data Protection on the left-hand panel.
  3. Click Add to the far right of Cloud Sync Tasks.
  4. Click the Credentials drop-down and select Add New.
    • Click the Provider drop-down and select Amazon S3.
    • Enter a name (e.g. “MEGA S4”).
    • For Access Key ID, enter the Access key you copied earlier.
    • For Secret Access Key, enter the Secret key you copied earlier.
    • In the Endpoint URL, enter one of the MEGA S4 endpoints.
    • Enter a value for Region or tick Disable Endpoint Region.
  5. Klicken Sie auf Save (Speichern).
  6. Choose the settings you want to use:
    • Direction: PUSH (to send files to the cloud) or PULL (to download from the cloud).
    • Transfer Mode: COPY (does not delete source files), MOVE (deletes source files), or SYNC (uploads all objects every time the command is executed).
    • Directory/Files: Select the local folder you want to sync.
    • Folder: Specify a subfolder.
    • Bucket: Enter the bucket name you created earlier.
    • Schedule: Choose Run Once or set a cron-style schedule.
  7. Klicken Sie auf Save (Speichern).
  • Because it uses Rclone for its cloud sync tasks, it has the same S3 compatibility issues. Check the Rclone setup guide for more details.
  • You can only copy, move or synchronise objects uploaded using the MEGA S4 API. This means you can’t copy, move or synchronise objects uploaded via the MEGA website or mobile or desktop apps.