Skip to content
Snippets Groups Projects
Verified Commit d437e560 authored by nd's avatar nd
Browse files

add option to disable repository creation

parent c52a5e2d
No related branches found
No related tags found
No related merge requests found
...@@ -16,6 +16,7 @@ backups: ...@@ -16,6 +16,7 @@ backups:
restic: restic:
url: /var/backup-client/restic url: /var/backup-client/restic
repo_type: local repo_type: local
repo_folder_create: true
additional_keys: {} additional_keys: {}
mode: vm-via-hypervisor mode: vm-via-hypervisor
enabled: True enabled: True
......
...@@ -196,7 +196,9 @@ ...@@ -196,7 +196,9 @@
export RESTIC_REPOSITORY="{{ backups.backends.restic.url }}" export RESTIC_REPOSITORY="{{ backups.backends.restic.url }}"
export RESTIC_PASSWORD_FILE="/etc/backup-client/restic.key" export RESTIC_PASSWORD_FILE="/etc/backup-client/restic.key"
- name: create restic repository folder - name: create restic repository folder
when: backups.backends.restic.repo_type == 'local' when:
- backups.backends.restic.repo_type == 'local'
- backups.backends.restic.repo_folder_create
file: file:
path: "{{ backups.backends.restic.url }}" path: "{{ backups.backends.restic.url }}"
state: directory state: directory
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment