You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 27, 2024. It is now read-only.
Copy file name to clipboardExpand all lines: resources/perform-backup.sh
+6-5Lines changed: 6 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -38,6 +38,7 @@ do
38
38
if [ "$BACKUP_PROVIDER"="aws" ]
39
39
then
40
40
41
+
# If the AWS_S3_ENDPOINT variable isn't empty, then populate the --endpoint-url parameter to use a custom S3 compatable endpoint
41
42
if [ !-z"$AWS_S3_ENDPOINT" ]
42
43
then
43
44
ENDPOINT="--endpoint-url=$AWS_S3_ENDPOINT"
@@ -49,7 +50,7 @@ do
49
50
then
50
51
echo -e "Database backup successfully uploaded for $CURRENT_DATABASE at $(date +'%d-%m-%Y %H:%M:%S')."
51
52
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
53
+
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
53
54
has_failed=true
54
55
fi
55
56
@@ -64,14 +65,14 @@ do
64
65
then
65
66
echo -e "Database backup successfully uploaded for $CURRENT_DATABASE at $(date +'%d-%m-%Y %H:%M:%S')."
66
67
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
68
+
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
68
69
has_failed=true
69
70
fi
70
71
71
72
fi
72
73
73
74
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
75
+
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
75
76
has_failed=true
76
77
fi
77
78
@@ -90,13 +91,13 @@ then
90
91
if [ "$SLACK_ENABLED"="true" ]
91
92
then
92
93
# Put the contents of the database backup logs into a variable
0 commit comments