Best cloud storage services with CLI for HardenedBSD: (Guide)

TopLinux

Introduction

HardenedBSD is a security-focused fork of FreeBSD that integrates extensive hardening features. While it does not natively run Linux binaries, you can still use many cloud-storage CLI tools by leveraging FreeBSD ports or native builds. This article covers the top recommended cloud-storage solutions with CLI support on HardenedBSD, compares their features, and provides usage examples and troubleshooting tips.

Top Recommended Cloud Storage Solutions

The following providers offer strong encryption, reliable uptime, and robust CLI tools compatible with HardenedBSD (via native ports or Linux compatibility). In addition to the user-requested services, we’ve included Dropbox and Backblaze B2 as popular alternatives with mature CLI offerings.

Comparison Table

Provider CLI Tool Link Free Tier End-to-End Encryption FUSE Support
pCloud pcloudcc pcloud.com 10 GB No (client-side add-on available) Yes
MEGA megacmd mega.nz 20 GB Yes Yes
Proton Drive proton-drive-cli proton.me/drive 5 GB Yes Experimental
Filen filen-cli filen.io 10 GB Yes No
Tresorit tresorit-cli tresorit.com 3 GB Yes No
Icedrive icedrive-cli icedrive.net 10 GB Yes Yes
Dropbox dropbox_uploader.sh dropbox.com 2 GB No No (HTTP API)
Backblaze B2 b2 backblaze.com 10 GB Server-side Yes

Which One to Choose?

  • Privacy and Encryption: If you need end-to-end encryption by default, consider MEGA, Proton Drive, Tresorit, Filen, or Icedrive.
  • Generous Free Tier: MEGA (20 GB) and pCloud (10 GB) stand out.
  • Mature CLI Integration: MEGA’s megacmd and Backblaze B2’s official b2 tool are very stable.
  • FUSE Filesystem: pCloud, MEGA, Icedrive, and B2 have FUSE support for mounting.

Installation and Usage with CLI

1. pCloud (pcloudcc)

pCloud offers a native command-line client called pcloudcc. It can be installed via the FreeBSD ports collection.

Installation:

# cd /usr/ports/net/pcloudcc
# make install clean

Authenticate and mount your pCloud drive:

# pcloudcc -u your_email -p your_password 
# mkdir -p ~/pcloud
# pcloudcc --mount ~/pcloud

Typical problems:

  • FUSE module not loaded: kldload fuse.ko.
  • Authentication errors: ensure time sync with ntpd.

2. MEGA (megacmd)

MEGA’s megacmd provides both console and filesystem tools.

Installation (via Linux compatibility):

# pkg install linux-c6-megacmd
# kldload linux

Login and mount:

 mega-login your_email your_password
 mkdir ~/megafolder
 mega-mount ~/megafolder

Troubleshooting:

  • Ensure Linuxulator is enabled in /etc/rc.conf: linux_enable=YES.
  • Permission denied: run mega-mount as your user, not root.

3. Proton Drive (proton-drive-cli)

An unofficial CLI for Proton Drive. You may need to build it from source.

Installation:

# pkg install git python3 py38-pip
# git clone https://github.com/ProtonVPN/proton-drive-cli.git
# cd proton-drive-cli
# pip3 install --user .

Authenticate:

 proton-drive login

Upload a file:

 proton-drive upload /path/to/file /ProtonDriveFolder

Known issues:

  • Experimental FUSE may crash prefer direct upload/download commands.
  • Two-factor auth requires app password.

4. Filen (filen-cli)

Filen offers a simple CLI you can fetch from their GitHub.

# pkg install git go
# git clone https://github.com/filen-io/filen-cli.git
# cd filen-cli
# go build -o /usr/local/bin/filen-cli

Usage:

 filen-cli auth login
 filen-cli upload file.txt /
 filen-cli download file.txt .

Tips:

  • No FUSE—use direct commands.
  • Session tokens expire re-login if you see authentication errors.

5. Tresorit (tresorit-cli)

Tresorit’s CLI is distributed as a Linux binary. Use Linuxulator.

# fetch https://download.tresorit.com/client/tresorit-cli_amd64.tar.gz
# tar xzf tresorit-cli_amd64.tar.gz -C /usr/local/bin
# chmod  x /usr/local/bin/tresorit-cli
# kldload linux

Login and sync:

 tresorit-cli login
 tresorit-cli sync /local/folder TresorName

Common pitfalls:

  • Linuxulator kernel mismatch: ensure your Linux kernel module is up to date.
  • Network timeout: adjust tresorit-cli --timeout.

6. Icedrive (icedrive-cli)

Icedrive provides a downloadable CLI binary for Linux.

# fetch https://icedrive.net/cli/icedrive-cli-linux-amd64.tar.gz
# tar xzf icedrive-cli-linux-amd64.tar.gz -C /usr/local/bin
# chmod  x /usr/local/bin/icedrive
# kldload linux

Login and mount:

 icedrive auth login
 mkdir ~/icedrive
 icedrive fs mount ~/icedrive

Issues:

  • FUSE errors: load fuse.ko and run as non-root.
  • Stale tokens: re-authenticate if commands fail with 401.

7. Dropbox (dropbox_uploader.sh)

A third-party bash script for Dropbox API. No FUSE.

# pkg install bash curl
# fetch https://raw.githubusercontent.com/andreafabrizi/Dropbox-Uploader/master/dropbox_uploader.sh
# chmod  x dropbox_uploader.sh
# mv dropbox_uploader.sh /usr/local/bin/dropbox_uploader.sh

Configure and use:

 dropbox_uploader.sh
 dropbox_uploader.sh upload localfile.txt /remote/path/

Watch out for rate limits and OAuth token expiration.

8. Backblaze B2 (b2 CLI)

The official b2 tool is Python-based.

# pkg install py38-b2sdk

Authorize and upload:

 b2 authorize-account ACCOUNT_ID APPLICATION_KEY
 b2 upload-file my-bucket localfile.txt remote/path.txt

Common errors:

  • “Invalid application key” means mismatched credentials.
  • Ensure clock sync to prevent authentication failures.

Conclusion

Choosing the best cloud storage solution for HardenedBSD depends on your priorities—encryption, free space, CLI maturity, or FUSE support. MEGA and pCloud offer generous free tiers and solid CLI tools Proton Drive and Tresorit excel in privacy Backblaze B2 is ideal for programmatic backups.

Always verify kernel modules (linux.ko, fuse.ko) are loaded, keep your system time accurate, and watch for token or API changes from providers. With these tools in place, HardenedBSD users can seamlessly integrate cloud storage into secure workflows.

Be the first to leave a comment

Leave a Reply

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