Use Fedder's TrueNAS for Restic backups #153
|
@ -31,6 +31,14 @@
|
||||||
mode: '0644'
|
mode: '0644'
|
||||||
state: touch
|
state: touch
|
||||||
|
|
||||||
|
- name: Create SSH config
|
||||||
|
template:
|
||||||
|
src: restic.ssh.config.j2
|
||||||
|
dest: "{{ services.restic.volume_folder }}/ssh/config"
|
||||||
|
owner: root
|
||||||
|
group: root
|
||||||
|
mode: '0600'
|
||||||
|
|
||||||
- name: Setup restic backup
|
- name: Setup restic backup
|
||||||
docker_compose:
|
docker_compose:
|
||||||
project_name: restic_backup
|
project_name: restic_backup
|
||||||
|
|
3
roles/docker/templates/restic.ssh.config.j2
Normal file
3
roles/docker/templates/restic.ssh.config.j2
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
Host {{ services.restic.domain }}
|
||||||
|
ServerAliveInterval 60
|
||||||
|
ServerAliveCountMax 240
|
Loading…
Reference in a new issue