We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
?
1 parent b9a34e2 commit 96eda43Copy full SHA for 96eda43
application/backup.sh
@@ -121,7 +121,7 @@ fi
121
122
# Upload compressed backup file to S3
123
start=$(date +%s);
124
-aws s3 cp "/tmp/${DB_NAME}.sql.gz" "s3://${S3_BUCKET}/${DB_NAME}.sql.gz" || STATUS=$
+aws s3 cp "/tmp/${DB_NAME}.sql.gz" "s3://${S3_BUCKET}/${DB_NAME}.sql.gz" || STATUS=$?
125
if [ $STATUS -ne 0 ]; then
126
error_message="${MYNAME}: FATAL: Copy backup to ${S3_BUCKET} of ${DB_NAME} returned non-zero status ($STATUS) in $(expr ${end} - ${start}) seconds.";
127
log "ERROR" "${error_message}";
0 commit comments