Skip to content

Commit

Permalink
Fix aws error when multiple targets are specified
Browse files Browse the repository at this point in the history
  • Loading branch information
l9c authored Nov 13, 2022
1 parent c0dc012 commit 348ea4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ function backup_target() {
"s3")
# allow for endpoint url override
[[ -n "$AWS_ENDPOINT_URL" ]] && AWS_ENDPOINT_OPT="--endpoint-url $AWS_ENDPOINT_URL"
aws ${AWS_CLI_OPTS} ${AWS_ENDPOINT_OPT} s3 cp ${AWS_CLI_S3_CP_OPTS} ${TMPDIR}/${SOURCE} "${DB_DUMP_TARGET}/${TARGET}"
aws ${AWS_CLI_OPTS} ${AWS_ENDPOINT_OPT} s3 cp ${AWS_CLI_S3_CP_OPTS} ${TMPDIR}/${SOURCE} "${target}/${TARGET}"
;;
"smb")
if [[ -n "$SMB_USER" ]]; then
Expand Down

0 comments on commit 348ea4b

Please sign in to comment.