
What Zerobyte does for you
- Schedule backups hourly, daily, weekly or with a cron expression, with a retention policy that prunes old snapshots on its own.
- Send your encrypted data to a local disk, S3-compatible storage, an SFTP or REST server, or any provider rclone supports.
- Restore a file or a folder in a few clicks, after browsing the snapshot in your browser.
- Mirror your snapshots to a second repository, off the VPS, for a 3-2-1 strategy.
- Get alerted by email, Slack, Discord, ntfy, Telegram or webhook when a backup fails.
At a glance
Install Zerobyte on your VPS
Prerequisites: a Linux VPS with Docker and its Compose plugin, a domain name (herezerobyte.example.com) pointing to the VPS, Nginx and a Let’s Encrypt certificate for that domain (from Certbot, for instance).
First check that Docker and Compose are installed, with the commands from the docs:
APP_SECRET. Generate your own with the command from the README:
.env file, next to the Compose file, holds that key. Never reuse the README’s sample value, and keep a copy of yours somewhere safe: without it, the stored credentials can no longer be decrypted.
SYS_ADMIN capability or the /dev/fuse device. This compose.yaml follows it, with the image pinned to v0.46, port 4096 published on 127.0.0.1 only and the settings from the reverse proxy guide:
/srv with the folder to protect, and add one line per folder. A read-only mount (:ro) protects the source, but then you cannot restore to the original location.
To back up remote shares (NFS, SMB, WebDAV, SFTP) mounted by Zerobyte, the docs add
cap_add: [SYS_ADMIN] and devices: [/dev/fuse:/dev/fuse] back to the Compose file. Your local folders do not need them: every repository type (local, S3, GCS, Azure, rclone) stays available without those privileges.First steps
-
Create the admin account and keep the recovery key. Open
https://zerobyte.example.com. On the Onboarding page, enter an email, a username and a password, then click Create admin user. Confirm your password and click Download Recovery Key: that file holds the Restic password of your repositories. Store it off the VPS. -
Declare the source and the repository. In Volumes, click Create Volume, leave the backend on
Directoryand pick/datain the file browser. In Repositories, click Create repository and choose the destination:Localfor a first test, S3 or SFTP storage off the VPS for a true offsite copy. - Create the job and run it. In Backups, click Create a backup job, select the volume, then the repository, the frequency and the retention (for example 7 daily, 4 weekly, 6 monthly). Click Create, then Backup now.
Check that it works
Check that the container is running, then follow its logs, with the commands from the docs:docker compose ps should list the zerobyte container as Up, and the logs should show the requests relayed by Nginx.
In the interface, the job switches to Success and a snapshot appears in the Snapshots section. Open it, browse its files, then try Restore on one file to a custom location: a backup is only proven once it has been restored.
Secure access
The docs are clear: do not expose Zerobyte directly to the Internet. The Compose file above publishes port 4096 on127.0.0.1 only: the interface can be reached through Nginx alone, over HTTPS.
A BASE_URL starting with https:// turns on Secure cookies. Signing in over plain HTTP then loops: always use the HTTPS address.
Only set TRUST_PROXY=true in this setup, where Nginx alone can reach the container: Zerobyte then trusts the X-Forwarded-Host and X-Forwarded-Proto headers.
The console firewall adds a second barrier: allow inbound SSH and ports 80 and 443, nothing else. For an extra layer, the docs suggest a tunnel (Tailscale, WireGuard, Cloudflare Tunnel) in front of the interface.
Limits and alternatives
Zerobyte is still in version 0.x, and its README warns that it may change significantly between releases: pin the tag and read the notes before each update. A local repository on the same disk does not protect you from losing the VPS: add a mirror repository off the server.Going further
- Zerobyte documentation: installation, reverse proxy and 3-2-1 strategy
- Back up your VPS: a full disk copy every night, alongside your file backups
- VPS firewall: open only the ports you need

