Best cloud storage services with CLI for YunoHost: (Comparison)

TopLinux

Introduction

If you’re running YunoHost on a Linux server and need reliable, secure cloud storage with a command-line interface (CLI), you’ve come to the right place. In this article we’ll cover the top cloud providers that offer Linux CLI tools—such as pCloud, MEGA, Proton Drive, Filen, Tresorit, Icedrive—and a few additional options. You’ll find a side-by-side comparison table, guidance on choosing the right service for your YunoHost setup, installation and usage examples with CLI code snippets, plus typical pitfalls and how to resolve them.

Top Recommended Cloud Storage for YunoHost

  • pCloud – Generous free tier, optional client-side encryption, native Linux client.
  • MEGA – 20 GB free, end-to-end encryption, mature “megacmd” tool.
  • Proton Drive – Privacy-focused, open-source CLI, end-to-end encryption.
  • Filen – EU-based zero-knowledge storage, CLI via Rclone.
  • Tresorit – Enterprise-grade security, zero-knowledge, CLI via Rclone or unofficial scripts.
  • Icedrive – 10 GB free, Disk-on-Drive encryption, native Linux client.
  • Dropbox – 2 GB free, official “dropbox” CLI.
  • Google Drive – 15 GB free, community CLI tools (e.g. “gdrive”, Rclone).
  • AWS S3 – Pay-as-you-go, industrial scale, AWS CLI.

Comparison Table

Provider Free Tier Encryption Official CLI Link
pCloud 10 GB Optional E2EE pcloudcc Visit
MEGA 20 GB End-to-end megacmd Visit
Proton Drive 1 GB End-to-end proton-drive-cli Visit
Filen 3 GB End-to-end Rclone Visit
Tresorit None (trial) End-to-end Rclone / unofficial Visit
Icedrive 10 GB Optional E2EE icedrive-cli Visit
Dropbox 2 GB Server-side dropbox Visit
Google Drive 15 GB Server-side gdrive / Rclone Visit
AWS S3 Free tier 5 GB Server-side AWS CLI Visit

Which One to Choose?

  • For maximum free storage: MEGA (20 GB) or Icedrive (10 GB).
  • For privacy encryption: Proton Drive, Tresorit or pCloud E2EE.
  • For enterprise or pay-as-you-go: AWS S3 with fine-grained policies.
  • For self-hosting integration: Filen and Tresorit via Rclone/WebDAV.
  • For seamless desktop sync: Dropbox official CLI or pCloud native client.

How to Use Each with CLI

pCloud

Install the pCloud daemon and mount your drive:

# Debian/Ubuntu
sudo apt-get update
sudo apt-get install pcloudcc fuse

# Configure and run
pcloudcc --username your@email.com --password yourpassword --mountpoint ~/pcloud

Typical problems: If FUSE fails, ensure you’re in the fuse group: sudo usermod -aG fuse USER.

MEGA (megacmd)

Install and login:

# Debian/Ubuntu
sudo apt-get install megacmd

# Login
mega-login your@email.com yourpassword

# Sync a local folder
mega-sync /home/user/documents /Root/Documents

Typical problems: Two-factor auth users must generate an app-specific password on mega.nz.

Proton Drive CLI

Use the community CLI tool:

# Install via pip
sudo apt-get install python3-pip
pip3 install proton-drive-cli

# Authenticate
proton-drive login

# Upload a file
proton-drive upload ~/backup.tar.gz /Backups

Typical problems: Ensure you’ve enabled API access in your Proton account settings.

Filen via Rclone

Configure Rclone with Filen (WebDAV):

# Install Rclone
curl https://rclone.org/install.sh  sudo bash

# rclone config
rclone config
# Choose n for new remote, name: filen
# Storage: WebDAV, vendor: other
# URL: https://api.filen.io/webdav
# user/pass: your credentials

# Mount or sync
rclone mount filen: ~/filen

Typical problems: WebDAV timeouts can occur add --vfs-cache-mode full.

Tresorit via Rclone

Similar to Filen:

rclone config
# name: tresorit
# storage: WebDAV
# URL: https://api.tresorit.com/webdav/
# credentials: your email/password

rclone mount tresorit: ~/tresorit

Typical problems: Folder listing may be slow increase --dir-cache-time.

Icedrive

Install the official client:

# Download AppImage or install via snap
sudo snap install icedrive-cli

# Authenticate
icedrive login

# List and sync
icedrive ls /
icedrive sync ~/projects /Projects

Typical problems: Snap confinement can block FUSE install the AppImage for full access.

Dropbox

Install the official CLI:

sudo apt-get install python3-gpg dropbox python3-distutils
dropbox start -i

# Link account via URL
dropbox filestatus ~/Dropbox

Typical problems: The daemon occasionally stalls use dropbox stop dropbox start.

Google Drive

Use the community “gdrive” tool or Rclone:

# Using gdrive
wget -O ~/gdrive https://github.com/prasmussen/gdrive/releases/latest/download/gdrive-linux-x64
chmod  x ~/gdrive
~/gdrive about

# Authorize via browser
~/gdrive list

Typical problems: You may need to re-authorize periodically Rclone is more stable long-term.

AWS S3

Install AWS CLI and configure:

curl https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip -o awscliv2.zip
unzip awscliv2.zip
sudo ./aws/install

aws configure
# Enter Access Key, Secret, region, output format

# Copy a file
aws s3 cp ~/file.txt s3://your-bucket/

Typical problems: Permissions errors often stem from misconfigured IAM policies verify bucket policy and ACLs.

Conclusion

Choosing the right cloud storage for your YunoHost server depends on your priorities—be it free storage, security, or enterprise scalability. The providers covered here all offer robust CLI tools for seamless automation and integration. Test a few to see which best fits your workflow, and leverage tools like Rclone to unify multiple backends under one interface. Happy syncing!

Be the first to leave a comment

Leave a Reply

Your email address will not be published. Required fields are marked *