Skip to content

Commit

Permalink
Use resource name for backup name
Browse files Browse the repository at this point in the history
  • Loading branch information
ballad89 authored and AMecea committed Mar 18, 2019
1 parent 9d38b7f commit a050582
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/internal/mysqlbackup/mysqlbackup.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

0 comments on commit a050582

Please sign in to comment.