From 6c1ba18bf28391d726858185fe0b888655b0f379 Mon Sep 17 00:00:00 2001 From: deceivedhornet Date: Tue, 18 Nov 2025 02:34:53 -0500 Subject: [PATCH] simple restic, seems to work --- restic/docker-compose.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 restic/docker-compose.yml diff --git a/restic/docker-compose.yml b/restic/docker-compose.yml new file mode 100644 index 0000000..4872b50 --- /dev/null +++ b/restic/docker-compose.yml @@ -0,0 +1,20 @@ +# init with +# docker run --rm -e RESTIC_PASSWORD=yourpassword -v G:/restic-backups:/backup restic/restic init --repo /backup + +services: + restic-backup: + image: restic/restic:latest + container_name: restic-backup + environment: + - RESTIC_REPOSITORY=/backup + - RESTIC_PASSWORD=yourpassword + volumes: + - E:/installers:/data:ro + - G:/restic-backups:/backup + entrypoint: > + sh -c "while true; do + restic backup /data && + restic forget --prune --keep-last 7; + sleep 43200; + done" + restart: unless-stopped