Best cloud storage services with CLI for Linux From Scratch: (Comparison)

TopLinux

Introduction

Linux From Scratch (LFS) empowers users to build a custom Linux system from source, offering unparalleled control but demanding manual integration of tools and libraries. When it comes to cloud storage, a reliable Command-Line Interface (CLI) client is essential for automation, scripting, and low-overhead file operations. This article explores the best cloud storage providers with CLI support for LFS, including pCloud, MEGA, Proton Drive, Filen, Tresorit, Icedrive, Backblaze B2, and Wasabi. We provide a detailed comparison, selection guidance, CLI usage instructions, and tips to troubleshoot common issues.

Top Recommendations for Linux From Scratch

  • pCloud: Easy-to-build, FUSE-based mounting, encrypted uploads.
  • MEGA: Generous free plan, JavaScript-based CLI, high-speed transfers.
  • Proton Drive: Privacy-focused, zero-knowledge encryption, actively developing a CLI.
  • Filen: Decentralized storage, end-to-end encryption, Python CLI available.
  • Tresorit: Enterprise-grade security, polished CLI, document collaboration features.
  • Icedrive: Modern UI, mounting via Dokan (Windows) or FUSE (Linux), CLI for automation.
  • Backblaze B2: Cost-effective object storage, AWS S3–compatible, official CLI.
  • Wasabi: S3-compatible, flat pricing, high performance, supports standard S3 CLI tools.

Feature Comparison Table

Provider Official Link CLI Tool Encryption FUSE Support Free Tier Pricing Highlights
pCloud pcloud.com pcloudcc Client-side optional Yes 10 GB From 4.99/mo
MEGA mega.nz megacmd End-to-end No (direct sync) 20 GB From €4.99/mo
Proton Drive proton.me/drive proton-drive-cli (beta) End-to-end Work in progress 1 GB From €4.99/mo
Filen filen.io filen-cli End-to-end Yes 20 GB From 3.00/mo
Tresorit tresorit.com tresorit-cli End-to-end Limited 3 GB From 12.50/mo
Icedrive icedrive.net icedrive-cli Client-side optional Yes 10 GB From 4.99/mo
Backblaze B2 backblaze.com/b2 b2 command-line tool Server-side Via rclone 10 GB 0.005/GB/mo
Wasabi wasabi.com AWS CLI / s3cmd Server-side Via rclone None 5.99/TB/mo

Which One to Choose?

Select based on capacity, budget, security, and ease of integration:

  • If you want a straightforward FUSE mount with optional client-side encryption: choose pCloud or Icedrive.
  • If zero-knowledge privacy is paramount: consider Proton Drive, MEGA, or Filen.
  • For enterprise-grade security and collaboration: Tresorit stands out.
  • Cost-sensitive object storage with S3 compatibility: go with Backblaze B2 or Wasabi, accessible via standard S3 CLI tools.

How to Use Each with CLI

pCloud (pcloudcc)

  1. Build dependencies on LFS: libcurl, openssl, fuse.
  2. Clone and compile:
  3. git clone https://github.com/pcloudcom/console-client.git
    cd console-client
    ./configure
    make
    sudo make install
      
  4. Authenticate and mount:
  5. pcloudcc --login you@example.com
    pcloudcc --mount ~/pcloud
      
  6. Sync/upload:
  7. pcloudcc --upload ~/localfile /pcloud/remotefile
      

MEGA (megacmd)

  1. Install dependencies: nodejs, cmake, openssl.
  2. Compile and install:
  3. git clone https://github.com/meganz/MEGAcmd.git
    cd MEGAcmd
    ./configure
    make
    sudo make install
      
  4. Basic commands:
  5. mega-login you@example.com
    mega-mkdir backup
    mega-put /path/to/file backup/
    mega-sync ~/projects /backup/projects
      

Proton Drive (proton-drive-cli)

  1. Install golang, clone repo:
  2. git clone https://github.com/ProtonMail/proton-drive-cli.git
    cd proton-drive-cli
    go build
    sudo mv proton-drive /usr/local/bin/
      
  3. Login and upload:
  4. proton-drive login
    proton-drive upload local.txt /Drive/MyFolder
      

Filen (filen-cli)

  1. Dependencies: python3, pip.
  2. Install via pip:
  3. pip3 install filen-cli
      
  4. Authenticate:
  5. filen-cli login
      
  6. Upload and download:
  7. filen-cli upload file.txt /MyFilen/Docs
    filen-cli download /MyFilen/Docs/file.txt .
      

Tresorit (tresorit-cli)

  1. Install Rust.
  2. Compile:
  3. git clone https://github.com/tresorit/tresorit-cli.git
    cd tresorit-cli
    cargo build --release
    sudo cp target/release/tresorit-cli /usr/local/bin/tresorit
      
  4. Usage:
  5. tresorit login
    tresorit list
    tresorit sync ~/local Tresors/RemoteFolder
      

Icedrive (icedrive-cli)

  1. Download precompiled binary from official site.
  2. Authenticate and mount:
  3. icedrive login
    icedrive mount ~/icedrive
      
  4. Upload/download:
  5. icedrive copy local.txt :/Documents
    icedrive copy :/Documents/local.txt .
      

Backblaze B2

  1. Install Python and pip, then:
  2. pip3 install b2
      
  3. Authorize:
  4. b2 authorize-account  
      
  5. Create bucket and upload:
  6. b2 create-bucket mybucket allPrivate
    b2 upload-file mybucket local.txt remote.txt
      

Wasabi (AWS CLI)

  1. Install AWS CLI:
  2. pip3 install awscli
      
  3. Configure endpoint:
  4. aws configure
    # set AWS Access Key, Secret Key, region us-east-1, output json
      
  5. Upload using S3 commands:
  6. aws --endpoint-url=https://s3.wasabisys.com s3 mb s3://mybucket
    aws --endpoint-url=https://s3.wasabisys.com s3 cp file.txt s3://mybucket/
      

Typical Problems and Troubleshooting

  • Missing dependencies: Ensure you install development headers (e.g., openssl-dev, libcurl-dev, fuse-devel).
  • FUSE mount failures: Confirm fusermount is in your PATH and you have proper permissions.
  • Authentication errors: Check clock sync (NTP), correct API keys, and two-factor settings.
  • Network timeouts: Adjust CLI timeout flags or use a local mirror for Debian-based dependencies.
  • Rate limits: Respect provider limits—use batch operations or backoff strategies.

Conclusion

Choosing the right cloud storage with CLI support on Linux From Scratch requires balancing security, cost, capacity, and integration effort. pCloud and Icedrive excel at simplicity and FUSE mounts, MEGA and Filen shine with zero-knowledge encryption, and Backblaze B2 or Wasabi offer an S3-compatible approach for object storage. By following the build and usage instructions above, LFS users can seamlessly incorporate cloud storage into automated workflows, backup scripts, and remote collaboration.

Be the first to leave a comment

Leave a Reply

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