Rename variables to avoid name clash

This commit is contained in:
Reynir Björnsson 2024-03-06 13:38:46 +01:00
parent 4112bb73b6
commit a0988aa05d
3 changed files with 5 additions and 5 deletions

View file

@ -44,8 +44,8 @@ services:
restic: restic:
volume_folder: "{{ volume_root_folder }}/restic" volume_folder: "{{ volume_root_folder }}/restic"
pre_deploy_tasks: true pre_deploy_tasks: true
user: dc-user remote_user: dc-user
domain: rynkeby.skovgaard.tel remote_domain: rynkeby.skovgaard.tel
host_key: ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBLGol2G+a87ssy0nu/STKBZSiGyhZhZKx/ujfe9IeFo host_key: ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBLGol2G+a87ssy0nu/STKBZSiGyhZhZKx/ujfe9IeFo
repository: restic repository: restic
version: "1.7.0" version: "1.7.0"

View file

@ -8,7 +8,7 @@ services:
environment: environment:
RUN_ON_STARTUP: false RUN_ON_STARTUP: false
BACKUP_CRON: "0 30 3 * * *" BACKUP_CRON: "0 30 3 * * *"
RESTIC_REPOSITORY: sftp:{{ services.restic.user }}@{{ services.restic.domain }}:{{ services.restic.repository }} RESTIC_REPOSITORY: sftp:{{ services.restic.remote_user }}@{{ services.restic.remote_domain }}:{{ services.restic.repository }}
RESTIC_PASSWORD: "{{ restic_secrets.repository_password }}" RESTIC_PASSWORD: "{{ restic_secrets.repository_password }}"
RESTIC_BACKUP_SOURCES: /mnt/volumes RESTIC_BACKUP_SOURCES: /mnt/volumes
RESTIC_BACKUP_ARGS: >- RESTIC_BACKUP_ARGS: >-
@ -37,7 +37,7 @@ services:
environment: environment:
RUN_ON_STARTUP: false RUN_ON_STARTUP: false
PRUNE_CRON: "0 30 4 * * *" PRUNE_CRON: "0 30 4 * * *"
RESTIC_REPOSITORY: sftp:{{ services.restic.user }}@{{ services.restic.domain }}:{{ services.restic.repository }} RESTIC_REPOSITORY: sftp:{{ services.restic.remote_user }}@{{ services.restic.remote_domain }}:{{ services.restic.repository }}
RESTIC_PASSWORD: "{{ restic_secrets.repository_password }}" RESTIC_PASSWORD: "{{ restic_secrets.repository_password }}"
TZ: Europe/copenhagen TZ: Europe/copenhagen
volumes: volumes:

View file

@ -1,3 +1,3 @@
Host {{ services.restic.domain }} Host {{ services.restic.remote_domain }}
ServerAliveInterval 60 ServerAliveInterval 60
ServerAliveCountMax 240 ServerAliveCountMax 240