Supported Volume Types
Zerobyte supports multiple volume backends:- Directory - Local filesystem directories
- NFS - Network File System shares
- SMB - Server Message Block (CIFS) shares
- WebDAV - Web-based Distributed Authoring and Versioning
- SFTP - SSH File Transfer Protocol
- Rclone - Any storage backend supported by rclone
To use network volume types (NFS, SMB, WebDAV, SFTP), your Docker container must run with
SYS_ADMIN capability and access to /dev/fuse. See the Installation guide for details.Adding a Volume
Configure Basic Settings
Enter a descriptive name for your volume. This name will be used when creating backup schedules.
Configure Backend Settings
Fill in the connection details based on your selected volume type. See the sections below for type-specific configuration.
Test Connection (Optional)
Click Test Connection to verify that Zerobyte can successfully connect to your volume before saving.
Volume Type Configuration
Directory
Local filesystem directories are the simplest volume type to configure. Configuration:- Path: Absolute path to the directory (e.g.,
/mnt/dataor/mydata) - Read Only: Enable to prevent accidental modifications (optional)
NFS
Network File System shares from NAS devices or file servers. Configuration:- Server: NFS server hostname or IP address
- Export Path: The NFS export path (e.g.,
/volume1/share) - Port: NFS port (default: 2049)
- Version: NFS protocol version (3, 4, or 4.1)
- Read Only: Mount as read-only (optional)
SMB
Windows file shares and Samba servers. Configuration:- Server: SMB server hostname or IP address
- Share: Share name (without leading slashes)
- Username: Authentication username (optional for guest access)
- Password: Authentication password (optional for guest access)
- Guest: Enable for anonymous access
- Version: SMB protocol version (1.0, 2.0, 2.1, 3.0, or auto)
- Domain: Windows domain name (optional)
- Port: SMB port (default: 445)
- Read Only: Mount as read-only (optional)
WebDAV
Web-based file storage including Nextcloud, ownCloud, and WebDAV servers. Configuration:- Server: WebDAV server hostname or IP
- Path: Path on the server (e.g.,
/remote.php/dav/files/username/) - Port: HTTP/HTTPS port (default: 80 for HTTP, 443 for HTTPS)
- Username: Authentication username (optional)
- Password: Authentication password (optional)
- SSL: Enable for HTTPS connections
- Read Only: Mount as read-only (optional)
SFTP
Secure file transfer over SSH. Configuration:- Host: SFTP server hostname or IP address
- Port: SSH port (default: 22)
- Username: SSH username
- Password: SSH password (optional if using private key)
- Private Key: SSH private key for authentication (optional)
- Path: Remote directory path
- Skip Host Key Check: Disable strict host key checking (default: enabled)
- Known Hosts: Custom known_hosts file content (optional)
- Read Only: Mount as read-only (optional)
Rclone
Connect to any storage backend supported by rclone, including Google Drive, Dropbox, OneDrive, and more. Prerequisites:- Configure rclone remotes on the host system or mount the rclone config directory into the container
- Remote: Name of the configured rclone remote
- Path: Path within the remote (e.g.,
/backups) - Read Only: Mount as read-only (optional)
Managing Volumes
Auto-Remount
Volumes support automatic remounting if the connection is lost. Enable this in the volume settings to ensure continuous backup availability.Health Checks
Zerobyte periodically checks volume health. View the volume status in the Volumes list:- Mounted (green): Volume is accessible
- Unmounted (gray): Volume is not mounted
- Error (red): Connection issue detected
Browsing Volume Contents
Click on a volume to browse its contents and verify the connection is working correctly.Using Secret References
For enhanced security, you can reference secrets stored in environment variables or Docker secrets instead of storing them directly in the database. Syntax:env://VAR_NAME- Read from environment variablefile://SECRET_NAME- Read from/run/secrets/SECRET_NAME
docker-compose.yml:
Troubleshooting
Volume fails to mount
Volume fails to mount
- Verify network connectivity to the remote server
- Check credentials are correct
- Ensure the Docker container has
SYS_ADMINcapability and/dev/fusedevice access - Review container logs for detailed error messages
Permission denied errors
Permission denied errors
- Verify the user has read access to the remote share
- For NFS, check export permissions on the server
- For SMB, ensure the user has appropriate share and filesystem permissions
Cannot browse volume contents
Cannot browse volume contents
- Ensure the volume is in “Mounted” status
- Check that the specified path exists on the remote system
- Verify filesystem permissions allow directory listing
Connection timeout
Connection timeout
- Verify network connectivity (ping the server)
- Check firewall rules allow traffic on the required ports
- For NFS/SMB, ensure the server is configured to accept connections from the container’s IP
Next Steps
Create Repositories
Set up encrypted storage destinations for your backups
Configure Backups
Schedule automated backup jobs for your volumes
