restic: Fix backup container local repo mounting
If our chosen backup repo is a local one, each restic container needs to mount the local path as a volume, otherwise the data is stuck in the container itself.
This commit is contained in:
parent
f1be696479
commit
1fd72a05a6
2 changed files with 6 additions and 0 deletions
|
|
@ -31,6 +31,9 @@ services:
|
|||
--tag grocy
|
||||
RESTIC_BACKUP_SOURCES: "/backup"
|
||||
volumes:
|
||||
{% if restic_repo is regex('^/.+') %}
|
||||
- "{{ restic_repo }}:{{ restic_repo }}"
|
||||
{% endif %}
|
||||
- "{{ stack_grocy_env_dir }}:/backup/{{ stack_grocy_env_dir }}"
|
||||
{% endif %}
|
||||
|
||||
|
|
|
|||
|
|
@ -80,6 +80,9 @@ services:
|
|||
--tag paperless
|
||||
RESTIC_BACKUP_SOURCES: "/backup"
|
||||
volumes:
|
||||
{% if restic_repo is regex('^/.+') %}
|
||||
- "{{ restic_repo }}:{{ restic_repo }}"
|
||||
{% endif %}
|
||||
- "{{ stack_paperless_env_dir }}:/backup/{{ stack_paperless_env_dir }}"
|
||||
- "{{ stack_paperless_serve_dir }}/documents:/backup/{{ stack_paperless_serve_dir }}/documents"
|
||||
{% endif %}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue