restic: Skip repo init on backup containers

Only the initial 'main' prune container will init the repository, the
others will not attempt even if they don't find a repository.
This commit is contained in:
Marty Oehme 2025-07-18 21:41:44 +02:00
parent 412054e3cd
commit 9cf2ee10a0
Signed by: Marty
GPG key ID: 4E535BC19C61886E
3 changed files with 3 additions and 0 deletions

View file

@ -296,6 +296,7 @@ services:
hostname: "{{ ansible_hostname }}"
environment:
TZ: "{{ restic_tz }}"
SKIP_INIT: true
BACKUP_CRON: "{{ arrstack_restic_cron }}"
RESTIC_REPOSITORY: "{{ restic_repo }}"
RESTIC_PASSWORD: "{{ restic_pass }}"

View file

@ -22,6 +22,7 @@ services:
hostname: "{{ ansible_hostname }}"
environment:
TZ: "{{ restic_tz }}"
SKIP_INIT: true
BACKUP_CRON: "{{ stack_grocy_restic_cron }}"
RESTIC_REPOSITORY: "{{ restic_repo }}"
RESTIC_PASSWORD: "{{ restic_pass }}"

View file

@ -72,6 +72,7 @@ services:
environment:
TZ: "{{ restic_tz }}"
BACKUP_CRON: "{{ stack_paperless_restic_cron }}"
SKIP_INIT: true
RESTIC_REPOSITORY: "{{ restic_repo }}"
RESTIC_PASSWORD: "{{ restic_pass }}"
AWS_ACCESS_KEY_ID: "{{ restic_s3_key }}"