Add restic cache
This commit is contained in:
parent
e8c889ed45
commit
0cb56365e6
1 changed files with 5 additions and 0 deletions
|
@ -5,6 +5,10 @@
|
||||||
dest: /root/.pgpass
|
dest: /root/.pgpass
|
||||||
mode: "0600"
|
mode: "0600"
|
||||||
owner: root
|
owner: root
|
||||||
|
- name: Create restic cache volume
|
||||||
|
become: true
|
||||||
|
community.docker.docker_volume:
|
||||||
|
name: restic-cache
|
||||||
- name: Run backup container
|
- name: Run backup container
|
||||||
become: true
|
become: true
|
||||||
community.docker.docker_container:
|
community.docker.docker_container:
|
||||||
|
@ -22,6 +26,7 @@
|
||||||
entrypoint: ["sleep"]
|
entrypoint: ["sleep"]
|
||||||
command: ["infinity"]
|
command: ["infinity"]
|
||||||
volumes:
|
volumes:
|
||||||
|
- restic-cache:/root/.cache/restic
|
||||||
- /root/.pgpass:/root/.pgpass:ro
|
- /root/.pgpass:/root/.pgpass:ro
|
||||||
- /mnt/hdd/archivebox-data:/data/archivebox:ro
|
- /mnt/hdd/archivebox-data:/data/archivebox:ro
|
||||||
- archivebox:/data/docker/archivebox:ro
|
- archivebox:/data/docker/archivebox:ro
|
||||||
|
|
Loading…
Reference in a new issue