From df79de60c457ba83d42f5b783f27e78632178095 Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Sun, 4 Feb 2018 11:50:42 +0100 Subject: [PATCH] and log checksums correctly --- modules/roles/files/postgresql_server/pg-backup-file | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/roles/files/postgresql_server/pg-backup-file b/modules/roles/files/postgresql_server/pg-backup-file index ce6d09836..9a432e56b 100755 --- a/modules/roles/files/postgresql_server/pg-backup-file +++ b/modules/roles/files/postgresql_server/pg-backup-file @@ -59,7 +59,7 @@ size="`stat -c '%s' "$file"`" checksum="" bn="`basename "$file"`" targetname="$cluster.$what.$bn" -logtuple_start="($myhost,$targetname,$size,$checksum" +logtuple_start="($myhost,$targetname,$size" failures="" for target in $backuphost; do @@ -72,7 +72,7 @@ for target in $backuphost; do ssh -C "$target" $ssh_options -o BatchMode=yes -o ServerAliveInterval=90 $myhost store-file pg "$targetname" "$size" "$checksum" < "$file" if [ "$?" != 0 ]; then - failures="$failures $logtuple_start,$target)" + failures="$failures $logtuple_start,$checksum,$target)" fi fi done -- 2.20.1