postgres-make-base-backups: print more values
authorPeter Palfrader <peter@palfrader.org>
Wed, 7 Mar 2018 10:23:08 +0000 (11:23 +0100)
committerPeter Palfrader <peter@palfrader.org>
Wed, 7 Mar 2018 10:23:08 +0000 (11:23 +0100)
modules/postgres/templates/backup_server/postgres-make-base-backups.erb

index 3d9e7ed..2a7996e 100755 (executable)
@@ -134,7 +134,7 @@ while read host port username  cluster version; do
                         age_after_min=$((delta - MIN_WAIT_SUCCESS))
                         if [ "$age_after_min" -lt "$rnd_cuttoff" ]; then
                             runme=0
                         age_after_min=$((delta - MIN_WAIT_SUCCESS))
                         if [ "$age_after_min" -lt "$rnd_cuttoff" ]; then
                             runme=0
-                            log "Skipping $host:$port $version/$cluster because random computer says wait ($age_after_min < $rnd_cuttoff)."
+                            log "Skipping $host:$port $version/$cluster because random computer says wait ($age_after_min < $rnd_cuttoff (< $DELTA_WAIT_SUCCESS)) + $MIN_WAIT_SUCCESS."
                         else
                             runme=1
                             log "Planning to run $host:$port $version/$cluster because random computer says so ($age_after_min >= $rnd_cuttoff)."
                         else
                             runme=1
                             log "Planning to run $host:$port $version/$cluster because random computer says so ($age_after_min >= $rnd_cuttoff)."