Skip to content

Docker resetting and losing backup info #267

Discussion options

You must be logged in to vote

Hey, sounds like your environment variables (or mounts) are not setup correctly. Some portion of backrest's data is getting lost when the container restarts.

Make sure your config matches

services:
  backrest:
    image: garethgeorge/backrest
    container_name: backrest
    hostname: backrest #Use this to set the hostname instead of container ID to the config.json and WebUI.
    volumes:
      - ./backrest/data:/data
      - ./backrest/config:/config
      - ./backrest/cache:/cache
      - /MY-BACKUP-DATA:/userdata # mount your directories to backup somewhere in the filesystem
      - /MY-REPOS:/repos # (optional) mount your restic repositories somewhere in the filesystem.
    environmen…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by BrandonMillerSwingtech
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #264 on May 08, 2024 04:45.