Add restic cache

This commit is contained in:
Ivan R. 2024-11-25 17:00:14 +05:00
parent e8c889ed45
commit 0cb56365e6
Signed by: lumin
GPG key ID: E0937DC7CD6D3817

View file

@ -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