flagfilesuccess="$STATEDIR/$host-$port.last-success"
if [ -n "$forcehostport" ]; then
if [ "$forcehostport" != "$host:$port" ]; then
flagfilesuccess="$STATEDIR/$host-$port.last-success"
if [ -n "$forcehostport" ]; then
if [ "$forcehostport" != "$host:$port" ]; then
# get a "randomish" but stable value for this backup run
val=$(echo "$MYHOSTNAME-$host-$port-$mtime" | sha256sum | head -c 8)
val=$((16#$val))
# get a "randomish" but stable value for this backup run
val=$(echo "$MYHOSTNAME-$host-$port-$mtime" | sha256sum | head -c 8)
val=$((16#$val))
- valmod=$(($val % $DELTA_WAIT_SUCCESS))
- after_min=$((delta - MIN_WAIT_SUCCESS))
- if [ "$after_min" -lt "$valmod" ]; then
+ rnd_cuttoff=$(($val % $DELTA_WAIT_SUCCESS))
+ age_after_min=$((delta - MIN_WAIT_SUCCESS))
+ if [ "$age_after_min" -lt "$rnd_cuttoff" ]; then
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=$?
bmdb1.debian.org 5436 debian-backup wannabuild 9.6
bmdb1.debian.org 5440 debian-backup debsources 9.6
fasolo.debian.org 5433 debian-backup dak 9.6
bmdb1.debian.org 5436 debian-backup wannabuild 9.6
bmdb1.debian.org 5440 debian-backup debsources 9.6
fasolo.debian.org 5433 debian-backup dak 9.6