From: Peter Palfrader Date: Sun, 4 Feb 2018 10:50:42 +0000 (+0100) Subject: and log checksums correctly X-Git-Url: https://git.adam-barratt.org.uk/?a=commitdiff_plain;h=df79de60c457ba83d42f5b783f27e78632178095;p=mirror%2Fdsa-puppet.git and log checksums correctly --- 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