Skip to content
This repository was archived by the owner on Apr 10, 2025. It is now read-only.

Commit a523495

Browse files
committed
Allow to read custom options when TARBALL var is set
1 parent cb83933 commit a523495

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

mariadb-backup.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
set -e
33

44
#
5-
# Retreive and check mode, which can either be "BACKUP" or "RESTORE".
5+
# Retrieve and check mode, which can either be "BACKUP" or "RESTORE".
66
# Based on the mode, different default options will be set.
77
#
88

@@ -46,7 +46,7 @@ case "${MODE^^}" in
4646
'BACKUP')
4747
if [[ "${TARBALL^^}" != "" ]]
4848
then
49-
OPTIONS="--outputdir=${TARBALL}"
49+
OPTIONS="${OPTIONS:--c} --outputdir=${TARBALL}"
5050
else
5151
OPTIONS=${OPTIONS:--c}
5252
fi
@@ -60,7 +60,7 @@ case "${MODE^^}" in
6060
esac
6161

6262
#
63-
# Retreive backup settings and set some defaults.
63+
# Retrieve backup settings and set some defaults.
6464
# Then display the settings on standard out.
6565
#
6666

0 commit comments

Comments
 (0)