zerobyte/examples/directory-bind-mount
2025-12-22 17:00:59 +01:00
..
.env.example Merge remote-tracking branch 'upstream/main' into config-export-feature 2025-12-22 17:00:59 +01:00
docker-compose.yml Merge remote-tracking branch 'upstream/main' into config-export-feature 2025-12-22 17:00:59 +01:00
README.md Merge remote-tracking branch 'upstream/main' into config-export-feature 2025-12-22 17:00:59 +01:00

Bind-mount a local directory

This example shows how to back up a host directory by bind-mounting it into the Zerobyte container.

It uses the simplified setup (no remote mounts).

Prerequisites

  • Docker + Docker Compose

Setup

  1. Copy the env file:
cp .env.example .env
  1. Edit .env and set HOST_DATA_DIR to the directory you want to back up.

  2. Start the stack:

docker compose up -d

Use in Zerobyte

  • Create a new volume of type Directory
  • Select the mounted path shown in the compose file: /mydata

Access

  • UI/API: http://<host>:4096