Skip to content

Commit

Permalink
fix: path
Browse files Browse the repository at this point in the history
  • Loading branch information
vinhais committed Jul 22, 2024
1 parent 8cf094f commit 2bd17ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resources/perform-backup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2bd17ad

Please sign in to comment.