From 00a242c4ef86bf3b91f4d3c5a2e2684b3dc2313b Mon Sep 17 00:00:00 2001 From: Husayn Arrah Date: Sat, 16 Mar 2019 17:16:48 +0200 Subject: [PATCH] Use resource name for backup name --- pkg/internal/mysqlbackup/mysqlbackup.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/internal/mysqlbackup/mysqlbackup.go b/pkg/internal/mysqlbackup/mysqlbackup.go index c2b554af9..fc855a2c4 100644 --- a/pkg/internal/mysqlbackup/mysqlbackup.go +++ b/pkg/internal/mysqlbackup/mysqlbackup.go @@ -83,6 +83,6 @@ func (b *MysqlBackup) composeBackupURL(base string) string { } timestamp := time.Now().Format("2006-01-02T15:04:05") - fileName := fmt.Sprintf("/%s-%s.%s", b.Spec.ClusterName, timestamp, BackupSuffix) + fileName := fmt.Sprintf("/%s-%s.%s", b.GetName(), timestamp, BackupSuffix) return base + fileName }