Zerobyte integrates with rclone to provide support for 40+ cloud storage providers including Google Drive, Dropbox, OneDrive, Box, pCloud, Mega, and many more. This gives you the flexibility to store your backups on virtually any cloud storage service.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/nicotsx/zerobyte/llms.txt
Use this file to discover all available pages before exploring further.
Overview
Rclone can be used in Zerobyte for two purposes:- Repository Backend - Store encrypted backups on cloud storage (Dropbox, Google Drive, OneDrive, etc.)
- Volume Backend - Mount cloud storage as a source to back up from (requires additional configuration)
Prerequisites
- Docker with Docker Compose
- Linux host (required for rclone volume mounting)
- rclone installed on the Docker host
Installation
1. Install rclone on Host
If rclone is not already installed on your Docker host:2. Configure Cloud Storage Remote
Run rclone’s interactive configuration wizard:3. Verify Remote Configuration
Confirm your remote is properly configured:4. Mount Rclone Config into Container
Update yourdocker-compose.yml to mount the rclone configuration directory:
docker-compose.yml
The rclone config is mounted read-only (
:ro) for security. The default path is ~/.config/rclone on Linux. For root users, use /root/.config/rclone.5. Restart Zerobyte
After updating the configuration:Using Rclone Repositories
Once configured, rclone remotes will appear in the repository creation dropdown:- Navigate to Repositories in the Zerobyte UI
- Click Create Repository
- Select rclone as the backend type
- Choose your configured remote from the dropdown
- Specify the path on the remote where backups should be stored
- Click Create
Supported Cloud Providers
Rclone supports 40+ storage providers. Popular options include:- Dropbox - Cloud storage with 2GB free tier
- Google Drive - 15GB free tier
- OneDrive - Microsoft’s cloud storage
- Box - Enterprise cloud storage
- pCloud - European cloud storage
- Mega - End-to-end encrypted storage
- Amazon Drive - Amazon’s cloud storage
- Backblaze B2 - Low-cost cloud storage
- SFTP - Any SSH/SFTP server
- WebDAV - Generic WebDAV servers
- FTP - Traditional FTP servers
Rclone Volume Mounting
You can also use rclone to mount cloud storage as a volume source to back up from. This requires additional Docker privileges.Requirements for Volume Mounting
- Linux Docker host (not supported on Windows/macOS)
/dev/fusedevice accessSYS_ADMINcapability- FUSE support on host system
Configuration for Volume Mounting
Update yourdocker-compose.yml:
docker-compose.yml
Testing Rclone Mount on Host
Before using rclone volumes in Zerobyte, verify mounting works on your host:Authentication Issues
OAuth Token Expiration
OAuth tokens for providers like Google Drive and Dropbox can expire. If you see “Failed to Create File System” errors:SFTP Remote with SSH Keys
When using SFTP remotes with SSH key authentication, the key file must be accessible inside the container. Option 1: Mount SSH keys (Recommended)docker-compose.yml
~/.config/rclone/rclone.conf:
rclone.conf
rclone.conf
docker-compose.yml
Non-Root Containers
For non-root container environments (e.g., TrueNAS), set the correct config path:docker-compose.yml
Example: Complete Setup
See the rclone-config-mount example in the repository for a complete working configuration.docker-compose.yml
.env
Verification
To verify rclone is properly configured inside the container:Best Practices
- Test on host first - Always verify rclone works on your Docker host before troubleshooting container issues
- Use descriptive names - Name remotes clearly (e.g.,
personal-gdrive,work-dropbox) - Read-only mount - Keep the rclone config mounted as
:rofor security - Backup your config - Store a copy of
~/.config/rclone/rclone.confsecurely - Monitor tokens - OAuth tokens can expire; re-authenticate periodically
- Use separate folders - Create dedicated folders on cloud storage for Zerobyte backups
