diff --git a/resources/perform-backup.sh b/resources/perform-backup.sh index 23bed32..754c56c 100644 --- a/resources/perform-backup.sh +++ b/resources/perform-backup.sh @@ -17,7 +17,7 @@ do echo -e "Database backup successfully completed for $CURRENT_DATABASE at $(date +'%d-%m-%Y %H:%M:%S')." backup_name=$CURRENT_DATABASE_$(date +"%Y-%m-%d_%H-%M-%S").sql # Perform the upload to R2. Put the output to a variable. If successful, print an entry to the console and the log. If unsuccessful, set has_failed to true and print an entry to the console and the log - if awsoutput=$(aws s3 cp --endpoint-url=$AWS_ENDPOINT_URL /tmp/$CURRENT_DATABASE.sql s3://$AWS_BUCKET_NAME$AWS_BUCKET_BACKUP_PATH/$backup_name 2>&1) + if awsoutput=$(aws s3 cp --endpoint-url=$AWS_ENDPOINT_URL /tmp/$CURRENT_DATABASE.sql $AWS_BUCKET_NAME$AWS_BUCKET_BACKUP_PATH/$backup_name 2>&1) then echo -e "Database backup successfully uploaded for $CURRENT_DATABASE at $(date +'%d-%m-%Y %H:%M:%S')." else