From ae6e1055345672e30430f7c3dc17c8e3c336b7a4 Mon Sep 17 00:00:00 2001 From: mr-vercetti <87.milewski@gmail.com> Date: Fri, 21 Feb 2025 23:02:23 +0100 Subject: [PATCH] Replace duplicati with backrest --- .../duplicati/duplicati.yml | 0 docker/stacks/backrest/backrest.yml | 26 +++++++++++++++++++ 2 files changed, 26 insertions(+) rename docker/{stacks => additional-stacks}/duplicati/duplicati.yml (100%) create mode 100644 docker/stacks/backrest/backrest.yml diff --git a/docker/stacks/duplicati/duplicati.yml b/docker/additional-stacks/duplicati/duplicati.yml similarity index 100% rename from docker/stacks/duplicati/duplicati.yml rename to docker/additional-stacks/duplicati/duplicati.yml diff --git a/docker/stacks/backrest/backrest.yml b/docker/stacks/backrest/backrest.yml new file mode 100644 index 0000000..5f8e401 --- /dev/null +++ b/docker/stacks/backrest/backrest.yml @@ -0,0 +1,26 @@ +services: + backrest: + image: garethgeorge/backrest + container_name: backrest + networks: + - backrest + ports: + - 9898:9898 + volumes: + - ${APPS_DIR}/backrest/data:/data + - ${APPS_DIR}/backrest/config:/config + - ${APPS_DIR}/backrest/cache:/cache + - /apps:/userdata/docker # [optional] mount local paths to backup here. + - ${DATA_DIR}/nextcloud-data:/userdata/nextcloud + - ${DATA_DIR}/backup/hustler:/repos/hustler # [optional] mount repos if using local storage, not necessary for remotes e.g. B2, S3, etc. + - /var/run/docker.sock:/var/run/docker.sock:ro # [optional] if you want to manage containers before/after backup + environment: + - BACKREST_DATA=/data # path for backrest data. restic binary and the database are placed here. + - BACKREST_CONFIG=/config/config.json # path for the backrest config file. + - XDG_CACHE_HOME=/cache # path for the restic cache which greatly improves performance. + - TZ=${TIMEZONE} # set the timezone for the container, used as the timezone for cron jobs. + restart: unless-stopped + +networks: + backrest: + name: backrest