From 834f6ca4076c0a94629b206712fc4f90496797b0 Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Fri, 3 Mar 2017 17:12:39 +0100 Subject: [PATCH] Set ServerAliveInterval and BatchMode on ssh to backuphost --- modules/roles/files/postgresql_server/pg-backup-file | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/roles/files/postgresql_server/pg-backup-file b/modules/roles/files/postgresql_server/pg-backup-file index 4b6f7d3d8..ff2a49397 100755 --- a/modules/roles/files/postgresql_server/pg-backup-file +++ b/modules/roles/files/postgresql_server/pg-backup-file @@ -69,7 +69,7 @@ for target in $backuphost; do [ -n "$checksum" ] || checksum="`sha512sum "$file" | awk '{print $1}'`" info "Archiving to $target: ($myhost,$targetname,$size,$checksum)" - ssh -C "$target" $ssh_options $myhost store-file pg "$targetname" "$size" "$checksum" < "$file" + ssh -C "$target" $ssh_options -o BatchMode=yes -o ServerAliveInterval=90 $myhost store-file pg "$targetname" "$size" "$checksum" < "$file" if [ "$?" != 0 ]; then croak "remote store for $logtuple failed." fi -- 2.20.1