From 5cffe17cd8856b14fef8b858ba1dd12dfec43dd3 Mon Sep 17 00:00:00 2001 From: Pavel Raiskup Date: Tue, 29 Oct 2024 19:21:18 +0100 Subject: [PATCH] copr-backup: special-case long-running rsync SSH parameters Per: https://github.com/fedora-copr/copr/issues/3390 --- roles/rsnapshot-push/templates/client-backup-script.sh.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/rsnapshot-push/templates/client-backup-script.sh.j2 b/roles/rsnapshot-push/templates/client-backup-script.sh.j2 index 4a87c3ec73..63fa1ae083 100644 --- a/roles/rsnapshot-push/templates/client-backup-script.sh.j2 +++ b/roles/rsnapshot-push/templates/client-backup-script.sh.j2 @@ -5,6 +5,6 @@ exec rsync -av --xattrs --acls \ --delete --delete-excluded \ --rsh=ssh \ - -e 'ssh -o ConnectTimeout=3600' \ + -e 'ssh -o ConnectTimeout=3600 -o ServerAliveInterval=20 -o ServerAliveCountMax=900' \ {{ item.value.rsync_args }} \ {{ item.value.user }}@{{ rsnapshot_push.server_host }}::push