Avoid connection close when processing huge amounts of unchanged data

This commit is contained in:
Sam A. 2023-02-11 20:55:15 +01:00
parent a9abb33b3d
commit f2acc0a37b
Signed by: samsapti
GPG key ID: CBBBE7371E81C4EA
2 changed files with 11 additions and 0 deletions

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