File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 121121
122122# Upload compressed backup file to S3
123123start=$( date +%s) ;
124- aws s3 cp " /tmp/${DB_NAME} .sql.gz" " s3:// ${S3_BUCKET} /${DB_NAME} .sql.gz" || STATUS=$?
124+ aws s3 cp " /tmp/${DB_NAME} .sql.gz" " ${S3_BUCKET} /${DB_NAME} .sql.gz" || STATUS=$?
125125if [ $STATUS -ne 0 ]; then
126126 error_message=" ${MYNAME} : FATAL: Copy backup to ${S3_BUCKET} of ${DB_NAME} returned non-zero status ($STATUS ) in $( expr ${end} - ${start} ) seconds." ;
127127 log " ERROR" " ${error_message} " ;
@@ -130,7 +130,7 @@ if [ $STATUS -ne 0 ]; then
130130fi
131131
132132# Upload checksum file
133- aws s3 cp " /tmp/${DB_NAME} .sql.sha256.gz" " s3:// ${S3_BUCKET} /${DB_NAME} .sql.sha256.gz" || STATUS=$? ;
133+ aws s3 cp " /tmp/${DB_NAME} .sql.sha256.gz" " ${S3_BUCKET} /${DB_NAME} .sql.sha256.gz" || STATUS=$? ;
134134end=$( date +%s) ;
135135if [ $STATUS -ne 0 ]; then
136136 error_message=" ${MYNAME} : FATAL: Copy checksum to ${S3_BUCKET} of ${DB_NAME} returned non-zero status ($STATUS )." ;
Original file line number Diff line number Diff line change @@ -95,7 +95,7 @@ log "INFO" "${MYNAME}: copying database ${DB_NAME} backup and checksum from ${S3
9595start=$( date +%s)
9696
9797# Download database backup
98- aws s3 cp s3:// ${S3_BUCKET} /${DB_NAME} .sql.gz /tmp/${DB_NAME} .sql.gz || STATUS=$?
98+ aws s3 cp " ${S3_BUCKET} /${DB_NAME} .sql.gz" " /tmp/${DB_NAME} .sql.gz" || STATUS=$?
9999if [ $STATUS -ne 0 ]; then
100100 error_message=" ${MYNAME} : FATAL: Copy backup of ${DB_NAME} from ${S3_BUCKET} returned non-zero status ($STATUS ) in $( expr $( date +%s) - ${start} ) seconds."
101101 log " ERROR" " ${error_message} "
@@ -104,7 +104,7 @@ if [ $STATUS -ne 0 ]; then
104104fi
105105
106106# Download checksum file
107- aws s3 cp s3:// ${S3_BUCKET} /${DB_NAME} .sql.sha256.gz /tmp/${DB_NAME} .sql.sha256.gz || STATUS=$?
107+ aws s3 cp " ${S3_BUCKET} /${DB_NAME} .sql.sha256.gz" " /tmp/${DB_NAME} .sql.sha256.gz" || STATUS=$?
108108end=$( date +%s)
109109if [ $STATUS -ne 0 ]; then
110110 error_message=" ${MYNAME} : FATAL: Copy checksum of ${DB_NAME} from ${S3_BUCKET} returned non-zero status ($STATUS ) in $( expr ${end} - ${start} ) seconds."
You can’t perform that action at this time.
0 commit comments