Skip to content

Commit b93e1fc

Browse files
authored
Merge pull request databacker#210 from l9c/master
Fix aws error when multiple targets are specified
2 parents c0dc012 + 348ea4b commit b93e1fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

functions.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ function backup_target() {
217217
"s3")
218218
# allow for endpoint url override
219219
[[ -n "$AWS_ENDPOINT_URL" ]] && AWS_ENDPOINT_OPT="--endpoint-url $AWS_ENDPOINT_URL"
220-
aws ${AWS_CLI_OPTS} ${AWS_ENDPOINT_OPT} s3 cp ${AWS_CLI_S3_CP_OPTS} ${TMPDIR}/${SOURCE} "${DB_DUMP_TARGET}/${TARGET}"
220+
aws ${AWS_CLI_OPTS} ${AWS_ENDPOINT_OPT} s3 cp ${AWS_CLI_S3_CP_OPTS} ${TMPDIR}/${SOURCE} "${target}/${TARGET}"
221221
;;
222222
"smb")
223223
if [[ -n "$SMB_USER" ]]; then

0 commit comments

Comments
 (0)