Skip to content

Commit 0685770

Browse files
committed
Release 3.9.0 - See CHANGELOG.md
1 parent 7781542 commit 0685770

File tree

4 files changed

+13
-7
lines changed

4 files changed

+13
-7
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
## 3.9.0 2023-04-26 <dave at tiredofit dot ca>
2+
3+
### Added
4+
- Add support for _FILE environment variables
5+
6+
17
## 3.8.5 2023-04-11 <tpansino@github>
28

39
### Changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ Your Organization will be mapped to `DB_USER` and your root token will need to b
203203

204204
If `BACKUP_LOCATION` = `S3` then the following options are used.
205205

206-
| Parameter | Description | Default | `_NAME` |
206+
| Parameter | Description | Default | `_FILE` |
207207
| --------------------- | ----------------------------------------------------------------------------------------- | ------- | ------- |
208208
| `S3_BUCKET` | S3 Bucket name e.g. `mybucket` | | x |
209209
| `S3_KEY_ID` | S3 Key ID (Optional) | | x |

install/assets/functions/10-db-backup

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
bootstrap_variables() {
44
sanity_var DB_TYPE "Set appropriate DB_TYPE"
5-
transform_var \
5+
transform_file_var \
66
DB_HOST \
77
DB_PORT \
88
DB_USER \
@@ -26,7 +26,7 @@ bootstrap_variables() {
2626
;;
2727
mongo* )
2828
dbtype=mongo
29-
transform_var MONGO_CUSTOM_URI
29+
transform_file_var MONGO_CUSTOM_URI
3030
if [ -n "${MONGO_CUSTOM_URI}" ] ; then
3131
mongo_uri_proto=$(echo "${MONGO_CUSTOM_URI}" | grep :// | sed -e's,^\(.*://\).*,\1,g')
3232
mongo_uri_scratch="${MONGO_CUSTOM_URI/${mongo_uri_proto}/}"
@@ -44,7 +44,7 @@ bootstrap_variables() {
4444
[[ ( -n "${DB_USER}" ) ]] && MONGO_USER_STR=" --username ${DB_USER}"
4545
[[ ( -n "${DB_PASS}" ) ]] && MONGO_PASS_STR=" --password ${DB_PASS}"
4646
[[ ( -n "${DB_NAME}" ) ]] && MONGO_DB_STR=" --db ${DB_NAME}"
47-
transform_var DB_AUTH
47+
transform_file_var DB_AUTH
4848
[[ ( -n "${DB_AUTH}" ) ]] && MONGO_AUTH_STR=" --authenticationDatabase ${DB_AUTH}"
4949
fi
5050
;;
@@ -103,7 +103,7 @@ bootstrap_variables() {
103103
esac
104104

105105
if [ "${BACKUP_LOCATION,,}" = "s3" ] || [ "${BACKUP_LOCATION,,}" = "minio" ] ; then
106-
transform_var \
106+
transform_file_var \
107107
S3_BUCKET \
108108
S3_KEY_ID \
109109
S3_KEY_SECRET \
@@ -116,7 +116,7 @@ bootstrap_variables() {
116116
fi
117117

118118
if [ "${BACKUP_LOCATION,,}" = "blobxfer" ] ; then
119-
transform_var \
119+
transform_file_var \
120120
BLOBXFER_STORAGE_ACCOUNT \
121121
BLOBXFER_STORAGE_KEY
122122
fi

install/usr/local/bin/restore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ else
3737
case "$1" in
3838
"-h" )
3939
cat <<EOF
40-
${IMAGE_NAME} Restore Tool
40+
${IMAGE_NAME} Restore Tool ${IMAGE_VERSION}
4141
(c) 2022 Dave Conroy (https://github.com/tiredofit)
4242

4343
This script will assist you in recovering databases taken by the Docker image.

0 commit comments

Comments
 (0)