Skip to content

Commit 25def5b

Browse files
committed
Bugfix: S3 database cleanup path
1 parent 03b7ef9 commit 25def5b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -191,11 +191,11 @@ Your Organization will be mapped to `DB_USER` and your root token will need to b
191191
If `BACKUP_LOCATION` = `S3` then the following options are used.
192192

193193
| Parameter | Description | Default |
194-
| --------------------- | ----------------------------------------------------------------------------------------- | ------- |
194+
|-----------------------|-------------------------------------------------------------------------------------------|---------|
195195
| `S3_BUCKET` | S3 Bucket name e.g. `mybucket` | |
196196
| `S3_KEY_ID` | S3 Key ID | |
197197
| `S3_KEY_SECRET` | S3 Key Secret | |
198-
| `S3_PATH` | S3 Pathname to save to e.g. '`backup`' | |
198+
| `S3_PATH` | S3 Pathname to save to (must end in a trailing slash e.g. '`backup/`') | |
199199
| `S3_REGION` | Define region in which bucket is defined. Example: `ap-northeast-2` | |
200200
| `S3_HOST` | Hostname (and port) of S3-compatible service, e.g. `minio:8080`. Defaults to AWS. | |
201201
| `S3_PROTOCOL` | Protocol to connect to `S3_HOST`. Either `http` or `https`. Defaults to `https`. | `https` |

install/assets/functions/10-db-backup

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -469,7 +469,7 @@ cleanup_old_data() {
469469
s3_filename=$(echo $s3_file | awk {'print $4'})
470470
if [ "$s3_filename" != "" ] ; then
471471
print_debug "Deleting $s3_filename"
472-
silent aws ${PARAM_AWS_ENDPOINT_URL} s3 rm s3://${S3_BUCKET}/${S3_PATH}/${s3_filename} ${s3_ssl} ${s3_ca_cert} ${S3_EXTRA_OPTS}
472+
silent aws ${PARAM_AWS_ENDPOINT_URL} s3 rm s3://${S3_BUCKET}/${S3_PATH}${s3_filename} ${s3_ssl} ${s3_ca_cert} ${S3_EXTRA_OPTS}
473473
fi
474474
fi
475475

0 commit comments

Comments
 (0)