Skip to content
This repository was archived by the owner on Apr 27, 2024. It is now read-only.

Commit e7f5a4c

Browse files
Fix log filename to correctly reflect the rename as part of v2.2.0
1 parent 1a1825c commit e7f5a4c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

resources/perform-backup.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ do
4949
then
5050
echo -e "Database backup successfully uploaded for $CURRENT_DATABASE at $(date +'%d-%m-%Y %H:%M:%S')."
5151
else
52-
echo -e "Database backup failed to upload for $CURRENT_DATABASE at $(date +'%d-%m-%Y %H:%M:%S'). Error: $awsoutput" | tee -a /tmp/kubernetes-s3-mysql-backup.log
52+
echo -e "Database backup failed to upload for $CURRENT_DATABASE at $(date +'%d-%m-%Y %H:%M:%S'). Error: $awsoutput" | tee -a /tmp/kubernetes-cloud-mysql-backup.log
5353
has_failed=true
5454
fi
5555

@@ -64,14 +64,14 @@ do
6464
then
6565
echo -e "Database backup successfully uploaded for $CURRENT_DATABASE at $(date +'%d-%m-%Y %H:%M:%S')."
6666
else
67-
echo -e "Database backup failed to upload for $CURRENT_DATABASE at $(date +'%d-%m-%Y %H:%M:%S'). Error: $gcpoutput" | tee -a /tmp/kubernetes-s3-mysql-backup.log
67+
echo -e "Database backup failed to upload for $CURRENT_DATABASE at $(date +'%d-%m-%Y %H:%M:%S'). Error: $gcpoutput" | tee -a /tmp/kubernetes-cloud-mysql-backup.log
6868
has_failed=true
6969
fi
7070

7171
fi
7272

7373
else
74-
echo -e "Database backup FAILED for $CURRENT_DATABASE at $(date +'%d-%m-%Y %H:%M:%S'). Error: $sqloutput" | tee -a /tmp/kubernetes-s3-mysql-backup.log
74+
echo -e "Database backup FAILED for $CURRENT_DATABASE at $(date +'%d-%m-%Y %H:%M:%S'). Error: $sqloutput" | tee -a /tmp/kubernetes-cloud-mysql-backup.log
7575
has_failed=true
7676
fi
7777

@@ -90,7 +90,7 @@ then
9090
if [ "$SLACK_ENABLED" = "true" ]
9191
then
9292
# Put the contents of the database backup logs into a variable
93-
logcontents=`cat /tmp/kubernetes-s3-mysql-backup.log`
93+
logcontents=`cat /tmp/kubernetes-cloud-mysql-backup.log`
9494

9595
# Send Slack alert
9696
/slack-alert.sh "One or more backups on database host $TARGET_DATABASE_HOST failed. The error details are included below:" "$logcontents"

0 commit comments

Comments
 (0)