Log exit code of make-one-base-backup
authorPeter Palfrader <peter@palfrader.org>
Sun, 8 Sep 2019 19:05:59 +0000 (21:05 +0200)
committerPeter Palfrader <peter@palfrader.org>
Sun, 8 Sep 2019 19:05:59 +0000 (21:05 +0200)
modules/postgres/templates/backup_server/postgres-make-base-backups.erb

index b749c62..b0e65ef 100755 (executable)
@@ -152,6 +152,7 @@ while read host port username  cluster version; do
             log "Running $host:$port $version/$cluster."
             /usr/local/bin/postgres-make-one-base-backup "$host" "$port" "$username" "$cluster" "$version"
             rc=$?
             log "Running $host:$port $version/$cluster."
             /usr/local/bin/postgres-make-one-base-backup "$host" "$port" "$username" "$cluster" "$version"
             rc=$?
+            log "Base backup for $host:$port $version/$cluster exited with rc $rc."
             [ "$rc" = 0 ] && touch "$flagfilesuccess"
             flock -u 201
         else
             [ "$rc" = 0 ] && touch "$flagfilesuccess"
             flock -u 201
         else