Index: scripts/globals.sh =================================================================== diff -u -r5e316e1f709d85fe372cb31e3be6b497df85751c -rb313ce3c5b5ccb3372e1e5714efd8990da17bfd0 --- scripts/globals.sh (.../globals.sh) (revision 5e316e1f709d85fe372cb31e3be6b497df85751c) +++ scripts/globals.sh (.../globals.sh) (revision b313ce3c5b5ccb3372e1e5714efd8990da17bfd0) @@ -695,7 +695,9 @@ function log_tally() { base="$1" - tally=$(find . -maxdepth 1 -type f -name "$base.$EXT_PEND*" | grep -oE '\.u[0-9]+\.*' | grep -oE '[0-9]+' | sort -n | tail -1) + last_tally=$(find . -maxdepth 1 -type f -name "$base.$EXT_PEND*" | grep -oE "\.$EXT_PEND[0-9]+\.*" | grep -oE '[0-9]+' | sort -n | tail -1) + new_tally=$(( $last_tally + 1 )) + echo $new_tally } function log_backup_logApp() {