From 9aa32b4af16f5844d68babc744b09acda71a2b6d Mon Sep 17 00:00:00 2001 From: Pavel Raiskup Date: Mon, 7 Oct 2024 15:50:41 +0200 Subject: [PATCH] rsnapshot-push: 1-hour SSH timeout before ending the backup session The default timeout on the Copr Backend server is set to 60 seconds, which can sometimes trigger the cancellation of the backup process. --- roles/rsnapshot-push/templates/client-backup-script.sh.j2 | 1 + 1 file changed, 1 insertion(+) diff --git a/roles/rsnapshot-push/templates/client-backup-script.sh.j2 b/roles/rsnapshot-push/templates/client-backup-script.sh.j2 index 072754fae0..4a87c3ec73 100644 --- a/roles/rsnapshot-push/templates/client-backup-script.sh.j2 +++ b/roles/rsnapshot-push/templates/client-backup-script.sh.j2 @@ -5,5 +5,6 @@ exec rsync -av --xattrs --acls \ --delete --delete-excluded \ --rsh=ssh \ + -e 'ssh -o ConnectTimeout=3600' \ {{ item.value.rsync_args }} \ {{ item.value.user }}@{{ rsnapshot_push.server_host }}::push