Skip to content

Commit a42a8b1

Browse files
author
Bhavishya
committed
hardcode the file path in aws upload function
1 parent 2a670c8 commit a42a8b1

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

mariadb-logical-backup/mariadb-dump-file2.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ function aws_upload {
5151

5252
echo "Uploading dump to S3: ${PATH_TO_BACKUP}"
5353
echo "${args[@]}"
54-
aws s3 cp - "$PATH_TO_BACKUP" "${args[@]}"
54+
aws s3 cp /tmp/final_upload.sql.gz "$PATH_TO_BACKUP" "${args[@]}"
5555
}
5656

5757

@@ -61,7 +61,7 @@ else
6161
dump 2> /tmp/dump_stderr.log | tee /tmp/raw_dump.sql | compress > /tmp/final_upload.sql.gz
6262
PIPELINE_STATUS=("${PIPESTATUS[@]}")
6363
generate_checksum /tmp/final_upload.sql.gz
64-
cat /tmp/final_upload.sql.gz | aws_upload
64+
aws_upload
6565
sleep 1000
6666

6767
[[ ${PIPELINE_STATUS[0]} != 0 || ${PIPELINE_STATUS[1]} != 0 || ${PIPELINE_STATUS[2]} != 0 ]] && (( ERRORCOUNT += 1 ))

0 commit comments

Comments
 (0)