Use Fedder's TrueNAS for Restic backups #153

Merged
samsapti merged 8 commits from restic_fedder into main 2023-03-05 22:01:54 +00:00
2 changed files with 11 additions and 0 deletions
Showing only changes of commit f2acc0a37b - Show all commits

View file

@ -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

View file

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