> ## Documentation Index
> Fetch the complete documentation index at: https://blog.onetsolutions.net/llms.txt
> Use this file to discover all available pages before exploring further.

# Zerobyte: schedule and restore Restic backups on your VPS

> Run Zerobyte on a VPS: an open source web UI to schedule, monitor and restore encrypted Restic backups. Docker Compose setup behind HTTPS, OnetSolutions.

![Zerobyte: the backup jobs overview, with each job's source, repository, schedule and status](https://mintcdn.com/onetsolutions-blog/-hCgjYKKK0mgXEF1/images/2026/11/zerobyte.webp?fit=max\&auto=format\&n=-hCgjYKKK0mgXEF1\&q=85\&s=8ea93066d9e6d23bab346f6ad9108b3b)

*Published on November 30, 2026*

Backups run by a cron script nobody reads are often the restore that fails on the day you need it: Zerobyte, on your VPS, schedules, monitors and restores your Restic backups from a web interface.

## 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

| | |
| - | - |
| License | AGPL-3.0 (includes Restic, under the BSD-2-Clause license) |
| Language | TypeScript |
| Latest version | v0.46.0, released on November 29, 2026 |
| GitHub stars | 7,438 as of November 30, 2026 |
| Minimum resources | Not documented by the project. The docs require local storage for `/var/lib/zerobyte`, never a network share |
| Repository | [github.com/nicotsx/zerobyte](https://github.com/nicotsx/zerobyte) |

## Install Zerobyte on your VPS

Prerequisites: a Linux VPS with [Docker](https://help.onetsolutions.net/tutorials/how-to-install-docker) and its Compose plugin, a domain name (here `zerobyte.example.com`) pointing to the VPS, Nginx and a Let's Encrypt certificate for that domain (from [Certbot](https://certbot.eff.org/instructions), for instance).

First check that Docker and Compose are installed, with the commands from the docs:

```bash theme={null}
docker --version
docker compose version
```

Create the service directory:

```bash theme={null}
sudo mkdir -p /opt/zerobyte
cd /opt/zerobyte
```

Zerobyte encrypts the credentials it stores with a key of at least 32 characters, `APP_SECRET`. Generate your own with the command from the README:

```bash theme={null}
openssl rand -hex 32
```

The `.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.

```bash theme={null}
# /opt/zerobyte/.env
# Output of openssl rand -hex 32
APP_SECRET=replace-with-your-key
```

On a VPS, you mostly back up folders of the VPS itself. For that case the docs offer a simplified setup, without the `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:

```yaml theme={null}
# /opt/zerobyte/compose.yaml
services:
  zerobyte:
    image: ghcr.io/nicotsx/zerobyte:v0.46
    container_name: zerobyte
    restart: unless-stopped
    ports:
      # Web UI: VPS only, Nginx connects to it
      - "127.0.0.1:4096:4096"
    environment:
      # Time zone for backup schedules
      - TZ=Europe/Paris
      # Public URL, over HTTPS
      - BASE_URL=https://zerobyte.example.com
      - APP_SECRET=${APP_SECRET}
      # Nginx forwards the original host and protocol
      - TRUST_PROXY=true
    volumes:
      - /etc/localtime:/etc/localtime:ro
      # Zerobyte database, settings and local repositories
      - /var/lib/zerobyte:/var/lib/zerobyte
      # VPS folder to back up, seen as /data
      - /srv:/data
```

Replace `/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.

> [!NOTE]
>
> 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.

Start Zerobyte:

```bash theme={null}
sudo docker compose up -d
```

This Nginx block is the one from the docs' reverse proxy guide, with the domain and the Let's Encrypt certificate paths filled in:

```nginx theme={null}
# /etc/nginx/conf.d/zerobyte.conf
server {
    listen 443 ssl http2;
    server_name zerobyte.example.com;

    ssl_certificate /etc/letsencrypt/live/zerobyte.example.com/fullchain.pem;
    ssl_certificate_key /etc/letsencrypt/live/zerobyte.example.com/privkey.pem;

    location / {
        proxy_pass http://localhost:4096;
        proxy_set_header Host $host;
        proxy_set_header X-Forwarded-Host $host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $remote_addr;
        proxy_set_header X-Forwarded-Proto $scheme;
    }
}
```

Test the configuration and reload Nginx:

```bash theme={null}
sudo nginx -t && sudo systemctl reload nginx
```

> [!TIP]
>
> To update, change the tag on the `image:` line to the next release, then run `sudo docker compose up -d` again. Read the release notes first: the project is still in 0.x.

## First steps

1. **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.

2. **Declare the source and the repository.** In **Volumes**, click **Create Volume**, leave the backend on `Directory` and pick `/data` in the file browser. In **Repositories**, click **Create repository** and choose the destination: `Local` for a first test, S3 or SFTP storage off the VPS for a true offsite copy.

3. **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:

```bash theme={null}
sudo docker compose ps
sudo docker compose logs -f zerobyte
```

`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 on `127.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](https://help.onetsolutions.net/vps/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.

| Alternative | Difference |
| - | - |
| [Backrest](https://github.com/garethgeorge/backrest) | Another web interface on top of Restic, written in Go. |
| [Kopia](https://github.com/kopia/kopia) | Its own backup engine instead of Restic, with both a graphical interface and a command line. |
| [Duplicati](https://github.com/duplicati/duplicati) | Its own web interface and backup format, also available on Windows and macOS. |

## Going further

* [Zerobyte documentation](https://zerobyte.app/docs): [installation](https://zerobyte.app/docs/installation), [reverse proxy](https://zerobyte.app/docs/guides/reverse-proxy) and [3-2-1 strategy](https://zerobyte.app/docs/guides/3-2-1-backup-strategy)
* [Back up your VPS](https://help.onetsolutions.net/vps/backup): a full disk copy every night, alongside your file backups
* [VPS firewall](https://help.onetsolutions.net/vps/firewall): open only the ports you need

No VPS at OnetSolutions yet? [Pick yours](https://onetsolutions.net) and keep your backups under your own control.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.