Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
t-pgsql (3.11.1-1) unstable; urgency=medium

* Fix: bwlimit and retries were CLI-only — a bwlimit/retries key in a jobs
YAML or config file was silently ignored. Both are now mapped in the
batch YAML runner, config loader and job serializer.

-- Asim Atasert <asimatasert@outlook.com> Wed, 16 Jul 2026 16:30:00 +0300

t-pgsql (3.11.0-1) unstable; urgency=medium

* New commands:
Expand Down
2 changes: 1 addition & 1 deletion src/00-header.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
# ==============================================================================
# VERSION & PATHS
# ==============================================================================
VERSION="3.11.0"
VERSION="3.11.1"
SCRIPT_NAME="t-pgsql"
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"

Expand Down
2 changes: 2 additions & 0 deletions src/50-config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ load_config() {
from_stale|from-stale) [ "$FROM_STALE_SET" != true ] && FROM_STALE="$value" ;;
compress) [ "$COMPRESS_SET" != true ] && COMPRESS="$value" ;;
compress_where|compress-where) [ "$COMPRESS_WHERE_SET" != true ] && COMPRESS_WHERE="$value" ;;
bwlimit) [ -z "$BWLIMIT" ] && BWLIMIT="$value" ;;
retries) [ "$RETRIES" = 0 ] && RETRIES="$value" ;;
exclude_table|exclude-table) [ -z "$EXCLUDE_TABLES" ] && EXCLUDE_TABLES="$value" ;;
exclude_schema|exclude-schema) [ -z "$EXCLUDE_SCHEMAS" ] && EXCLUDE_SCHEMAS="$value" ;;
exclude_data|exclude-data) [ -z "$EXCLUDE_DATA" ] && EXCLUDE_DATA="$value" ;;
Expand Down
4 changes: 4 additions & 0 deletions src/75-yaml.sh
Original file line number Diff line number Diff line change
Expand Up @@ -438,6 +438,10 @@ parse_job_to_args() {
# Streaming options
[ -n "$(get_job_value "$job" "stream_buffer")" ] && args+=" --stream-buffer $(pq "$(get_job_value "$job" "stream_buffer")")"

# Transfer options
[ -n "$(get_job_value "$job" "bwlimit")" ] && args+=" --bwlimit $(pq "$(get_job_value "$job" "bwlimit")")"
[ -n "$(get_job_value "$job" "retries")" ] && args+=" --retries $(pq "$(get_job_value "$job" "retries")")"

# Health check options
[ "$(get_job_value "$job" "health_check")" = "true" ] && args+=" --health-check"
[ "$(get_job_value "$job" "health_check_after")" = "true" ] && args+=" --health-check-after"
Expand Down
4 changes: 4 additions & 0 deletions src/76-jobs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ save_job() {
[ "$STREAM" = true ] && args="$args --stream"
[ "$STREAM_BUFFER" != 64 ] && args="$args --stream-buffer $STREAM_BUFFER"

# Transfer
[ -n "$BWLIMIT" ] && args="$args --bwlimit $(pq "$BWLIMIT")"
[ "$RETRIES" != 0 ] && args="$args --retries $RETRIES"

# Retention (GFS)
if [ "$RETENTION" = true ]; then
args="$args --retention"
Expand Down
12 changes: 11 additions & 1 deletion t-pgsql
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
# ==============================================================================
# VERSION & PATHS
# ==============================================================================
VERSION="3.11.0"
VERSION="3.11.1"
SCRIPT_NAME="t-pgsql"
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"

Expand Down Expand Up @@ -1706,6 +1706,8 @@ load_config() {
from_stale|from-stale) [ "$FROM_STALE_SET" != true ] && FROM_STALE="$value" ;;
compress) [ "$COMPRESS_SET" != true ] && COMPRESS="$value" ;;
compress_where|compress-where) [ "$COMPRESS_WHERE_SET" != true ] && COMPRESS_WHERE="$value" ;;
bwlimit) [ -z "$BWLIMIT" ] && BWLIMIT="$value" ;;
retries) [ "$RETRIES" = 0 ] && RETRIES="$value" ;;
exclude_table|exclude-table) [ -z "$EXCLUDE_TABLES" ] && EXCLUDE_TABLES="$value" ;;
exclude_schema|exclude-schema) [ -z "$EXCLUDE_SCHEMAS" ] && EXCLUDE_SCHEMAS="$value" ;;
exclude_data|exclude-data) [ -z "$EXCLUDE_DATA" ] && EXCLUDE_DATA="$value" ;;
Expand Down Expand Up @@ -4071,6 +4073,10 @@ parse_job_to_args() {
# Streaming options
[ -n "$(get_job_value "$job" "stream_buffer")" ] && args+=" --stream-buffer $(pq "$(get_job_value "$job" "stream_buffer")")"

# Transfer options
[ -n "$(get_job_value "$job" "bwlimit")" ] && args+=" --bwlimit $(pq "$(get_job_value "$job" "bwlimit")")"
[ -n "$(get_job_value "$job" "retries")" ] && args+=" --retries $(pq "$(get_job_value "$job" "retries")")"

# Health check options
[ "$(get_job_value "$job" "health_check")" = "true" ] && args+=" --health-check"
[ "$(get_job_value "$job" "health_check_after")" = "true" ] && args+=" --health-check-after"
Expand Down Expand Up @@ -4143,6 +4149,10 @@ save_job() {
[ "$STREAM" = true ] && args="$args --stream"
[ "$STREAM_BUFFER" != 64 ] && args="$args --stream-buffer $STREAM_BUFFER"

# Transfer
[ -n "$BWLIMIT" ] && args="$args --bwlimit $(pq "$BWLIMIT")"
[ "$RETRIES" != 0 ] && args="$args --retries $RETRIES"

# Retention (GFS)
if [ "$RETENTION" = true ]; then
args="$args --retention"
Expand Down