Skip to content

Commit 5cb5338

Browse files
committed
fix bugs in mariadb image
1 parent 2c325a2 commit 5cb5338

2 files changed

Lines changed: 5 additions & 6 deletions

File tree

.github/workflows/mariadb-logical-backup.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
images: ghcr.io/obmondo/mariadb-logical-backup
2626
tags: |
2727
type=raw,value=latest
28-
type=semver,pattern={{version}},value=v3.1.7
28+
type=semver,pattern={{version}},value=v3.1.8
2929
flavor: |
3030
latest=false
3131
- name: Login to GitHub Container Registry

mariadb-logical-backup/mariadb-dump.sh

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,18 +31,18 @@ function dump {
3131
# --quick: Stream output to save memory
3232
# --routines: Include stored procedures
3333
mariadb-dump -h "$MARIADB_HOST" -u "$MARIADB_USER" -p"$MARIADB_PASSWORD" -P "$MARIADB_PORT" \
34-
--all-databases \
35-
--system=users \
3634
--single-transaction \
3735
--quick \
3836
--routines \
3937
--events \
4038
--skip-ssl \
4139
--insert-ignore \
42-
--verbose
40+
--verbose \
41+
"$MARIADB_DATABASE"
4342
}
4443

4544
function compress {
45+
# Use pigz for multi-threaded compression if available, else gzip
4646
command -v pigz >/dev/null 2>&1 && pigz || gzip
4747
}
4848

@@ -133,6 +133,5 @@ else
133133
# Stream dump directly to S3 to save disk space
134134
dump | compress | upload
135135
[[ ${PIPESTATUS[0]} != 0 || ${PIPESTATUS[1]} != 0 || ${PIPESTATUS[2]} != 0 ]] && (( ERRORCOUNT += 1 ))
136-
set +x
137136
exit $ERRORCOUNT
138-
fi
137+
fi

0 commit comments

Comments
 (0)