From 127b9cbd469a085b2ee3a053ab20c1fa4baffb15 Mon Sep 17 00:00:00 2001 From: Sam Al-Sapti Date: Sat, 24 Feb 2024 22:02:15 +0100 Subject: [PATCH] Add restore bind mount and hostname to restic --- roles/apps/templates/compose-files/restic.yml.j2 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/roles/apps/templates/compose-files/restic.yml.j2 b/roles/apps/templates/compose-files/restic.yml.j2 index b7b92d1..71a44d9 100644 --- a/roles/apps/templates/compose-files/restic.yml.j2 +++ b/roles/apps/templates/compose-files/restic.yml.j2 @@ -7,6 +7,8 @@ services: backup: image: mazzolino/restic:{{ apps_vars.restic.version }} restart: always + hostname: {{ hostname }} + domainname: {{ fqdn }} environment: RUN_ON_STARTUP: false BACKUP_CRON: 0 0 3 * * * @@ -33,6 +35,7 @@ services: TZ: {{ timezone }} volumes: - "/var/run/docker.sock:/var/run/docker.sock:rw" + - "{{ apps_data_root }}/restic/data:/mnt/restore:rw" {% for app in apps_backup|sort %} - "{{ apps_data_root }}/{{ app }}/data:/mnt/volumes/{{ app }}:ro" {% endfor %}