### Snippet from backup_functions.sh #set -x # shellcheck disable=SC2072 if [[ -n "${DO_PARALLEL_CHECKPOINTS:-}" && "$DO_PARALLEL_CHECKPOINTS" != "0" && "$P4D_VERSION" > "2022.2" ]]; then DoParallelCheckpoints=1 if [[ "$DO_PARALLEL_CHECKPOINTS" =~ ^[0-9]+$ ]]; then if [[ "$DO_PARALLEL_CHECKPOINTS" == 1 ]]; then Threads=4 else # Strip any leading zeros from the DO_PARALLEL_CHECKPOINTS value. Threads=$(echo $DO_PARALLEL_CHECKPOINTS|bc) fi else Threads=4 fi else DoParallelCheckpoints=0 fi #set +x
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#1 | 29434 | C. Thomas Tyler |
Tweaked code deriving Threads values from user-defined DO_PARALLEL_CHECKPOINT. Added a stand-alone test script for tweaking that snippet of code. |