Skip to content

Commit 738ba17

Browse files
committed
run 2nd socat in background so garbd can terminate recv script
1 parent 0414030 commit 738ba17

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

build/backup/run_backup.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,8 @@ backup_s3() {
134134
# shellcheck disable=SC2086
135135
socat -u "$SOCAT_OPTS" stdio \
136136
| xbcloud put --storage=s3 --parallel="$(grep -c processor /proc/cpuinfo)" --md5 $XBCLOUD_ARGS --s3-bucket="$S3_BUCKET" "$S3_BUCKET_PATH" 2>&1 \
137-
| (grep -v "error: http request failed: Couldn't resolve host name" || exit 1)
137+
| (grep -v "error: http request failed: Couldn't resolve host name" || exit 1) &
138+
wait $!
138139
fi
139140

140141
# shellcheck disable=SC2086

0 commit comments

Comments
 (0)