# Backrest – Web UI for restic backups # Tested on: UGREEN DXP6800 Pro (UGOS), Docker Compose # # What it does: # Backrest runs scheduled restic backups of your Docker data. # All sources are mounted read-only (:ro), so Backrest can never # change or delete your original data. Backups are stored in /repos. # # Setup: # 1. Create the folders data, config, cache and the backup target first # 2. Start the stack and open http://NAS-IP:9898 # 3. Set a username/password on first start (don't expose the UI without it) # 4. Add a repository with path /repos/ and a strong password # 5. Create a plan per source (e.g. /source/immich) with schedule + retention # # Adjust: # - /volume2/docker/backrest → your own Docker folder # (my Docker runs on an NVMe volume = volume2, usually it's volume1) # - Sources: these are examples from my setup, replace with your own paths. # Mount them under /source/... and keep them read-only (:ro) # - Target: /volume3/DockerBackup/restic → a different disk/volume than # your data, otherwise a disk failure takes data and backup at once # # Tips: # - SAVE YOUR REPOSITORY PASSWORD SOMEWHERE ELSE (e.g. password manager on # another device). Without it, your backups can't be restored – ever. # - Databases: back up dumps (here /source/db-dumps) instead of live DB # files, a running database can end up inconsistent in the backup. # I create the dumps separately (e.g. Vaultwarden, Paperless) – the app # data folders are still backed up for attachments, keys and media. # - Restore: sources are read-only, so restore to /repos/restore or download # files via the web UI, then copy them back manually. # - Keep "hostname" fixed – restic uses it to identify the snapshots. services: backrest: image: garethgeorge/backrest:latest container_name: Backrest hostname: backrest security_opt: - no-new-privileges:true environment: TZ: Europe/Berlin BACKREST_DATA: /data BACKREST_CONFIG: /config/config.json XDG_CACHE_HOME: /cache volumes: - /volume2/docker/backrest/data:/data:rw - /volume2/docker/backrest/config:/config:rw - /volume2/docker/backrest/cache:/cache:rw # Sources (read-only) – examples, replace with your own - /volume1/DockerHDD/immich/upload:/source/immich:ro - /volume2/docker/vaultwarden/data:/source/vaultwarden:ro - /volume2/docker/paperlessngx/data:/source/paperless/data:ro - /volume1/DockerHDD/paperlessngx/media:/source/paperless/media:ro - /volume2/docker/dockhand:/source/dockhand:ro - /volume2/docker/db-dumps:/source/db-dumps:ro # Backup target - /volume3/DockerBackup/restic:/repos:rw ports: - 9898:9898 restart: unless-stopped