Skip to content

Commit

Permalink
upload to s3 without local path (#80)
Browse files Browse the repository at this point in the history
  • Loading branch information
calvinbui authored Oct 8, 2024
1 parent b6e63b0 commit 7a50d15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/backends/s3.bash
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,6 @@ function cache() {
TMP_FILE="$(mktemp)"
tar "${BK_TAR_ARGS[@]}" "${TMP_FILE}" ${TAR_TARGETS}
mv -f "${TMP_FILE}" "${TAR_FILE}"
aws s3 cp ${BK_CUSTOM_AWS_ARGS} "${TAR_FILE}" "s3://${BUCKET}/${TAR_FILE}"
aws s3 cp ${BK_CUSTOM_AWS_ARGS} "${TAR_FILE}" "s3://${BUCKET}/$(basename "${TAR_FILE}")"
fi
}

0 comments on commit 7a50d15

Please sign in to comment.