From 0cb56365e6b519a121598dbd52396ce45e866df8 Mon Sep 17 00:00:00 2001 From: Ivan Reshetnikov Date: Mon, 25 Nov 2024 17:00:14 +0500 Subject: [PATCH] Add restic cache --- roles/backups/tasks/main.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/roles/backups/tasks/main.yml b/roles/backups/tasks/main.yml index 84382ed..113cbb3 100644 --- a/roles/backups/tasks/main.yml +++ b/roles/backups/tasks/main.yml @@ -5,6 +5,10 @@ dest: /root/.pgpass mode: "0600" owner: root +- name: Create restic cache volume + become: true + community.docker.docker_volume: + name: restic-cache - name: Run backup container become: true community.docker.docker_container: @@ -22,6 +26,7 @@ entrypoint: ["sleep"] command: ["infinity"] volumes: + - restic-cache:/root/.cache/restic - /root/.pgpass:/root/.pgpass:ro - /mnt/hdd/archivebox-data:/data/archivebox:ro - archivebox:/data/docker/archivebox:ro