Best Cloud Storage with CLI for Linux VyOS
VyOS is a powerful network operating system based on Linux. Integrating cloud storage via CLI on VyOS enables automated backups, offsite log storage, and file synchronization. This article covers top cloud storage services offering CLI support on Linux-based systems like VyOS. We compare pCloud, MEGA, Proton Drive, Filen, Tresorit, Icedrive, plus two additional solutions—Nextcloud and rclone. You will learn which service to choose, how to set up each CLI client, and common pitfalls.
Top Recommendations
- pCloud – Affordable, lifetime plans, easy CLI.
- MEGA – 20 GB free, strong encryption, mega-cmd CLI.
- Proton Drive – Privacy-focused, zero-access encryption, Linux CLI beta.
- Filen – European jurisdiction, end-to-end encryption, filen-cli.
- Tresorit – Enterprise-grade security, tresorit-cli.
- Icedrive – Modern UI, FAST A , icedrive-cli.
- Nextcloud – Self-hosted option, powerful CLI (occ, rclone).
- rclone – Multi-cloud sync tool, works with dozens of providers.
Comparison Table
| Provider | Free Tier | Encryption | CLI Available | Open Source | Link |
|---|---|---|---|---|---|
| pCloud | 10 GB | Optional client-side | Yes (pcloudcc) | No | pcloud.com |
| MEGA | 20 GB | End-to-end | Yes (mega-cmd) | No | mega.nz |
| Proton Drive | 1 GB | End-to-end | Yes (beta) | No | proton.me/drive |
| Filen | 10 GB | End-to-end | Yes (filen-cli) | No | filen.io |
| Tresorit | 3 GB | End-to-end | Yes (tresorit-cli) | No | tresorit.com |
| Icedrive | 10 GB | Client-side | Yes (icedrive-cli) | No | icedrive.net |
| Nextcloud | Self-hosted | Optional E2E | Yes (occ, rclone) | Yes | nextcloud.com |
| rclone | Depends on backend | Optional client-side | Yes | Yes | rclone.org |
Which One to Choose?
For VyOS environments where trust and minimal dependencies matter, rclone stands out because it supports multiple backends in a single tool. If you need strictly end-to-end encrypted commercial storage, consider MEGA or Tresorit. For budget or lifetime deals, pCloud and Icedrive are compelling. Those seeking self-hosting should deploy Nextcloud. Privacy advocates can test the Proton Drive beta CLI.
Setup and Usage Examples
1. pCloud CLI (pcloudcc)
Install:
# On Debian/Ubuntu-based VyOS build environment or chroot apt-get update apt-get install pcloudcc
Authenticate and mount remote storage:
pcloudcc -u your_email@example.com -p your_password --mount-point /mnt/pcloud
Common problems: password in cleartext use environment variables or config file (~/.config/pcloudcc.config).
2. MEGA CLI (mega-cmd)
Install:
# Debian/Ubuntu wget https://mega.nz/linux/MEGAsync/xUbuntu_20.04/amd64/mega-cmd_4.7.2-1.1_amd64.deb dpkg -i mega-cmd_4.7.2-1.1_amd64.deb apt-get -f install
Log in and sync:
mega-login your_email@example.com your_password mega-sync /config/backups /Backups
Typical pitfalls: 2FA accounts require sessions exported via mega-export.
3. Proton Drive CLI (Beta)
Download and install:
# Download binary for Linux wget https://github.com/ProtonMail/proton-drive-cli/releases/download/v0.1.0/proton-drive-linux.zip unzip proton-drive-linux.zip chmod x proton-drive mv proton-drive /usr/local/bin/
Authenticate:
proton-drive login
Usage:
proton-drive sync /etc /DriveBackup/etc
Limitations: still beta, occasional API timeouts increase retry count with --retries.
4. Filen CLI
Install (requires Go runtime installation):
wget https://github.com/filen-io/filen-cli/releases/download/v1.0.0/filen-linux-amd64.tar.gz tar -xzf filen-linux-amd64.tar.gz mv filen /usr/local/bin/
Login and usage:
filen login filen upload /var/log/syslog /logs/syslog-(date %F).log
Watch out: no systemd unit provided create a simple cron or service file.
5. Tresorit CLI
Install via package:
# Download and install wget https://releases.tresorit.com/linux/tresorit-cli_1.0.11_amd64.deb dpkg -i tresorit-cli_1.0.11_amd64.deb apt-get -f install
Authenticate and sync:
tresorit login your_email tresorit sync --local /home/vyos/backup --remote BackupFolder
Issue: account lockouts after repeated wrong passwords use tresorit logout before re-login.
6. Icedrive CLI
Install:
wget https://icy.tools/releases/icedrive-cli/v1.3.0/icedrive-linux-x64.zip unzip icedrive-linux-x64.zip chmod x icedrive mv icedrive /usr/local/bin/
Mount and list:
icedrive auth login icedrive fs mount /mnt/icedrive icedrive fs ls /
Note: FUSE mounts require fuse3 package watch for permission errors.
7. Nextcloud CLI (occ rclone)
Self-hosted Nextcloud supports the occ CLI for administration. For file sync, use rclone:
# Configure rclone for Nextcloud rclone config # Follow prompts: choose WebDAV, URL=https://your.nextcloud.server/remote.php/webdav rclone sync /data/backups nextcloud:backups
Common error: SSL certificate errors use --no-check-certificate or install CA certs in VyOS chroot.
8. rclone (Multi-Cloud)
Install:
curl https://rclone.org/install.sh bash
Usage for any supported provider:
rclone config # set up remote (pcloud, mega, etc.) rclone copy /etc pcloud:/backups/vyos/etc --transfers 4
Tip: Use --dry-run to test, and --checksum for integrity checks.
Typical Problems and Solutions
- Authentication failures: Store credentials securely, use environment variables, or encrypted config files.
- FUSE mount issues: Ensure
fuse/fuse3installed, adjust/etc/fuse.confto allow non-root mounts. - Network restrictions: Open required ports (usually HTTPS/443). Use proxies if behind strict firewalls.
- Permission errors: Run CLI under correct user context adjust mount-point ownership.
- Rate limits and API errors: Respect provider rate limits throttle sync jobs and use retry flags.
Conclusion
For VyOS-based servers, CLI-driven cloud storage enables robust automation. If you want a single unified tool, choose rclone. For turnkey solutions with strong encryption, evaluate MEGA, Tresorit, or Proton Drive (beta). Budget-conscious users should try pCloud or Icedrive. Enterprises with regulatory concerns may opt for Nextcloud or Filen under European jurisdiction. Test each CLI in a staging environment to address any integration quirks in VyOS.
Be the first to leave a comment