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

TopLinux

Introduction

In modern Linux environments, reliable and scriptable cloud storage solutions are essential for backups, file sharing, and automation. For CentOS administrators and power users, a command-line interface (CLI) can greatly simplify workflows. This article examines some of the best cloud storage services offering CLI support on CentOS—covering pCloud, MEGA, Proton Drive, Filen, Tresorit, Icedrive—and adds Backblaze B2 and AWS S3 to our comparison. You’ll find top recommendations, a detailed feature table with links, guidance on choosing the right provider, step-by-step CLI usage examples, and common troubleshooting tips.

Top Recommended CLI Cloud Storage for CentOS

Comparison Table

Service Free Tier Encryption CLI Tool Cross-Platform Link
pCloud 10 GB Client-side (optional) pcloudcc Yes pcloud.com
MEGA 20 GB End-to-end megacmd Yes mega.nz
Proton Drive 1 GB End-to-end proton-drive-cli Yes proton.me/drive
Filen 10 GB End-to-end fcli Yes filen.io
Tresorit 3 GB End-to-end tresorit-cli Yes tresorit.com
Icedrive 10 GB Client-side icedrive-cli Yes icedrive.net
Backblaze B2 10 GB Server-side b2 (official) Yes backblaze.com/b2
AWS S3 5 GB (free tier) Server-side awscli Yes aws.amazon.com/s3

Which One to Choose?

  • If you need end-to-end encryption, MEGA, Proton Drive, Filen or Tresorit are top picks.
  • For large archives or backups with simple pricing, Backblaze B2 and AWS S3 shine.
  • If you want a user-friendly free plan with desktop and CLI support, pCloud and Icedrive are ideal.
  • Evaluate CLI maturity: MEGA’s megacmd and pCloud’s pcloudcc have robust features.

How to Use Each with CLI on CentOS

pCloud (pcloudcc)

Installation and basic usage:

# Enable EPEL if needed
sudo yum install epel-release -y

# Install pcloudcc client (requires building from source or using rpm)
sudo yum install pcloudcc

# Authenticate and mount
pcloudcc -u you@example.com -p YourPassword
pcloudcc -m /mnt/pcloud

# Upload a file
cp /etc/hosts /mnt/pcloud

MEGA (MEGAcmd)

Install and configure MEGAcmd:

# Add repo
sudo rpm --import https://mega.nz/keys/mega_pubkey.asc
cat 

Proton Drive (proton-drive-cli)

Using the community CLI:

# Prerequisites
sudo yum install python3 git -y

# Clone and install
git clone https://github.com/proton-mail/proton-drive-cli.git
cd proton-drive-cli
sudo python3 setup.py install

# Login
pdrive login

# Upload a file
pdrive upload myfile.txt /Drive/Folder/

# List
pdrive ls /Drive

Filen (fcli)

Official Filen CLI:

# Download binary
curl -Lo fcli https://updates.filen.io/fcli/latest/linux64/fcli
chmod  x fcli
sudo mv fcli /usr/local/bin/

# Configure
fcli config set user you@domain.com
fcli config set pass YourPassword

# Upload
fcli upload /path/to/local.txt remote:/myfolder/

# Download
fcli download remote:/myfolder/local.txt /tmp/

Tresorit (tresorit-cli)

Install and usage:

# Download and install
curl -Lo tresorit-cli.rpm https://download.tresorit.com/cli/linux/tresorit-cli.rpm
sudo yum install tresorit-cli.rpm -y

# Authenticate
tresorit auth login

# Sync a folder
tresorit sync ~/Tresorit/MySyncFolder

# Status
tresorit status

Icedrive (icedrive-cli)

Setup the official CLI:

# Download
curl -Lo icedrive https://download.icedrive.net/icedrive-cli/linux/amd64/icedrive
chmod  x icedrive
sudo mv icedrive /usr/local/bin/

# Login
icedrive login you@example.com

# Mount FUSE
icedrive mount /mnt/icedrive

# Copy files
cp file.zip /mnt/icedrive/

Backblaze B2 (b2)

Using official B2 CLI:

# Install
pip3 install --user b2

# Authorize
b2 authorize-account ACCOUNT_ID APPLICATION_KEY

# Create bucket
b2 create-bucket mybucket allPublic

# Upload file
b2 upload-file mybucket /etc/hosts hosts.backup

# List files
b2 ls mybucket

AWS S3 (awscli)

Standard AWS CLI commands:

# Install
sudo yum install awscli -y

# Configure
aws configure
# (Enter AWS Access Key, Secret, region, output format)

# Make bucket
aws s3 mb s3://my-centos-backup

# Sync folder
aws s3 sync /var/log s3://my-centos-backup/logs

Common Issues and Troubleshooting

  • Authentication fails: Ensure correct credentials and time synchronization (ntpd) on CentOS.
  • Mount errors (FUSE): Install fuse and add your user to the fuse group.
  • Connectivity problems: Check firewalls (firewalld) and proxy settings. Use curl or wget to test endpoints.
  • Insufficient permissions: Run CLI commands with the appropriate user or sudo, and verify file ownership.
  • Rate limits: Some services throttle API calls. Batch operations or add pauses in scripts.

Selecting the right CLI-supported cloud storage on CentOS depends on your security requirements, budget, and workflow. Whether you need end-to-end encryption, unlimited scalability, or seamless mounts, this guide equips you with the tools and examples to make an informed decision and streamline your automation.

Be the first to leave a comment

Leave a Reply

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