zerobyte/examples
Jakub Trávník 5a4f4641b4 feat: improve config import with result tracking and idempotent repository detection
- Add ImportResult type to track succeeded/warnings/errors counts across all import functions
- Implement multi-layer repository duplicate detection:
  - URL-based check (same path/bucket/endpoint already registered)
  - Restic repo check (path is already a restic repository)
  - Name-based fallback check
- Standardize logging between CLI and env var import methods with logImportSummary()
- CLI exits with code 1 when import has errors
- Remove shortId override for local repo migrations (use full path with isExistingRepository instead)
- Update example JSON and README:
  - Document that local repo path is optional (defaults to /var/lib/zerobyte/repositories)
  - Add existing-local-repo example with isExistingRepository: true
  - Add S3 endpoint field to example
  - Expand config behavior docs to explain all repository skip conditions
- Improve .gitignore to exclude all JSON except example template
2025-12-29 18:34:02 +01:00
..
basic-docker-compose Add examples directory and runnable setups 2025-12-19 13:28:05 +01:00
config-file-import feat: improve config import with result tracking and idempotent repository detection 2025-12-29 18:34:02 +01:00
directory-bind-mount implement copilot and rabbitai suggestions 2025-12-19 14:39:57 +01:00
rclone-config-mount implement copilot and rabbitai suggestions 2025-12-19 14:39:57 +01:00
secrets-placeholders implement copilot and rabbitai suggestions 2025-12-19 14:39:57 +01:00
simplified-docker-compose Add examples directory and runnable setups 2025-12-19 13:28:05 +01:00
tailscale-sidecar implement copilot and rabbitai suggestions 2025-12-19 14:39:57 +01:00
README.md moved documentation into separate example sub directory 2025-12-21 14:06:37 +01:00

Examples

This folder contains runnable, copy/paste-friendly examples for running Zerobyte in different setups.

Table of contents

Basic usage

Advanced setups

  • Tailscale sidecar — run Zerobyte behind a Tailscale sidecar using shared networking.